SAP LEINT_LOCATION_GET_BY_TO Function Module for Get cross dock door and staging area by TO item









LEINT_LOCATION_GET_BY_TO is a standard leint location get by to SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get cross dock door and staging area by TO item 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 leint location get by to FM, simply by entering the name LEINT_LOCATION_GET_BY_TO into the relevant SAP transaction such as SE37 or SE38.

Function Group: LEINT_LDSRV
Program Name: SAPLLEINT_LDSRV
Main Program: SAPLLEINT_LDSRV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LEINT_LOCATION_GET_BY_TO 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 'LEINT_LOCATION_GET_BY_TO'"Get cross dock door and staging area by TO item
EXPORTING
IS_TO_HEADER = "WM transfer order header
IS_TO_ITEM = "Transfer order item

IMPORTING
EV_DOOR_SRC = "Source door
EV_DOOR_DST = "Destination door
EV_STG_AREA_SRC = "Source staging area
EV_STG_AREA_DST = "Destination staging area
.



IMPORTING Parameters details for LEINT_LOCATION_GET_BY_TO

IS_TO_HEADER - WM transfer order header

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

IS_TO_ITEM - Transfer order item

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

EXPORTING Parameters details for LEINT_LOCATION_GET_BY_TO

EV_DOOR_SRC - Source door

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

EV_DOOR_DST - Destination door

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

EV_STG_AREA_SRC - Source staging area

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

EV_STG_AREA_DST - Destination staging area

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

Copy and paste ABAP code example for LEINT_LOCATION_GET_BY_TO 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:
lv_ev_door_src  TYPE LGTOR, "   
lv_is_to_header  TYPE LTAK, "   
lv_is_to_item  TYPE LTAP, "   
lv_ev_door_dst  TYPE LGTOR, "   
lv_ev_stg_area_src  TYPE LGBZO, "   
lv_ev_stg_area_dst  TYPE LGBZO. "   

  CALL FUNCTION 'LEINT_LOCATION_GET_BY_TO'  "Get cross dock door and staging area by TO item
    EXPORTING
         IS_TO_HEADER = lv_is_to_header
         IS_TO_ITEM = lv_is_to_item
    IMPORTING
         EV_DOOR_SRC = lv_ev_door_src
         EV_DOOR_DST = lv_ev_door_dst
         EV_STG_AREA_SRC = lv_ev_stg_area_src
         EV_STG_AREA_DST = lv_ev_stg_area_dst
. " LEINT_LOCATION_GET_BY_TO




ABAP code using 7.40 inline data declarations to call FM LEINT_LOCATION_GET_BY_TO

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!