SAP BAPI_INB_DELIVERY_SAVEREPLICA Function Module for BAPI Function Module for Replication of Inbound Deliveries
BAPI_INB_DELIVERY_SAVEREPLICA is a standard bapi inb delivery savereplica SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI Function Module for Replication of Inbound Deliveries 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 inb delivery savereplica FM, simply by entering the name BAPI_INB_DELIVERY_SAVEREPLICA into the relevant SAP transaction such as SE37 or SE38.
Function Group: V50I
Program Name: SAPLV50I
Main Program: SAPLV50I
Appliation area: V
Release date: 22-Jun-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function BAPI_INB_DELIVERY_SAVEREPLICA 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_INB_DELIVERY_SAVEREPLICA'"BAPI Function Module for Replication of Inbound Deliveries.
EXPORTING
HEADER_DATA = "Header Data
* HEADER_ORG = "Organizational Data Header
SENDER_SYSTEM = "Sender System
* TECHN_CONTROL = "Technical Control Data
IMPORTING
DELIVERY = "Inbound Delivery Number
TABLES
HEADER_PARTNER = "Header Partners
* TEXT_HEADER = "Text Header Data
* TEXT_LINES = "Text Lines
* HANDLING_UNIT_HEADER = "Handling Unit Header Data
* HANDLING_UNIT_ITEM = "Handling Unit Item Data
* HANDLING_UNIT_SERNO = "Handling Unit Serial Numbers
* EXTENSION1 = "Data Container (Unstructured)
* EXTENSION2 = "Data Container (Structured)
RETURN = "Return Parameters
* TOKENREFERENCE = "Reference for CSL Token (CSL_TR_EXS)
* ITEM_PROCESS_DATA = "Reference of Delivery Item to Processing Data
* HEADER_PARTNER_ADDR = "Header Partner Addresses
HEADER_DEADLINES = "Header Deadlines
ITEM_DATA = "Item Data
ITEM_ORG = "Organizational Data Item
* ITEM_STOCK_TRANS = "Stock Transfer Data - Item
* ITEM_CODING_BLOCK = "Account Assignment Data Item
* ITEM_REF_PURCHASE_ORDER = "Purchase Order Reference Data Item
* ITEM_SERIAL_NO = "BAPI Delivery Serial Numbers Item
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_INB_DELIVERY_SAVEREPLICA
HEADER_DATA - Header Data
Data type: BAPIIBDLVHDROptional: No
Call by Reference: No ( called with pass by value option)
HEADER_ORG - Organizational Data Header
Data type: BAPIIBDLVHDRORGOptional: Yes
Call by Reference: No ( called with pass by value option)
SENDER_SYSTEM - Sender System
Data type: TBDLS-LOGSYSOptional: No
Call by Reference: No ( called with pass by value option)
TECHN_CONTROL - Technical Control Data
Data type: BAPIDLVCONTROLOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_INB_DELIVERY_SAVEREPLICA
DELIVERY - Inbound Delivery Number
Data type: LIKP-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_INB_DELIVERY_SAVEREPLICA
HEADER_PARTNER - Header Partners
Data type: BAPIDLVPARTNEROptional: No
Call by Reference: No ( called with pass by value option)
TEXT_HEADER - Text Header Data
Data type: BAPIDLVTXTHDROptional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_LINES - Text Lines
Data type: BAPIDLVTXTITEMOptional: Yes
Call by Reference: No ( called with pass by value option)
HANDLING_UNIT_HEADER - Handling Unit Header Data
Data type: BAPIDLVHDUNHDROptional: Yes
Call by Reference: No ( called with pass by value option)
HANDLING_UNIT_ITEM - Handling Unit Item Data
Data type: BAPIDLVHDUNITMOptional: Yes
Call by Reference: No ( called with pass by value option)
HANDLING_UNIT_SERNO - Handling Unit Serial Numbers
Data type: BAPIDLVHDUNSERNOOptional: Yes
Call by Reference: Yes
EXTENSION1 - Data Container (Unstructured)
Data type: BAPIEXTCOptional: Yes
Call by Reference: No ( called with pass by value option)
EXTENSION2 - Data Container (Structured)
Data type: BAPIEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return Parameters
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
TOKENREFERENCE - Reference for CSL Token (CSL_TR_EXS)
Data type: BAPITOKENREFERENCEOptional: Yes
Call by Reference: Yes
ITEM_PROCESS_DATA - Reference of Delivery Item to Processing Data
Data type: BAPIIBDLVITEMWMDOptional: Yes
Call by Reference: Yes
HEADER_PARTNER_ADDR - Header Partner Addresses
Data type: BAPIADDR1Optional: Yes
Call by Reference: No ( called with pass by value option)
HEADER_DEADLINES - Header Deadlines
Data type: BAPIDLVDEADLNOptional: No
Call by Reference: No ( called with pass by value option)
ITEM_DATA - Item Data
Data type: BAPIIBDLVITEMOptional: No
Call by Reference: No ( called with pass by value option)
ITEM_ORG - Organizational Data Item
Data type: BAPIIBDLVITEMORGOptional: No
Call by Reference: No ( called with pass by value option)
ITEM_STOCK_TRANS - Stock Transfer Data - Item
Data type: BAPIDLVITEMSTTROptional: Yes
Call by Reference: No ( called with pass by value option)
ITEM_CODING_BLOCK - Account Assignment Data Item
Data type: BAPIDLVCOBLITEMOptional: Yes
Call by Reference: No ( called with pass by value option)
ITEM_REF_PURCHASE_ORDER - Purchase Order Reference Data Item
Data type: BAPIDLVITEMRPOOptional: Yes
Call by Reference: No ( called with pass by value option)
ITEM_SERIAL_NO - BAPI Delivery Serial Numbers Item
Data type: BAPIDLVITMSERNOOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_INB_DELIVERY_SAVEREPLICA 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_item | TYPE STANDARD TABLE OF BAPIDLVHDUNITM, " | |||
lt_handling_unit_serno | TYPE STANDARD TABLE OF BAPIDLVHDUNSERNO, " | |||
lt_extension1 | TYPE STANDARD TABLE OF BAPIEXTC, " | |||
lt_extension2 | TYPE STANDARD TABLE OF BAPIEXT, " | |||
lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
lt_tokenreference | TYPE STANDARD TABLE OF BAPITOKENREFERENCE, " | |||
lt_item_process_data | TYPE STANDARD TABLE OF BAPIIBDLVITEMWMD, " | |||
lv_header_org | TYPE BAPIIBDLVHDRORG, " | |||
lt_header_partner_addr | TYPE STANDARD TABLE OF BAPIADDR1, " | |||
lv_sender_system | TYPE TBDLS-LOGSYS, " | |||
lt_header_deadlines | TYPE STANDARD TABLE OF BAPIDLVDEADLN, " | |||
lt_item_data | TYPE STANDARD TABLE OF BAPIIBDLVITEM, " | |||
lv_techn_control | TYPE BAPIDLVCONTROL, " | |||
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, " | |||
lt_item_serial_no | TYPE STANDARD TABLE OF BAPIDLVITMSERNO. " |
  CALL FUNCTION 'BAPI_INB_DELIVERY_SAVEREPLICA' "BAPI Function Module for Replication of Inbound Deliveries |
EXPORTING | ||
HEADER_DATA | = lv_header_data | |
HEADER_ORG | = lv_header_org | |
SENDER_SYSTEM | = lv_sender_system | |
TECHN_CONTROL | = lv_techn_control | |
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_ITEM | = lt_handling_unit_item | |
HANDLING_UNIT_SERNO | = lt_handling_unit_serno | |
EXTENSION1 | = lt_extension1 | |
EXTENSION2 | = lt_extension2 | |
RETURN | = lt_return | |
TOKENREFERENCE | = lt_tokenreference | |
ITEM_PROCESS_DATA | = lt_item_process_data | |
HEADER_PARTNER_ADDR | = lt_header_partner_addr | |
HEADER_DEADLINES | = lt_header_deadlines | |
ITEM_DATA | = lt_item_data | |
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 | |
ITEM_SERIAL_NO | = lt_item_serial_no | |
. " BAPI_INB_DELIVERY_SAVEREPLICA |
ABAP code using 7.40 inline data declarations to call FM BAPI_INB_DELIVERY_SAVEREPLICA
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). | ||||
"SELECT single LOGSYS FROM TBDLS INTO @DATA(ld_sender_system). | ||||
Search for further information about these or an SAP related objects