SAP SD_DELIVERY_ITEMS_RECEIVE Function Module for
SD_DELIVERY_ITEMS_RECEIVE is a standard sd delivery items receive SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sd delivery items receive FM, simply by entering the name SD_DELIVERY_ITEMS_RECEIVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: V02V
Program Name: SAPLV02V
Main Program: SAPLV02V
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_DELIVERY_ITEMS_RECEIVE 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 'SD_DELIVERY_ITEMS_RECEIVE'".
EXPORTING
VBELN = "
* POSNR = "Delivery item number
* WERKS = "Receiving Plant
* IS_T156 = "
* IF_LOCK = ' ' "Block
IMPORTING
WE_EXISTS = "
ES_LIKP = "SD Document: Delivery Header Data
TABLES
WUEB = "
EXCEPTIONS
NO_DELIVERY = 1 DELIVERY_NOT_SUITABLE = 2 DELIVERY_NOT_POSTED_GI = 3 NO_ITEMS_RECEIVING = 4 NO_RECEIVING_PLANT = 5 NO_DELIVERY_ITEM = 6 NO_MOVEMENT_TYPE = 7 DELIVERY_LOCKED = 8
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLV02V_001 User Exit for Sales Area Determination
EXIT_SAPLV02V_002 User Exit Storage Location Determination
EXIT_SAPLV02V_003 User Exit for Door and Staging Area Determination
EXIT_SAPLV02V_004 User Exit for Staging Area Determination - Delivery Item
IMPORTING Parameters details for SD_DELIVERY_ITEMS_RECEIVE
VBELN -
Data type: LIKP-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
POSNR - Delivery item number
Data type: LIPS-POSNROptional: Yes
Call by Reference: No ( called with pass by value option)
WERKS - Receiving Plant
Data type: LIKP-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_T156 -
Data type: T156Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_LOCK - Block
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_DELIVERY_ITEMS_RECEIVE
WE_EXISTS -
Data type: RVSEL-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
ES_LIKP - SD Document: Delivery Header Data
Data type: LIKPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SD_DELIVERY_ITEMS_RECEIVE
WUEB -
Data type: WUEBOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DELIVERY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DELIVERY_NOT_SUITABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DELIVERY_NOT_POSTED_GI -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ITEMS_RECEIVING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_RECEIVING_PLANT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DELIVERY_ITEM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MOVEMENT_TYPE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DELIVERY_LOCKED - Delivery Blocked
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SD_DELIVERY_ITEMS_RECEIVE 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_wueb | TYPE STANDARD TABLE OF WUEB, " | |||
| lv_vbeln | TYPE LIKP-VBELN, " | |||
| lv_we_exists | TYPE RVSEL-XFELD, " | |||
| lv_no_delivery | TYPE RVSEL, " | |||
| lv_posnr | TYPE LIPS-POSNR, " | |||
| lv_es_likp | TYPE LIKP, " | |||
| lv_delivery_not_suitable | TYPE LIKP, " | |||
| lv_werks | TYPE LIKP-WERKS, " | |||
| lv_delivery_not_posted_gi | TYPE LIKP, " | |||
| lv_is_t156 | TYPE T156, " | |||
| lv_no_items_receiving | TYPE T156, " | |||
| lv_if_lock | TYPE XFELD, " SPACE | |||
| lv_no_receiving_plant | TYPE XFELD, " | |||
| lv_no_delivery_item | TYPE XFELD, " | |||
| lv_no_movement_type | TYPE XFELD, " | |||
| lv_delivery_locked | TYPE XFELD. " |
|   CALL FUNCTION 'SD_DELIVERY_ITEMS_RECEIVE' " |
| EXPORTING | ||
| VBELN | = lv_vbeln | |
| POSNR | = lv_posnr | |
| WERKS | = lv_werks | |
| IS_T156 | = lv_is_t156 | |
| IF_LOCK | = lv_if_lock | |
| IMPORTING | ||
| WE_EXISTS | = lv_we_exists | |
| ES_LIKP | = lv_es_likp | |
| TABLES | ||
| WUEB | = lt_wueb | |
| EXCEPTIONS | ||
| NO_DELIVERY = 1 | ||
| DELIVERY_NOT_SUITABLE = 2 | ||
| DELIVERY_NOT_POSTED_GI = 3 | ||
| NO_ITEMS_RECEIVING = 4 | ||
| NO_RECEIVING_PLANT = 5 | ||
| NO_DELIVERY_ITEM = 6 | ||
| NO_MOVEMENT_TYPE = 7 | ||
| DELIVERY_LOCKED = 8 | ||
| . " SD_DELIVERY_ITEMS_RECEIVE | ||
ABAP code using 7.40 inline data declarations to call FM SD_DELIVERY_ITEMS_RECEIVE
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.| "SELECT single VBELN FROM LIKP INTO @DATA(ld_vbeln). | ||||
| "SELECT single XFELD FROM RVSEL INTO @DATA(ld_we_exists). | ||||
| "SELECT single POSNR FROM LIPS INTO @DATA(ld_posnr). | ||||
| "SELECT single WERKS FROM LIKP INTO @DATA(ld_werks). | ||||
| DATA(ld_if_lock) | = ' '. | |||
Search for further information about these or an SAP related objects