Transport ALV layouts
How can ALV layouts variants be transported?
And what about layouts for query reports?
Transport using standard report RKKBALVI
Transporting layouts between clients within a system or between different systems can easily be achieved using standard report RKKBALVI
as described in SAP note 643330.
On the selection screen, you can specify from which program you want to edit layouts (1). You can further restrict the selection by specifying ‘Handle’ (2) and ‘Logical Group Name’ (3).
The system displays a list of all selected layouts in the current client. In this list, you can select the layouts that you want to export. You can use the menu path ‘Layout → Transport’ to trigger the export. Likewise, you can use the menu path ‘Environment -> Import Layouts’ to trigger the import.
Manually transport using table LTDX
Imagine a scenario where a customer wants to transport layouts for a SAP query, more specificly the ALV report generated by the query.
We can ‘manually’ add relevant layouts to a transport request. Function module LT_VARIANTS_TRANSPORT
facilitates this process. Executing the function places all selected variants of a given report in a transport.
Look up the variants in table LTDX
and use the records as input for function module LT_VARIANTS_TRANSPORT
.
Function module LT_VARIANTS_TRANSPORT
Table | Field | Value | |
- | i_source_client | client from which to select variants, e.g. ‘100’ | |
t_variants | report | name of the ALV report program | |
t_variants | handle | see LTDX | |
t_variants | log_group | see LTDX | |
t_variants | username | see LTDX | |
t_variants | variant | name of the variant/layout, e.g. ‘/DEFAULT’ | |
t_variants | type | see LTDX | |
t_defaults | report | name of the ALV report program | |
t_defaults | handle | see LTDX | |
t_defaults | log_group | see LTDX |
LTDX
to find the generated report name for a query