SAP LEINT_DELIVERY_GET Function Module for Builds list of candidate deliveries
LEINT_DELIVERY_GET is a standard leint delivery get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Builds list of candidate deliveries 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 delivery get FM, simply by entering the name LEINT_DELIVERY_GET 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_DELIVERY_GET 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_DELIVERY_GET'"Builds list of candidate deliveries.
EXPORTING
IV_DOC_TYPE = "Reference Document Type
* IR_KUNWE = "Table type of a Range for a (10) Character Field
* IR_PARTN = "Table type of a Range for a (10) Character Field
* IR_VKORG = "Table type of a Range for a (4) Character Field
* IR_KDGRP = "Table type of a Range for a (2) Character Field
* IR_MATNR = "Table type of a Range for material Field
* IR_WADAT = "Table type of a Range for date Field
* IR_LDDAT = "Table type of a Range for date Field
* IR_LFDAT = "Table type of a Range for date Field
* IR_KODAT = "Table type of a Range for date Field
* IR_SAMMG = "Table type of a Range for a (10) Character Field
* IS_ADD_DATA = "Delivery Selection help structure
* IR_LFART = "Table type of a Range for a (4) Character Field
* IR_LSTEL = "Table type of a Range for a (2) Character Field
* IR_LGORT = "Table type of a Range for a (4) Character Field
* IR_LGTOR = "Table type of a Range for a (3) Character Field
* IR_ABLAD = "Table type of a Range for a (25) Character Field
* IR_VSBED = "Table type of a Range for a (2) Character Field
* IR_LPRIO = "Table type of a range table for a numeric (2) field
* IR_KOSTK = "Table type of a Range for a (1) Character Field
* IR_WBSTK = "Table type of a Range for a (1) Character Field
* IR_ERNAM = "Table type of a Range for a (12) Character Field
IV_LGNUM = "Warehouse Number
* IR_ERDAT = "Table type of a Range for date Field
* IR_TKNUM = "Table type of a Range for a (10) Character Field
* IR_TDDAT = "Table type of a Range for date Field
* IR_VTWEG = "Table type of a Range for a (2) Character Field
* IR_SPART = "Table type of a Range for a (2) Character Field
* IR_EBELN = "Table type of a Range for a (10) Character Field
* IR_EBELP = "Table type of a Range for a (6) Character Field
* IR_TRAID = "Table type of a Range for a (20) Character Field
* IR_EXIDV = "Table type of a Range for a (20) Character Field
* IR_LIFEX = "Table type of a Range for a (35) Character Field
* IR_DELIVERY = "Table type of a Range for a (10) Character Field
* IR_LIFNR = "Table type of a Range for a (10) Character Field
* IR_EAN11 = "Table type of a Range for material Field
* IR_PRVBE = "Table type of a Range for a (10) Character Field
* IR_AUFNR = "Table type of a Range for a (12) Character Field
* IR_RLS_DATE = "Table type of a Range for date Field
* IR_RLS_TIME = "Table type of a Range for time Field
* IR_XDOCK_DATE = "Table type of a Range for date Field
* IR_XDOCK_TIME = "Table type of a Range for time Field
* IR_STRG_DATE = "Table type of a Range for date Field
* IR_STRG_TIME = "Table type of a Range for time Field
* IR_VSTEL = "Table type of a Range for a (4) Character Field
* IR_STG_AREA = "Table type of a Range for a (4) Character Field
* IR_MOVEMENT_TYPE = "Table type of a range table for a numeric (3) field
* IR_PLANT = "Table type of a Range for a (4) Character Field
* IR_IMWRK = "Table type of a Range for a (1) Character Field
* IR_LGNUM_HEAD = "Table type of a Range for a (1) Character Field
* IR_ROUTE = "Table type of a Range for a (6) Character Field
* IR_AULWE = "Table type of a Range for a (10) Character Field
* IR_SPDNR = "Table type of a Range for a (10) Character Field
* IR_KUNAG = "Table type of a Range for a (10) Character Field
TABLES
* ET_LIPOV = "View: Header and item delivery information
* ET_LIKP = "SD Document: Delivery Header Data
* ET_LIPS = "SD document: Delivery: Item data
EXCEPTIONS
NO_DATA_FOUND = 1
IMPORTING Parameters details for LEINT_DELIVERY_GET
IV_DOC_TYPE - Reference Document Type
Data type: LXHME_DOCTYOptional: No
Call by Reference: No ( called with pass by value option)
IR_KUNWE - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IR_PARTN - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IR_VKORG - Table type of a Range for a (4) Character Field
Data type: LXHME_RANGE_C4_TOptional: Yes
Call by Reference: Yes
IR_KDGRP - Table type of a Range for a (2) Character Field
Data type: LXHME_RANGE_C2_TOptional: Yes
Call by Reference: Yes
IR_MATNR - Table type of a Range for material Field
Data type: LXHME_RANGE_MAT_TOptional: Yes
Call by Reference: Yes
IR_WADAT - Table type of a Range for date Field
Data type: LXHME_RANGE_DATE_TOptional: Yes
Call by Reference: Yes
IR_LDDAT - Table type of a Range for date Field
Data type: LXHME_RANGE_DATE_TOptional: Yes
Call by Reference: Yes
IR_LFDAT - Table type of a Range for date Field
Data type: LXHME_RANGE_DATE_TOptional: Yes
Call by Reference: Yes
IR_KODAT - Table type of a Range for date Field
Data type: LXHME_RANGE_DATE_TOptional: Yes
Call by Reference: Yes
IR_SAMMG - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IS_ADD_DATA - Delivery Selection help structure
Data type: LXHME_HLPSLOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_LFART - Table type of a Range for a (4) Character Field
Data type: LXHME_RANGE_C4_TOptional: Yes
Call by Reference: Yes
IR_LSTEL - Table type of a Range for a (2) Character Field
Data type: LXHME_RANGE_C2_TOptional: Yes
Call by Reference: Yes
IR_LGORT - Table type of a Range for a (4) Character Field
Data type: LXHME_RANGE_C4_TOptional: Yes
Call by Reference: Yes
IR_LGTOR - Table type of a Range for a (3) Character Field
Data type: LXHME_RANGE_C3_TOptional: Yes
Call by Reference: Yes
IR_ABLAD - Table type of a Range for a (25) Character Field
Data type: LXHME_RANGE_C25_TOptional: Yes
Call by Reference: Yes
IR_VSBED - Table type of a Range for a (2) Character Field
Data type: LXHME_RANGE_C2_TOptional: Yes
Call by Reference: Yes
IR_LPRIO - Table type of a range table for a numeric (2) field
Data type: LXHME_RANGE_N2_TOptional: Yes
Call by Reference: Yes
IR_KOSTK - Table type of a Range for a (1) Character Field
Data type: LXHME_RANGE_C1_TOptional: Yes
Call by Reference: Yes
IR_WBSTK - Table type of a Range for a (1) Character Field
Data type: LXHME_RANGE_C1_TOptional: Yes
Call by Reference: Yes
IR_ERNAM - Table type of a Range for a (12) Character Field
Data type: LXHME_RANGE_C12_TOptional: Yes
Call by Reference: Yes
IV_LGNUM - Warehouse Number
Data type: LEINT_LGNUMOptional: No
Call by Reference: No ( called with pass by value option)
IR_ERDAT - Table type of a Range for date Field
Data type: LXHME_RANGE_DATE_TOptional: Yes
Call by Reference: Yes
IR_TKNUM - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IR_TDDAT - Table type of a Range for date Field
Data type: LXHME_RANGE_DATE_TOptional: Yes
Call by Reference: Yes
IR_VTWEG - Table type of a Range for a (2) Character Field
Data type: LXHME_RANGE_C2_TOptional: Yes
Call by Reference: Yes
IR_SPART - Table type of a Range for a (2) Character Field
Data type: LXHME_RANGE_C2_TOptional: Yes
Call by Reference: Yes
IR_EBELN - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IR_EBELP - Table type of a Range for a (6) Character Field
Data type: LXHME_RANGE_C5_TOptional: Yes
Call by Reference: Yes
IR_TRAID - Table type of a Range for a (20) Character Field
Data type: LXHME_RANGE_C20_TOptional: Yes
Call by Reference: Yes
IR_EXIDV - Table type of a Range for a (20) Character Field
Data type: LXHME_RANGE_C20_TOptional: Yes
Call by Reference: Yes
IR_LIFEX - Table type of a Range for a (35) Character Field
Data type: LXHME_RANGE_C35_TOptional: Yes
Call by Reference: Yes
IR_DELIVERY - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IR_LIFNR - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IR_EAN11 - Table type of a Range for material Field
Data type: LXHME_RANGE_MAT_TOptional: Yes
Call by Reference: Yes
IR_PRVBE - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IR_AUFNR - Table type of a Range for a (12) Character Field
Data type: LXHME_RANGE_C12_TOptional: Yes
Call by Reference: Yes
IR_RLS_DATE - Table type of a Range for date Field
Data type: LXHME_RANGE_DATE_TOptional: Yes
Call by Reference: Yes
IR_RLS_TIME - Table type of a Range for time Field
Data type: LXHME_RANGE_TIME_TOptional: Yes
Call by Reference: Yes
IR_XDOCK_DATE - Table type of a Range for date Field
Data type: LXHME_RANGE_DATE_TOptional: Yes
Call by Reference: Yes
IR_XDOCK_TIME - Table type of a Range for time Field
Data type: LXHME_RANGE_TIME_TOptional: Yes
Call by Reference: Yes
IR_STRG_DATE - Table type of a Range for date Field
Data type: LXHME_RANGE_DATE_TOptional: Yes
Call by Reference: Yes
IR_STRG_TIME - Table type of a Range for time Field
Data type: LXHME_RANGE_TIME_TOptional: Yes
Call by Reference: Yes
IR_VSTEL - Table type of a Range for a (4) Character Field
Data type: LXHME_RANGE_C4_TOptional: Yes
Call by Reference: Yes
IR_STG_AREA - Table type of a Range for a (4) Character Field
Data type: LXHME_RANGE_C4_TOptional: Yes
Call by Reference: Yes
IR_MOVEMENT_TYPE - Table type of a range table for a numeric (3) field
Data type: LXHME_RANGE_N3_TOptional: Yes
Call by Reference: Yes
IR_PLANT - Table type of a Range for a (4) Character Field
Data type: LXHME_RANGE_C4_TOptional: Yes
Call by Reference: Yes
IR_IMWRK - Table type of a Range for a (1) Character Field
Data type: LXHME_RANGE_C1_TOptional: Yes
Call by Reference: Yes
IR_LGNUM_HEAD - Table type of a Range for a (1) Character Field
Data type: LXHME_RANGE_C1_TOptional: Yes
Call by Reference: Yes
IR_ROUTE - Table type of a Range for a (6) Character Field
Data type: LXHME_RANGE_C6_TOptional: Yes
Call by Reference: Yes
IR_AULWE - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IR_SPDNR - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
IR_KUNAG - Table type of a Range for a (10) Character Field
Data type: LXHME_RANGE_C10_TOptional: Yes
Call by Reference: Yes
TABLES Parameters details for LEINT_DELIVERY_GET
ET_LIPOV - View: Header and item delivery information
Data type: LEINT_LIPOV_TOptional: Yes
Call by Reference: Yes
ET_LIKP - SD Document: Delivery Header Data
Data type: LEINT_LIKP_TOptional: Yes
Call by Reference: Yes
ET_LIPS - SD document: Delivery: Item data
Data type: LEINT_LIPS_TOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_DATA_FOUND - No data found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for LEINT_DELIVERY_GET 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_et_lipov | TYPE STANDARD TABLE OF LEINT_LIPOV_T, " | |||
| lv_iv_doc_type | TYPE LXHME_DOCTY, " | |||
| lv_no_data_found | TYPE LXHME_DOCTY, " | |||
| lv_ir_kunwe | TYPE LXHME_RANGE_C10_T, " | |||
| lv_ir_partn | TYPE LXHME_RANGE_C10_T, " | |||
| lv_ir_vkorg | TYPE LXHME_RANGE_C4_T, " | |||
| lv_ir_kdgrp | TYPE LXHME_RANGE_C2_T, " | |||
| lv_ir_matnr | TYPE LXHME_RANGE_MAT_T, " | |||
| lv_ir_wadat | TYPE LXHME_RANGE_DATE_T, " | |||
| lv_ir_lddat | TYPE LXHME_RANGE_DATE_T, " | |||
| lv_ir_lfdat | TYPE LXHME_RANGE_DATE_T, " | |||
| lv_ir_kodat | TYPE LXHME_RANGE_DATE_T, " | |||
| lv_ir_sammg | TYPE LXHME_RANGE_C10_T, " | |||
| lt_et_likp | TYPE STANDARD TABLE OF LEINT_LIKP_T, " | |||
| lv_is_add_data | TYPE LXHME_HLPSL, " | |||
| lv_ir_lfart | TYPE LXHME_RANGE_C4_T, " | |||
| lv_ir_lstel | TYPE LXHME_RANGE_C2_T, " | |||
| lv_ir_lgort | TYPE LXHME_RANGE_C4_T, " | |||
| lv_ir_lgtor | TYPE LXHME_RANGE_C3_T, " | |||
| lv_ir_ablad | TYPE LXHME_RANGE_C25_T, " | |||
| lv_ir_vsbed | TYPE LXHME_RANGE_C2_T, " | |||
| lv_ir_lprio | TYPE LXHME_RANGE_N2_T, " | |||
| lv_ir_kostk | TYPE LXHME_RANGE_C1_T, " | |||
| lv_ir_wbstk | TYPE LXHME_RANGE_C1_T, " | |||
| lv_ir_ernam | TYPE LXHME_RANGE_C12_T, " | |||
| lt_et_lips | TYPE STANDARD TABLE OF LEINT_LIPS_T, " | |||
| lv_iv_lgnum | TYPE LEINT_LGNUM, " | |||
| lv_ir_erdat | TYPE LXHME_RANGE_DATE_T, " | |||
| lv_ir_tknum | TYPE LXHME_RANGE_C10_T, " | |||
| lv_ir_tddat | TYPE LXHME_RANGE_DATE_T, " | |||
| lv_ir_vtweg | TYPE LXHME_RANGE_C2_T, " | |||
| lv_ir_spart | TYPE LXHME_RANGE_C2_T, " | |||
| lv_ir_ebeln | TYPE LXHME_RANGE_C10_T, " | |||
| lv_ir_ebelp | TYPE LXHME_RANGE_C5_T, " | |||
| lv_ir_traid | TYPE LXHME_RANGE_C20_T, " | |||
| lv_ir_exidv | TYPE LXHME_RANGE_C20_T, " | |||
| lv_ir_lifex | TYPE LXHME_RANGE_C35_T, " | |||
| lv_ir_delivery | TYPE LXHME_RANGE_C10_T, " | |||
| lv_ir_lifnr | TYPE LXHME_RANGE_C10_T, " | |||
| lv_ir_ean11 | TYPE LXHME_RANGE_MAT_T, " | |||
| lv_ir_prvbe | TYPE LXHME_RANGE_C10_T, " | |||
| lv_ir_aufnr | TYPE LXHME_RANGE_C12_T, " | |||
| lv_ir_rls_date | TYPE LXHME_RANGE_DATE_T, " | |||
| lv_ir_rls_time | TYPE LXHME_RANGE_TIME_T, " | |||
| lv_ir_xdock_date | TYPE LXHME_RANGE_DATE_T, " | |||
| lv_ir_xdock_time | TYPE LXHME_RANGE_TIME_T, " | |||
| lv_ir_strg_date | TYPE LXHME_RANGE_DATE_T, " | |||
| lv_ir_strg_time | TYPE LXHME_RANGE_TIME_T, " | |||
| lv_ir_vstel | TYPE LXHME_RANGE_C4_T, " | |||
| lv_ir_stg_area | TYPE LXHME_RANGE_C4_T, " | |||
| lv_ir_movement_type | TYPE LXHME_RANGE_N3_T, " | |||
| lv_ir_plant | TYPE LXHME_RANGE_C4_T, " | |||
| lv_ir_imwrk | TYPE LXHME_RANGE_C1_T, " | |||
| lv_ir_lgnum_head | TYPE LXHME_RANGE_C1_T, " | |||
| lv_ir_route | TYPE LXHME_RANGE_C6_T, " | |||
| lv_ir_aulwe | TYPE LXHME_RANGE_C10_T, " | |||
| lv_ir_spdnr | TYPE LXHME_RANGE_C10_T, " | |||
| lv_ir_kunag | TYPE LXHME_RANGE_C10_T. " |
|   CALL FUNCTION 'LEINT_DELIVERY_GET' "Builds list of candidate deliveries |
| EXPORTING | ||
| IV_DOC_TYPE | = lv_iv_doc_type | |
| IR_KUNWE | = lv_ir_kunwe | |
| IR_PARTN | = lv_ir_partn | |
| IR_VKORG | = lv_ir_vkorg | |
| IR_KDGRP | = lv_ir_kdgrp | |
| IR_MATNR | = lv_ir_matnr | |
| IR_WADAT | = lv_ir_wadat | |
| IR_LDDAT | = lv_ir_lddat | |
| IR_LFDAT | = lv_ir_lfdat | |
| IR_KODAT | = lv_ir_kodat | |
| IR_SAMMG | = lv_ir_sammg | |
| IS_ADD_DATA | = lv_is_add_data | |
| IR_LFART | = lv_ir_lfart | |
| IR_LSTEL | = lv_ir_lstel | |
| IR_LGORT | = lv_ir_lgort | |
| IR_LGTOR | = lv_ir_lgtor | |
| IR_ABLAD | = lv_ir_ablad | |
| IR_VSBED | = lv_ir_vsbed | |
| IR_LPRIO | = lv_ir_lprio | |
| IR_KOSTK | = lv_ir_kostk | |
| IR_WBSTK | = lv_ir_wbstk | |
| IR_ERNAM | = lv_ir_ernam | |
| IV_LGNUM | = lv_iv_lgnum | |
| IR_ERDAT | = lv_ir_erdat | |
| IR_TKNUM | = lv_ir_tknum | |
| IR_TDDAT | = lv_ir_tddat | |
| IR_VTWEG | = lv_ir_vtweg | |
| IR_SPART | = lv_ir_spart | |
| IR_EBELN | = lv_ir_ebeln | |
| IR_EBELP | = lv_ir_ebelp | |
| IR_TRAID | = lv_ir_traid | |
| IR_EXIDV | = lv_ir_exidv | |
| IR_LIFEX | = lv_ir_lifex | |
| IR_DELIVERY | = lv_ir_delivery | |
| IR_LIFNR | = lv_ir_lifnr | |
| IR_EAN11 | = lv_ir_ean11 | |
| IR_PRVBE | = lv_ir_prvbe | |
| IR_AUFNR | = lv_ir_aufnr | |
| IR_RLS_DATE | = lv_ir_rls_date | |
| IR_RLS_TIME | = lv_ir_rls_time | |
| IR_XDOCK_DATE | = lv_ir_xdock_date | |
| IR_XDOCK_TIME | = lv_ir_xdock_time | |
| IR_STRG_DATE | = lv_ir_strg_date | |
| IR_STRG_TIME | = lv_ir_strg_time | |
| IR_VSTEL | = lv_ir_vstel | |
| IR_STG_AREA | = lv_ir_stg_area | |
| IR_MOVEMENT_TYPE | = lv_ir_movement_type | |
| IR_PLANT | = lv_ir_plant | |
| IR_IMWRK | = lv_ir_imwrk | |
| IR_LGNUM_HEAD | = lv_ir_lgnum_head | |
| IR_ROUTE | = lv_ir_route | |
| IR_AULWE | = lv_ir_aulwe | |
| IR_SPDNR | = lv_ir_spdnr | |
| IR_KUNAG | = lv_ir_kunag | |
| TABLES | ||
| ET_LIPOV | = lt_et_lipov | |
| ET_LIKP | = lt_et_likp | |
| ET_LIPS | = lt_et_lips | |
| EXCEPTIONS | ||
| NO_DATA_FOUND = 1 | ||
| . " LEINT_DELIVERY_GET | ||
ABAP code using 7.40 inline data declarations to call FM LEINT_DELIVERY_GET
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