SAP Function BAPI_INB_DELIVERY_SAVEREPLICA - BAPI Function Module for Replication of Inbound Deliveries

Parameter Reference Type Length Default Optional Text
HEADER_DATA BAPIIBDLVHDR u 168 Header Data
HEADER_ORG BAPIIBDLVHDRORG u 10 X Organizational Data Header
SENDER_SYSTEM TBDLS-LOGSYS C 10 Sender System
TECHN_CONTROL BAPIDLVCONTROL u 20 X Technical Control Data

Parameter Reference Type Length Text
DELIVERY LIKP-VBELN C 10 Inbound Delivery Number

Parameter Reference Length Optional Text
EXTENSION1 BAPIEXTC 1000 X Data Container (Unstructured)
EXTENSION2 BAPIEXT 332 X Data Container (Structured)
HANDLING_UNIT_HEADER BAPIDLVHDUNHDR 457 X Handling Unit Header Data
HANDLING_UNIT_ITEM BAPIDLVHDUNITM 235 X Handling Unit Item Data
HANDLING_UNIT_SERNO BAPIDLVHDUNSERNO 126 X Handling Unit Serial Numbers
HEADER_DEADLINES BAPIDLVDEADLN 34 Header Deadlines
HEADER_PARTNER BAPIDLVPARTNER 80 Header Partners
HEADER_PARTNER_ADDR BAPIADDR1 1574 X Header Partner Addresses
ITEM_CODING_BLOCK BAPIDLVCOBLITEM 234 X Account Assignment Data Item
ITEM_DATA BAPIIBDLVITEM 560 Item Data
ITEM_ORG BAPIIBDLVITEMORG 24 Organizational Data Item
ITEM_PROCESS_DATA BAPIIBDLVITEMWMD 44 X Reference of Delivery Item to Processing Data
ITEM_REF_PURCHASE_ORDER BAPIDLVITEMRPO 219 X Purchase Order Reference Data Item
ITEM_SERIAL_NO BAPIDLVITMSERNO 106 X BAPI Delivery Serial Numbers Item
ITEM_STOCK_TRANS BAPIDLVITEMSTTR 220 X Stock Transfer Data - Item
RETURN BAPIRET2 548 Return Parameters
TEXT_HEADER BAPIDLVTXTHDR 143 X Text Header Data
TEXT_LINES BAPIDLVTXTITEM 160 X Text Lines
TOKENREFERENCE BAPITOKENREFERENCE 255 X Reference for CSL Token (CSL_TR_EXS)

Functionality
You can use this method to distribute inbound deliveries from an ERPsystem to a WM system.
The following parameters are required:
HEADER_DATA,,,,,,Inbound delivery header data
SENDER_SYSTEM,,,,,,System of the sender
HEADER_PARTNER,,,,Header data of the partners
HEADER_DEADLINES,,,,Header data of the dates
ITEM_DATA,,,,,,,,Item data of the inbound delivery
ITEM_ORG,,,,,,,,Organisation data of the inbound delivery

Notes
The required parameters have the following required fields:
Import parameter HEADER_DATA
INB_DELVRY_NO
DLV_TYPE
Import parameter SENDER_SYSTEM
SENDERSYSTEM
Table parameter HEADER_PARTNER
PARTN_ROLE = 'LF' Vendor is required partner
PARTNER_NO
Table parameter HEADER_DEADLINES
TIMETYPE = 'WSHDRLFDAT' Delivery date
Table parameter ITEM_DATA
INB_DELVRY_NO
ITM_NUMBER
MATERIAL
DLV_QTY
SALES_UNIT_ISO oder SALES_UNIT
Table parameter ITEM_DATA_ORG
PLANT

Further information
This part of the text similar to the function module BAPI_OUTB_DELIVERY_
SAVEREPLICA
HEADER_PARTNER
Since the partners in the delivery are not managed on an item basis,the ITM_NUMBER field in the BAPIDLVPARTNER segment is left blank andnot analyzed.
This part of this text is similar to function module BAPI_INB_DELIVERY_
CONFIRM_DEC
HANDLING_UNIT_ITEM
If the BAPI is used as an external interface for an external system,the packing hierarchy should be described as usual by using externalidentification numbers for shipping materials(HDL_UNIT_EXID_INTO/HDL_UNIT_EXID).

Description
This parameter returns the delivery number generated in the receivingsystem.

Description
In this structure the general header data of the inbound delivery arepassed on.

Value range

Description
This structure contains the organizational data for the inbounddelivery header data.

Description
When inbound deliveries are replicated, the receiving system requiresthe logical system description of the sending system to determine thatit is a distributed inbound delivery.

Description
Using this parameter, you can cause a termination in the receivingsystem by setting the field DEBUG_FLG to 'X'. After termination, youcan re-import the IDoc with the corresponding BREAK-POINTs in thereceiving system.

Description
Customer enhancement segment
Unstructured data container that can be used as required.

Value range
Structure BAPIEXTC
Field1 CHAR(250)
Field2 CHAR(250)
Field3 CHAR(250)
Field4 CHAR(250)

Description
Customer enhancement segment
Structured data container that can be used as required.

Value range
Structure BAPIEXT
PARAMETER CHAR(30)
ROW INT (8)
FIELD CHAR(30)
VALUE CHAR(250)
TYPE CHAR(5)
LENGTH INT(4)

Description
The header data of the handling units is passed on to this table.

Description
The item data of the handling units are passed on to this table.

Description
Enter the serial numbers for a handling unit item.
For materials with a serial number requirement, you can enter theserial numbers of the HU here.

Description
In this table, the header dates are passed on in time stamp format(YYYYMMDDHHMMSS). In field BAPIDLVDEADLN-TIMETYPE the individual datefields are qualified as follows:
- WSHDRLFDAT Delivery date
- WSHDRWADAT Goods receipt date (planned)
- WSHDRTDDAT Transportation planning date (planned)

Description
This table parameter contains the header partner data of the inbounddelivery.

Description
If for the header partners in the inbound delivery different addressdata has been maintained in the master data, this address data isprovided in this parameter table.

Description
The account assignment data for each item is passed on to this table.

Description
The general item data is passed on to this table.

Description
This structure contains the organizational data for the inbounddelivery item data.

Description
The purchase order data to which the inbound delivery refers is notavailable in the receiving system since the purchase orders are notdistributed.
You can thus pass on selected purchase order data to the receivingsystem. There it is stored in a specific enhancement table for the item(LIPSPO).

Description
Enter the serial numbers for a delivery item.
For materials with a serial number requirement, you can enter theserial numbers here.

Description
Using this parameter, stock transfer data for deliveries resulting frominventory postings is passed on. These fields are not used fordeliveries that refer to a stock transfer order.

Description
The messages are collecter here and returned to the caller.

Description
In this table you have the header information for the texts.

Description
In this table, the text lines for all delivery texts are stored.