Skip Rows in Reports
This articles shows how to skip certain rows when extracting SAP reports.
The depicted example uses the Row Skip Pattern option of the Report extraction type to remove rows that contain the * symbol in extracted reports.
Tip
To skip header and/or footer rows that do not follow any pattern, use the Row settings in the main window of the extraction type. Row settings allows skipping rows at the top and at the bottom of the report.
About Row Skip Patterns
The extraction settings of the Report extraction type include the Row Skip Pattern option. Row Skip Pattern allows you to define a pattern that removes all rows that contain the pattern from the extracted report. This can be used to remove header rows that are repeated in the output body of reports.
- Regular expressions are supported
- Multiple row skip patterns can be entered, separated by the pipe symbol "
|
", e.g.,2020|2021|-|Sum
removes all rows containing ‘2020’, ‘2021’, ‘-‘ and ‘Sum’. - To process special symbols, add
\
before the symbol, e.g.,\*
removes rows that contain the sum symbol * . - Only works with database destinations, e.g., Azure Storage, Snowflake, SQl Server, etc.
Note
The live preview in the Report extraction type does not include the Row Skip Pattern option, because the rows are only removed after the report data is extracted from SAP.
How to Use Row Skip Patterns
In the depicted example, the report RFITEMGL contains rows that total the content of the rows before. These rows are marked with an * symbol:
To remove all rows that contain the * symbol, follow the instructions below:
- Look up a report. The depicted example uses the report RFITEMGL.
- Define the columns of the report automatically or manually, see Documentation: Define the Report Extraction Type.
- Click Extraction Settings. The window "Extraction Settings" open.
- Enter a Row skip pattern. To process special symbols, add
\
before the symbol, e.g., to remove rows that contain the sum symbol * , enter\*
. - Click [OK] to close the extraction settings.
- Click [OK] to save the extraction. Note that the live preview of the report component does not include the Row skip pattern option. Row skip pattern is only executed when running the extraction.
- Run the extraction.
The extracted report does not include rows that contain a * symbol.