WM BAPI RFC Used the same way in S/4HANA

BAPI_INB_DELIVERY_SAVEREPLICA Save Inbound Delivery Replica

Creates a copy (replica) of an inbound delivery that was created in another system, keeping the original delivery number. It is used in distributed scenarios where ERP sends deliveries to a decentralized warehouse system through ALE. It is not meant for creating new inbound deliveries in the same system, and RETURN must be checked before commit.

Function group
V50I
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
HEADER_DATABAPIIBDLVHDRDelivery header dataYes
HEADER_ORGBAPIIBDLVHDRORGHeader organizational data—
SENDER_SYSTEMTBDLS-LOGSYSSending logical systemYes
TECHN_CONTROLBAPIDLVCONTROLTechnical control data—

Exporting parameters

ParameterTypeDescription
DELIVERYLIKP-VBELNCreated delivery number

Tables parameters

ParameterTypeDescriptionRequired
HEADER_PARTNERBAPIDLVPARTNERHeader partnersYes
HEADER_PARTNER_ADDRBAPIADDR1Partner addresses—
HEADER_DEADLINESBAPIDLVDEADLNHeader deadlinesYes
ITEM_DATABAPIIBDLVITEMItem dataYes
ITEM_ORGBAPIIBDLVITEMORGItem organizational dataYes
ITEM_REF_PURCHASE_ORDERBAPIDLVITEMRPOReference purchase order—
ITEM_SERIAL_NOBAPIDLVITMSERNOItem serial numbers—
HANDLING_UNIT_HEADERBAPIDLVHDUNHDRHandling unit header—
HANDLING_UNIT_ITEMBAPIDLVHDUNITMHandling unit items—
TEXT_HEADERBAPIDLVTXTHDRText headers—
TEXT_LINESBAPIDLVTXTITEMText lines—
EXTENSION1BAPIEXTCCustomer extension data—
RETURNBAPIRET2Return messagesYes
ITEM_PROCESS_DATABAPIIBDLVITEMWMDItem WM process data—

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_INB_DELIVERY_SAVEREPLICA'
  EXPORTING
    header_data = lv_header_data
    sender_system = lv_sender_system
  IMPORTING
    delivery = lv_delivery
  TABLES
    header_partner = lt_header_partner
    header_partner_addr = lt_header_partner_addr
    header_deadlines = lt_header_deadlines
    item_data = lt_item_data
    item_org = lt_item_org
    item_ref_purchase_order = lt_item_ref_purchase_order
    item_serial_no = lt_item_serial_no
    handling_unit_header = lt_handling_unit_header
    handling_unit_item = lt_handling_unit_item
    text_header = lt_text_header.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report