SAP LE_DELIVERY_PREFETCH Function Module for Text DE-EN-LANG-SWITCH-NO-TRANSLATION
LE_DELIVERY_PREFETCH is a standard le delivery prefetch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Text DE-EN-LANG-SWITCH-NO-TRANSLATION 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 delivery prefetch FM, simply by entering the name LE_DELIVERY_PREFETCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: LE_SHP_DB_DELIVERY_BUFFER
Program Name: SAPLLE_SHP_DB_DELIVERY_BUFFER
Main Program: SAPLLE_SHP_DB_DELIVERY_BUFFER
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LE_DELIVERY_PREFETCH 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_DELIVERY_PREFETCH'"Text DE-EN-LANG-SWITCH-NO-TRANSLATION.
EXPORTING
IS_SELECT_OPTIONS = "Text DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
EX_ADD_DATA = "Text DE-EN-LANG-SWITCH-NO-TRANSLATION
CHANGING
* CX_DELIVERIES = "Several Deliveries: Data, Items, Control Data
* CX_UNLOCKABLE = "Text DE-EN-LANG-SWITCH-NO-TRANSLATION
* CT_ORDERS_NOT_LOCKED = "Text DE-EN-LANG-SWITCH-NO-TRANSLATION
* CX_UNLOCKABLE_CSL = "Text DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
NO_ITEM_SELECTED = 1 SELECTED_ITEM_ENQUEUED = 2 CRITERIA_NOT_IMPLEMENTED = 3
IMPORTING Parameters details for LE_DELIVERY_PREFETCH
IS_SELECT_OPTIONS - Text DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: LESHP_DELIVERY_SELECT_OPTIONSOptional: No
Call by Reference: Yes
EXPORTING Parameters details for LE_DELIVERY_PREFETCH
EX_ADD_DATA - Text DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: LESHP_ADD_DATAOptional: No
Call by Reference: Yes
CHANGING Parameters details for LE_DELIVERY_PREFETCH
CX_DELIVERIES - Several Deliveries: Data, Items, Control Data
Data type: LESHP_DELIVERY_TOptional: Yes
Call by Reference: Yes
CX_UNLOCKABLE - Text DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: LESHP_DELIVERY_KEY_TOptional: Yes
Call by Reference: Yes
CT_ORDERS_NOT_LOCKED - Text DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: LESHP_ORDER_NOT_LOCKABLE_TOptional: Yes
Call by Reference: Yes
CX_UNLOCKABLE_CSL - Text DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: LESHP_DELIVERY_KEY_TOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_ITEM_SELECTED -
Data type:Optional: No
Call by Reference: Yes
SELECTED_ITEM_ENQUEUED -
Data type:Optional: No
Call by Reference: Yes
CRITERIA_NOT_IMPLEMENTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LE_DELIVERY_PREFETCH 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_ex_add_data | TYPE LESHP_ADD_DATA, " | |||
| lv_cx_deliveries | TYPE LESHP_DELIVERY_T, " | |||
| lv_no_item_selected | TYPE LESHP_DELIVERY_T, " | |||
| lv_is_select_options | TYPE LESHP_DELIVERY_SELECT_OPTIONS, " | |||
| lv_cx_unlockable | TYPE LESHP_DELIVERY_KEY_T, " | |||
| lv_selected_item_enqueued | TYPE LESHP_DELIVERY_KEY_T, " | |||
| lv_ct_orders_not_locked | TYPE LESHP_ORDER_NOT_LOCKABLE_T, " | |||
| lv_criteria_not_implemented | TYPE LESHP_ORDER_NOT_LOCKABLE_T, " | |||
| lv_cx_unlockable_csl | TYPE LESHP_DELIVERY_KEY_T. " |
|   CALL FUNCTION 'LE_DELIVERY_PREFETCH' "Text DE-EN-LANG-SWITCH-NO-TRANSLATION |
| EXPORTING | ||
| IS_SELECT_OPTIONS | = lv_is_select_options | |
| IMPORTING | ||
| EX_ADD_DATA | = lv_ex_add_data | |
| CHANGING | ||
| CX_DELIVERIES | = lv_cx_deliveries | |
| CX_UNLOCKABLE | = lv_cx_unlockable | |
| CT_ORDERS_NOT_LOCKED | = lv_ct_orders_not_locked | |
| CX_UNLOCKABLE_CSL | = lv_cx_unlockable_csl | |
| EXCEPTIONS | ||
| NO_ITEM_SELECTED = 1 | ||
| SELECTED_ITEM_ENQUEUED = 2 | ||
| CRITERIA_NOT_IMPLEMENTED = 3 | ||
| . " LE_DELIVERY_PREFETCH | ||
ABAP code using 7.40 inline data declarations to call FM LE_DELIVERY_PREFETCH
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