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

BAPI_OUTB_DELIVERY_SAVEREPLICA Save Outbound Delivery Replica

Creates a copy (replica) of an outbound delivery that was created in another system, keeping the original delivery number. It is used when deliveries are distributed through ALE to a decentralized warehouse or shipping system. To create new outbound deliveries in the same system, use BAPI_OUTB_DELIVERY_CREATE_SLS or BAPI_OUTB_DELIVERY_CREATE_STO instead.

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

Importing parameters

ParameterTypeDescriptionRequired
HEADER_DATABAPIOBDLVHDRDelivery header dataYes
HEADER_ORGBAPIOBDLVHDRORGHeader organizational dataYes
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_DATABAPIOBDLVITEMItem dataYes
ITEM_ORGBAPIOBDLVITEMORGItem 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_REFERENCE_ORDERBAPIOBDLVITEMRFOReference sales order—

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_OUTB_DELIVERY_SAVEREPLICA'
  EXPORTING
    header_data = lv_header_data
    header_org = lv_header_org
    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