SAP LE_TRA_MAP_APO_TO_LES Function Module for NOTRANSL: Mappinng von APO Transporten zu LES Transporten
LE_TRA_MAP_APO_TO_LES is a standard le tra map apo to les SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Mappinng von APO Transporten zu LES Transporten processing and below is the pattern details for this FM, 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 le tra map apo to les FM, simply by entering the name LE_TRA_MAP_APO_TO_LES into the relevant SAP transaction such as SE37 or SE38.
Function Group: LE_TRA_MAP_EXT_TO_LES
Program Name: SAPLLE_TRA_MAP_EXT_TO_LES
Main Program: SAPLLE_TRA_MAP_EXT_TO_LES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LE_TRA_MAP_APO_TO_LES 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 'LE_TRA_MAP_APO_TO_LES'"NOTRANSL: Mappinng von APO Transporten zu LES Transporten.
TABLES
IT_APOSHP_HDR = "VS: Communication Layer: Shipment Header Data
IT_APOSHP_HDR_DLINE = "VS: Communication Layer: Shipment Deadlines Header Data
IT_APOSHP_ITM = "VS: Communication Layer: Shipment Item Data
IT_APOSHP_STG = "VS: Communication Layer: Shipment Deadline Stages
IT_APOSHP_STG_DLINE = "VS: Communication Layer: Shipment Deadline Stages
IT_APOSHP_IOS = "VS Communication Layer: Deliveries in Stages
IT_APOSHP_VEH = "VS: Communication Layer: Vehicle Data as HU
* IT_EXTENSIONIN = "Reference Structure for ExtensionIn and ExtensionOut BAPIs
ET_LOGFILE = "Return Parameter
TABLES Parameters details for LE_TRA_MAP_APO_TO_LES
IT_APOSHP_HDR - VS: Communication Layer: Shipment Header Data
Data type: VSRSHP_HDROptional: No
Call by Reference: Yes
IT_APOSHP_HDR_DLINE - VS: Communication Layer: Shipment Deadlines Header Data
Data type: VSRSHP_HDDOptional: No
Call by Reference: Yes
IT_APOSHP_ITM - VS: Communication Layer: Shipment Item Data
Data type: VSRSHP_ITMOptional: No
Call by Reference: Yes
IT_APOSHP_STG - VS: Communication Layer: Shipment Deadline Stages
Data type: VSRSHP_STGOptional: No
Call by Reference: Yes
IT_APOSHP_STG_DLINE - VS: Communication Layer: Shipment Deadline Stages
Data type: VSRSHP_STDOptional: No
Call by Reference: Yes
IT_APOSHP_IOS - VS Communication Layer: Deliveries in Stages
Data type: VSRSHP_IOSOptional: No
Call by Reference: Yes
IT_APOSHP_VEH - VS: Communication Layer: Vehicle Data as HU
Data type: VSRSHP_VEHOptional: No
Call by Reference: Yes
IT_EXTENSIONIN - Reference Structure for ExtensionIn and ExtensionOut BAPIs
Data type: CIFBPAREXOptional: Yes
Call by Reference: Yes
ET_LOGFILE - Return Parameter
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for LE_TRA_MAP_APO_TO_LES 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_it_aposhp_hdr | TYPE STANDARD TABLE OF VSRSHP_HDR, " | |||
| lt_it_aposhp_hdr_dline | TYPE STANDARD TABLE OF VSRSHP_HDD, " | |||
| lt_it_aposhp_itm | TYPE STANDARD TABLE OF VSRSHP_ITM, " | |||
| lt_it_aposhp_stg | TYPE STANDARD TABLE OF VSRSHP_STG, " | |||
| lt_it_aposhp_stg_dline | TYPE STANDARD TABLE OF VSRSHP_STD, " | |||
| lt_it_aposhp_ios | TYPE STANDARD TABLE OF VSRSHP_IOS, " | |||
| lt_it_aposhp_veh | TYPE STANDARD TABLE OF VSRSHP_VEH, " | |||
| lt_it_extensionin | TYPE STANDARD TABLE OF CIFBPAREX, " | |||
| lt_et_logfile | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'LE_TRA_MAP_APO_TO_LES' "NOTRANSL: Mappinng von APO Transporten zu LES Transporten |
| TABLES | ||
| IT_APOSHP_HDR | = lt_it_aposhp_hdr | |
| IT_APOSHP_HDR_DLINE | = lt_it_aposhp_hdr_dline | |
| IT_APOSHP_ITM | = lt_it_aposhp_itm | |
| IT_APOSHP_STG | = lt_it_aposhp_stg | |
| IT_APOSHP_STG_DLINE | = lt_it_aposhp_stg_dline | |
| IT_APOSHP_IOS | = lt_it_aposhp_ios | |
| IT_APOSHP_VEH | = lt_it_aposhp_veh | |
| IT_EXTENSIONIN | = lt_it_extensionin | |
| ET_LOGFILE | = lt_et_logfile | |
| . " LE_TRA_MAP_APO_TO_LES | ||
ABAP code using 7.40 inline data declarations to call FM LE_TRA_MAP_APO_TO_LES
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.Search for further information about these or an SAP related objects