SAP BAPI_IBDLV_CREATE_FROM_OBDLV Function Module for NOTRANSL: BAPI Anlieferung aus Auslieferung









BAPI_IBDLV_CREATE_FROM_OBDLV is a standard bapi ibdlv create from obdlv 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: BAPI Anlieferung aus Auslieferung 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 bapi ibdlv create from obdlv FM, simply by entering the name BAPI_IBDLV_CREATE_FROM_OBDLV into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_IBDLV_CREATE_FROM_OBDLV 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 'BAPI_IBDLV_CREATE_FROM_OBDLV'"NOTRANSL: BAPI Anlieferung aus Auslieferung
EXPORTING
HEADER_DATA = "
HEADER_ORG = "
HEADER_STOCK_TRANS = "
* HEADER_DATA_SPL = "
* HEADER_DATA_EXTEND = "

IMPORTING
DELIVERY = "

TABLES
HEADER_PARTNER = "
* TEXT_HEADER = "
* TEXT_LINES = "
* HANDLING_UNIT_HEADER = "
* HANDLING_UNIT_HEADER_CROSS = "
* HANDLING_UNIT_IDENTIFIERS = "
* HANDLING_UNIT_ITEM = "
* HANDLING_UNIT_ITEM_SPL = "Handling Unit Item
* HANDLING_UNIT_REHANG = "
* HANDLING_UNIT_SERNO = "Handling Unit Serial Numbers
* HANDLING_UNIT_HEADER_EPC = "
* HEADER_PARTNER_ADDR = "
* HANDLING_UNIT_ITEMS_EPC = "
* ITEM_SERIAL_NO = "
* EXTENSION1 = "
* EXTENSION2 = "
RETURN = "
HEADER_DEADLINES = "
ITEM_DATA = "
* ITEM_DATA_SPL = "
ITEM_ORG = "
* ITEM_STOCK_TRANS = "
* ITEM_CODING_BLOCK = "
* ITEM_REF_PURCHASE_ORDER = "
.




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_SAPLV50I_001 User Exit BAPI Inbound Delivery Replication
EXIT_SAPLV50I_002 User Exit BAPI Inbound Delivery Confirmation
EXIT_SAPLV50I_003 User Exit BAPI Outbound Delivery Replication
EXIT_SAPLV50I_004 User Exit BAPI Outbound Delivery Confirmation
EXIT_SAPLV50I_009 User Exit BAPI for Changing Inbound Deliveries
EXIT_SAPLV50I_010 User Exit BAPI for Changing Outbound Deliveries

IMPORTING Parameters details for BAPI_IBDLV_CREATE_FROM_OBDLV

HEADER_DATA -

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

HEADER_ORG -

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

HEADER_STOCK_TRANS -

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

HEADER_DATA_SPL -

Data type: /SPE/BAPIIBDLVHDR
Optional: Yes
Call by Reference: Yes

HEADER_DATA_EXTEND -

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

EXPORTING Parameters details for BAPI_IBDLV_CREATE_FROM_OBDLV

DELIVERY -

Data type: LIKP-VBELN
Optional: No
Call by Reference: Yes

TABLES Parameters details for BAPI_IBDLV_CREATE_FROM_OBDLV

HEADER_PARTNER -

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

TEXT_HEADER -

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

TEXT_LINES -

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

HANDLING_UNIT_HEADER -

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

HANDLING_UNIT_HEADER_CROSS -

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

HANDLING_UNIT_IDENTIFIERS -

Data type: /SPE/BAPIDLVHDUNID
Optional: Yes
Call by Reference: Yes

HANDLING_UNIT_ITEM -

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

HANDLING_UNIT_ITEM_SPL - Handling Unit Item

Data type: /SPE/BAPIDLVHDUNITM
Optional: Yes
Call by Reference: No ( called with pass by value option)

HANDLING_UNIT_REHANG -

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

HANDLING_UNIT_SERNO - Handling Unit Serial Numbers

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

HANDLING_UNIT_HEADER_EPC -

Data type: /SPE/BAPI_HU_HEADER_EPC
Optional: Yes
Call by Reference: Yes

HEADER_PARTNER_ADDR -

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

HANDLING_UNIT_ITEMS_EPC -

Data type: /SPE/BAPI_HU_ITEMS_EPC
Optional: Yes
Call by Reference: Yes

ITEM_SERIAL_NO -

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

EXTENSION1 -

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

EXTENSION2 -

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

RETURN -

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

HEADER_DEADLINES -

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

ITEM_DATA -

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

ITEM_DATA_SPL -

Data type: /SPE/BAPIIBDLVITEM
Optional: Yes
Call by Reference: Yes

ITEM_ORG -

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

ITEM_STOCK_TRANS -

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

ITEM_CODING_BLOCK -

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

ITEM_REF_PURCHASE_ORDER -

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

