SAP LE_TRA_MAP_APO_TO_LES_COST Function Module for NOTRANSL: Mappinng von APO Transporten zu LES Transporten









LE_TRA_MAP_APO_TO_LES_COST is a standard le tra map apo to les cost 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 cost FM, simply by entering the name LE_TRA_MAP_APO_TO_LES_COST 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): Remote-Enabled
Update:



Function LE_TRA_MAP_APO_TO_LES_COST 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_COST'"NOTRANSL: Mappinng von APO Transporten zu LES Transporten
TABLES
IT_APOSHP_HDR = "VS: Communication Layer: Shipment Header Data
* IT_EXTENSIONIN = "Reference Structure for ExtensionIn and ExtensionOut BAPIs
ET_APOSHP_COST = "VS: Communication Layer: Shipment Deadlines Header Data
ET_LOGFILE = "Return Parameter
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_APODLV_HDR = "VS: Communication Layer: Delivery Creation Header Data
IT_APODLV_ITM = "Veh. Sched.: Simulated Delivery for Cost Determ.: Item Data
.



TABLES Parameters details for LE_TRA_MAP_APO_TO_LES_COST

IT_APOSHP_HDR - VS: Communication Layer: Shipment Header Data

Data type: VSRSHP_HDR
Optional: No
Call by Reference: No ( called with pass by value option)

IT_EXTENSIONIN - Reference Structure for ExtensionIn and ExtensionOut BAPIs

Data type: CIFBPAREX
Optional: Yes
Call by Reference: Yes

ET_APOSHP_COST - VS: Communication Layer: Shipment Deadlines Header Data

Data type: VSRSHP_COST
Optional: No
Call by Reference: Yes

ET_LOGFILE - Return Parameter

Data type: BAPIRET2
Optional: No
Call by Reference: No ( called with pass by value option)

IT_APOSHP_HDR_DLINE - VS: Communication Layer: Shipment Deadlines Header Data

Data type: VSRSHP_HDD
Optional: No
Call by Reference: No ( called with pass by value option)

IT_APOSHP_ITM - VS: Communication Layer: Shipment Item Data

Data type: VSRSHP_ITM
Optional: No
Call by Reference: No ( called with pass by value option)

IT_APOSHP_STG - VS: Communication Layer: Shipment Deadline Stages

Data type: VSRSHP_STG
Optional: No
Call by Reference: No ( called with pass by value option)

IT_APOSHP_STG_DLINE - VS: Communication Layer: Shipment Deadline Stages

Data type: VSRSHP_STD
Optional: No
Call by Reference: No ( called with pass by value option)

IT_APOSHP_IOS - VS Communication Layer: Deliveries in Stages

Data type: VSRSHP_IOS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_APOSHP_VEH - VS: Communication Layer: Vehicle Data as HU

Data type: VSRSHP_VEH
Optional: No
Call by Reference: No ( called with pass by value option)

IT_APODLV_HDR - VS: Communication Layer: Delivery Creation Header Data

Data type: VSRDLV_HDR_SIM
Optional: No
Call by Reference: Yes

IT_APODLV_ITM - Veh. Sched.: Simulated Delivery for Cost Determ.: Item Data

Data type: VSRDLV_ITM_SIM
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for LE_TRA_MAP_APO_TO_LES_COST 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_extensionin  TYPE STANDARD TABLE OF CIFBPAREX, "   
lt_et_aposhp_cost  TYPE STANDARD TABLE OF VSRSHP_COST, "   
lt_et_logfile  TYPE STANDARD TABLE OF BAPIRET2, "   
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_apodlv_hdr  TYPE STANDARD TABLE OF VSRDLV_HDR_SIM, "   
lt_it_apodlv_itm  TYPE STANDARD TABLE OF VSRDLV_ITM_SIM. "   

  CALL FUNCTION 'LE_TRA_MAP_APO_TO_LES_COST'  "NOTRANSL: Mappinng von APO Transporten zu LES Transporten
    TABLES
         IT_APOSHP_HDR = lt_it_aposhp_hdr
         IT_EXTENSIONIN = lt_it_extensionin
         ET_APOSHP_COST = lt_et_aposhp_cost
         ET_LOGFILE = lt_et_logfile
         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_APODLV_HDR = lt_it_apodlt_hdr
         IT_APODLV_ITM = lt_it_apodlt_itm
. " LE_TRA_MAP_APO_TO_LES_COST




ABAP code using 7.40 inline data declarations to call FM LE_TRA_MAP_APO_TO_LES_COST

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!