SAP TRANSPORT_KEY_COMPRESSION Function Module for
TRANSPORT_KEY_COMPRESSION is a standard transport key compression SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for transport key compression FM, simply by entering the name TRANSPORT_KEY_COMPRESSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCTS_SORT
Program Name: SAPLSCTS_SORT
Main Program: SAPLSCTS_SORT
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TRANSPORT_KEY_COMPRESSION pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'TRANSPORT_KEY_COMPRESSION'".
EXPORTING
* WI_CROSS_COMPRESSION = ' ' "Flag = 'X', if put creation => cross compr.
IMPORTING
E071_UPDATE = "Table E071K_TAB was changed
E071K_UPDATE = "Table E071_TAB was changed
TABLES
E071_TAB = "Table of correction entries key le
E071K_TAB = "Table of the correction entries ob
IMPORTING Parameters details for TRANSPORT_KEY_COMPRESSION
WI_CROSS_COMPRESSION - Flag = 'X', if put creation => cross compr.
Data type: TRPARI-W_CROSSCOMDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TRANSPORT_KEY_COMPRESSION
E071_UPDATE - Table E071K_TAB was changed
Data type: TRPARI-W_E071Optional: No
Call by Reference: No ( called with pass by value option)
E071K_UPDATE - Table E071_TAB was changed
Data type: TRPARI-W_E071KOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TRANSPORT_KEY_COMPRESSION
E071_TAB - Table of correction entries key le
Data type: E071Optional: No
Call by Reference: No ( called with pass by value option)
E071K_TAB - Table of the correction entries ob
Data type: E071KOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TRANSPORT_KEY_COMPRESSION Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_e071_tab | TYPE STANDARD TABLE OF E071, " | |||
| lv_e071_update | TYPE TRPARI-W_E071, " | |||
| lv_wi_cross_compression | TYPE TRPARI-W_CROSSCOM, " ' ' | |||
| lt_e071k_tab | TYPE STANDARD TABLE OF E071K, " | |||
| lv_e071k_update | TYPE TRPARI-W_E071K. " |
|   CALL FUNCTION 'TRANSPORT_KEY_COMPRESSION' " |
| EXPORTING | ||
| WI_CROSS_COMPRESSION | = lv_wi_cross_compression | |
| IMPORTING | ||
| E071_UPDATE | = lv_e071_update | |
| E071K_UPDATE | = lv_e071k_update | |
| TABLES | ||
| E071_TAB | = lt_e071_tab | |
| E071K_TAB | = lt_e071k_tab | |
| . " TRANSPORT_KEY_COMPRESSION | ||
ABAP code using 7.40 inline data declarations to call FM TRANSPORT_KEY_COMPRESSION
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single W_E071 FROM TRPARI INTO @DATA(ld_e071_update). | ||||
| "SELECT single W_CROSSCOM FROM TRPARI INTO @DATA(ld_wi_cross_compression). | ||||
| DATA(ld_wi_cross_compression) | = ' '. | |||
| "SELECT single W_E071K FROM TRPARI INTO @DATA(ld_e071k_update). | ||||
Search for further information about these or an SAP related objects