Copy and paste ABAP code example for BAPI_IBDLV_CREATE_FROM_OBDLV 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_delivery  TYPE LIKP-VBELN, "   
lv_header_data  TYPE BAPIIBDLVHDR, "   
lt_header_partner  TYPE STANDARD TABLE OF BAPIDLVPARTNER, "   
lt_text_header  TYPE STANDARD TABLE OF BAPIDLVTXTHDR, "   
lt_text_lines  TYPE STANDARD TABLE OF BAPIDLVTXTITEM, "   
lt_handling_unit_header  TYPE STANDARD TABLE OF BAPIDLVHDUNHDR, "   
lt_handling_unit_header_cross  TYPE STANDARD TABLE OF BAPIDLVHDUNHDR, "   
lt_handling_unit_identifiers  TYPE STANDARD TABLE OF /SPE/BAPIDLVHDUNID, "   
lt_handling_unit_item  TYPE STANDARD TABLE OF BAPIDLVHDUNITM, "   
lt_handling_unit_item_spl  TYPE STANDARD TABLE OF /SPE/BAPIDLVHDUNITM, "   
lt_handling_unit_rehang  TYPE STANDARD TABLE OF BAPIDLVHDUNREHANG, "   
lt_handling_unit_serno  TYPE STANDARD TABLE OF BAPIDLVHDUNSERNO, "   
lt_handling_unit_header_epc  TYPE STANDARD TABLE OF /SPE/BAPI_HU_HEADER_EPC, "   
lv_header_org  TYPE BAPIIBDLVHDRORG, "   
lt_header_partner_addr  TYPE STANDARD TABLE OF BAPIADDR1, "   
lt_handling_unit_items_epc  TYPE STANDARD TABLE OF /SPE/BAPI_HU_ITEMS_EPC, "   
lt_item_serial_no  TYPE STANDARD TABLE OF BAPIDLVITMSERNO, "   
lt_extension1  TYPE STANDARD TABLE OF BAPIEXTC, "   
lt_extension2  TYPE STANDARD TABLE OF BAPIEXT, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_header_deadlines  TYPE STANDARD TABLE OF BAPIDLVDEADLN, "   
lv_header_stock_trans  TYPE BAPIDLVHDRSTTR, "   
lt_item_data  TYPE STANDARD TABLE OF BAPIIBDLVITEM, "   
lv_header_data_spl  TYPE /SPE/BAPIIBDLVHDR, "   
lt_item_data_spl  TYPE STANDARD TABLE OF /SPE/BAPIIBDLVITEM, "   
lv_header_data_extend  TYPE BAPIIBDLVHDREXTENSION, "   
lt_item_org  TYPE STANDARD TABLE OF BAPIIBDLVITEMORG, "   
lt_item_stock_trans  TYPE STANDARD TABLE OF BAPIDLVITEMSTTR, "   
lt_item_coding_block  TYPE STANDARD TABLE OF BAPIDLVCOBLITEM, "   
lt_item_ref_purchase_order  TYPE STANDARD TABLE OF BAPIDLVITEMRPO. "   

  CALL FUNCTION 'BAPI_IBDLV_CREATE_FROM_OBDLV'  "NOTRANSL: BAPI Anlieferung aus Auslieferung
    EXPORTING
         HEADER_DATA = lv_header_data
         HEADER_ORG = lv_header_org
         HEADER_STOCK_TRANS = lv_header_stock_trans
         HEADER_DATA_SPL = lv_header_data_spl
         HEADER_DATA_EXTEND = lv_header_data_extend
    IMPORTING
         DELIVERY = lv_delivery
    TABLES
         HEADER_PARTNER = lt_header_partner
         TEXT_HEADER = lt_text_header
         TEXT_LINES = lt_text_lines
         HANDLING_UNIT_HEADER = lt_handling_unit_header
         HANDLING_UNIT_HEADER_CROSS = lt_handling_unit_header_cross
         HANDLING_UNIT_IDENTIFIERS = lt_handling_unit_identifiers
         HANDLING_UNIT_ITEM = lt_handling_unit_item
         HANDLING_UNIT_ITEM_SPL = lt_handling_unit_item_spl
         HANDLING_UNIT_REHANG = lt_handling_unit_rehang
         HANDLING_UNIT_SERNO = lt_handling_unit_serno
         HANDLING_UNIT_HEADER_EPC = lt_handling_unit_header_epc
         HEADER_PARTNER_ADDR = lt_header_partner_addr
         HANDLING_UNIT_ITEMS_EPC = lt_handling_unit_items_epc
         ITEM_SERIAL_NO = lt_item_serial_no
         EXTENSION1 = lt_extension1
         EXTENSION2 = lt_extension2
         RETURN = lt_return
         HEADER_DEADLINES = lt_header_deadlines
         ITEM_DATA = lt_item_data
         ITEM_DATA_SPL = lt_item_data_spl
         ITEM_ORG = lt_item_org
         ITEM_STOCK_TRANS = lt_item_stock_trans
         ITEM_CODING_BLOCK = lt_item_coding_block
         ITEM_REF_PURCHASE_ORDER = lt_item_ref_purchase_order
. " BAPI_IBDLV_CREATE_FROM_OBDLV




ABAP code using 7.40 inline data declarations to call FM BAPI_IBDLV_CREATE_FROM_OBDLV

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_delivery).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!