Skip to content

Report Layout Designer

This page shows how to use the Report Layout Designer to define the columns and rows of the Report that is returned by a Report service type.

General Workflow

Use the following workflow in the Report Layout Designer:

  1. Click [Load Preview] to load and display a preview of the Report based on the selected variant or selections.
  2. Optional: If your report has varying column widths, activate the checkbox Dynamic column widths and offsets to adjust the column widths and offsets dynamically at Report runtime.
  3. Click [Detect Columns] to run the Report based on the selected variant or selections and detect columns automatically.
  4. Check if the automatically detected columns are accurate. When automatic column detection is not possible, define columns manually.
  5. Optional: Remove or parse certain rows, see Row Settings.
  6. Define a header row for the report, see Header Pattern.
  7. Click [Apply] to save the Report layout.
  8. Save and run the service to review the final result.

Example:

Report Layout Designer displaying a report preview and column settings

About Rows

The Report service type offer the following options to remove rows from the result set of a report extraction:

Option Description
Skip rows from top Removes the first n number of rows from the top of the report.
Skip rows from bottom Removes the last n number of rows from the bottom of the report.
Skip rows by pattern Uses a pattern or regular expression to remove rows that contain the pattern.
Skip rows by keyword Uses a keyword to remove all rows that contain the keyword.

For information on how to parse rows as columns, see Columns From Section Header.

Row Settings

The Rows section allows you to define how rows are handled in the result set of a report extraction.

Location of the Rows section in the Report Layout Designer

Skip rows from top

Enter the number of rows you want to skip at the beginning of the report. Some reports display meta information in the header section of the report, before the actual report body. This setting allows skipping the meta information.

Skip rows from bottom

Similar to skip rows from top. Enter the number of rows you want to skip in the footer section of the report.

Report rows per data row

Use this setting for ABAP reports that return two or more "physical" rows to display a single "semantic" data row. Enter the number of physical rows that represent a single data row. The following example shows how to use this setting with Report (equipment list):

Report_new_rows_per_data_row

Header pattern

Enter a search pattern (regular expression) to detect the table header. The Report service type scans the report for this pattern and uses the row that contains this pattern as the report header. Any duplicates of the header row are removed from the result set.

Rows that contain the header pattern are highlighted with a dark blue background in the preview section.

This setting is usually not required if the report's columns can be detected automatically and Dynamic column widths and offsets is active in the main window of the service type.

Tip

Alternatively, right-click the row that you want to use as a header and select Select as header from the context menu.

Skip rows by pattern

Enter a search pattern (regular expression). All report rows that contain the pattern are removed from the result set.
The skip row setting can be used to skip header rows that are repeated in the output body of reports, see also Skip rows by keyword.
The live preview in the Report service type does not include the Row Skip Pattern option, because the rows are only removed after the report data is extracted from SAP.

  • 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., Microsoft Azure Storage, Microsoft SQL Server, Snowflake, etc.

Note

The setting Skip rows by pattern is usually not required if the report columns can be detected automatically and Dynamic column widths and offsets is checked in the Report window.

Skip Rows by Keyword

The Skip rows by keyword section allows you to remove rows from the result set of the report extraction. This option can be used to skip header rows that are repeated in the output body of reports.

Location of the Skip Rows by Keyword section in the Report Layout Designer

Add Keyword

Click [Add keyword] to define a keyword that is removed from the result set of the report extraction.

Enter a unique keyword from the row you want to remove.
Example: ** removes all rows that contain the characters **.

Rows that are excluded from the result set are displayed in a gray font in the preview section.

Tip

Alternatively, right-click the row you want to remove and select Ignore/unignore row from the context menu.

About Columns

A report column is defined by its name, offset and length. Per default, all columns are of data type string. To identify columns, the report needs to be executed. Columns can then be defined based on the output.

Tip

At this stage, use a selection or variant that returns only a few records. This can be adapted later on.

Automatic vs. manual column detection:

  • Certain classical ABAP reports are developed to use the pipe symbol '|' as a delimiter for the output columns. In this case the Report service type can automatically identify the columns. Automatic column detection also works for most ALV reports. Example:
    Report-delimiters
  • For reports where the output is not separated by the pipe symbol, the columns must be identified manually. Example:
    Report-no-delimiters

For information on how to parse rows as columns, see Columns From Section Header.

Define Columns Automatically

To detect columns automatically in the Report Layout Designer of the Report service type:

  1. Click [Load Preview] to load a preview of the Report based on the selected variant or selections.
  2. Click [Detect Columns]. The column name, width and offset are displayed in the preview area and in the Columns section of the Report Layout Designer.
  3. Check if the automatically detected columns are accurate.
    • If necessary, adjust column names, widths and offsets in the Columns section or drag and drop the highlighted columns in the preview area.
    • When automatic column detection is not possible, the column names, widths and offsets must be set manually.
  4. Click [Apply] to save the Report layout and return to the main menu of your Report service.

Report columns are configured and the Report service is ready for execution.

Report-automatic-columns

Dynamic column width and offset

If this option is active, the column width and offset is adjusted dynamically at report runtime. This can be required for reports that have varying column widths depending on the report's selection criteria.

Define Columns Manually

When automatic column detection is not possible, the column names, widths and offsets must be set manually. To define columns manually in the Report Layout Designer of the Report service type:

  1. Make sure no columns are defined yet. If columns are defined, go to the Columns section and click the trashbin icon button ( ) next to the columns.
  2. Click [Run] to load a preview of the Report based on the selected variant or selections.
  3. To define the offset and width of a column, go to the preview section and drag your cursor from the beginning to the end of a column. The column is highlighted with a green overlay and an entry is added to the Columns section.
    Report-Columns
  4. To change the column name, offset and width, go to the Columns section and enter new values.
  5. Repeat steps 3 and 4 until all columns are defined.

Report columns are configured and the Report service is ready for execution.

Columns From Section Header

Report services allow you to convert selected rows into columns in the result set. This option can be used for reports that contain groups with multiple headers, e.g., Report FBL3N:

FBL3N report in SAP with grouped account and company code headers

Add Header Value

Click [Add Header Value] to add a header as a new column to the result set.
Enter the following column properties manually or click the header row and select Use header value as column from the context menu to define the column properties:

Property Description
Keyword Enter a unique keyword from the row to include it as a column in the result set. The report is scanned for rows that contain the string. The keyword search is case sensitive.
Name Enter a name for the new column.
Offset Define the beginning (offset) of the content that is written into the new column.
Example: Enter 0 if the content for the new column is located at the start of the row.
Enter 25 if the content starts 25 characters into the row.
Width Define the width of the new column.

Tip

You define the offset and length interactively in the Report preview section by dragging your cursor from beginning of the column content to the end of the column content.

Rows that are parsed as a column are displayed in a light green font in the preview section.

The following animation shows how to turn the header rows Company Code and G/L Account of the example Report FBL3N into columns:

animation showing how to select a header pattern and header rows for columns

The resulting columns of the example Report FBL3N look like this:

G/L Account Company Code St Assignment DocumentNo BusA Type Doc. Date PK Amount in local cur. LCurr Tx Clrng doc.
113100 1000 0000004900001 100008682 SA 05.09.2003 40 3.000,00 EUR
113100 1000 0000004900002 100008683 SA 05.09.2003 40 3.150,00 EUR
113100 1000 0000004900003 100008684 SA 05.09.2003 40 3.300,00 EUR

Last update: December 3, 2026