SAP SHP_BAPI_DELIVERY_REPLICA Function Module for Call BAPI for Delivery Replication









SHP_BAPI_DELIVERY_REPLICA is a standard shp bapi delivery replica SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Call BAPI for Delivery Replication 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 shp bapi delivery replica FM, simply by entering the name SHP_BAPI_DELIVERY_REPLICA into the relevant SAP transaction such as SE37 or SE38.

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



Function SHP_BAPI_DELIVERY_REPLICA 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 'SHP_BAPI_DELIVERY_REPLICA'"Call BAPI for Delivery Replication
EXPORTING
* IF_SYNCHRON = ' ' "
* IF_RMSYS_DLV_CREA = "
IS_V50AGL = "Global Delivery Control Indicators

TABLES
CT_LIKP = "
* CT_VBFS = "Error Log for Collective Processing
IT_SERNO_CHANGE = "Delivery Items in Which Serial Numbers Were Changed
* CT_YLIKP = "
IT_LIPS = "
IT_VBFA = "Reference Structure for XVBFA/YVBFA
IT_VBPA = "
IT_VBADR = "
IT_VBUK = "
* IT_VBAK = "Sales Document: Header Data
* IT_VBAP = "Document Structure for XVBAP/YVBAP
* IT_VBKD = "Reference structure for XVBKD/YVBKD
.




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_SAPLV50K_005 User Exit BAPI Inbound Delivery Replication (Outbound from Sending System)
EXIT_SAPLV50K_006 User Exit BAPI Inbound Deliv. Confirmation (Outbound from Sending System)
EXIT_SAPLV50K_007 User Exit BAPI Outbound Delivery Replication (Outbound from Sender System)
EXIT_SAPLV50K_008 User Exit BAPI Outbound Deliv. Confirmation (Outbound from Sending System)
EXIT_SAPLV50K_011 User Exit BAPI for Changing Inbound Deliveries (Outbound)
EXIT_SAPLV50K_012 User Exit BAPI for Changing Outbound Deliveries (Outbound)

IMPORTING Parameters details for SHP_BAPI_DELIVERY_REPLICA

IF_SYNCHRON -

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

IF_RMSYS_DLV_CREA -

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

IS_V50AGL - Global Delivery Control Indicators

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

TABLES Parameters details for SHP_BAPI_DELIVERY_REPLICA

CT_LIKP -

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

CT_VBFS - Error Log for Collective Processing

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

IT_SERNO_CHANGE - Delivery Items in Which Serial Numbers Were Changed

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

CT_YLIKP -

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

IT_LIPS -

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

IT_VBFA - Reference Structure for XVBFA/YVBFA

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

IT_VBPA -

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

IT_VBADR -

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

IT_VBUK -

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

IT_VBAK - Sales Document: Header Data

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

IT_VBAP - Document Structure for XVBAP/YVBAP

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

IT_VBKD - Reference structure for XVBKD/YVBKD

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

Copy and paste ABAP code example for SHP_BAPI_DELIVERY_REPLICA 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:
lt_ct_likp  TYPE STANDARD TABLE OF LIKPVB, "   
lv_if_synchron  TYPE LIKPVB, "   SPACE
lt_ct_vbfs  TYPE STANDARD TABLE OF VBFS, "   
lt_it_serno_change  TYPE STANDARD TABLE OF SHP_SERNO_CHANGE, "   
lt_ct_ylikp  TYPE STANDARD TABLE OF LIKP, "   
lt_it_lips  TYPE STANDARD TABLE OF LIPSVB, "   
lv_if_rmsys_dlv_crea  TYPE LIPSVB, "   
lt_it_vbfa  TYPE STANDARD TABLE OF VBFAVB, "   
lv_is_v50agl  TYPE V50AGL, "   
lt_it_vbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lt_it_vbadr  TYPE STANDARD TABLE OF SADRVB, "   
lt_it_vbuk  TYPE STANDARD TABLE OF VBUKVB, "   
lt_it_vbak  TYPE STANDARD TABLE OF VBAK, "   
lt_it_vbap  TYPE STANDARD TABLE OF VBAPVB, "   
lt_it_vbkd  TYPE STANDARD TABLE OF VBKDVB. "   

  CALL FUNCTION 'SHP_BAPI_DELIVERY_REPLICA'  "Call BAPI for Delivery Replication
    EXPORTING
         IF_SYNCHRON = lv_if_synchron
         IF_RMSYS_DLV_CREA = lv_if_rmsys_dlv_crea
         IS_V50AGL = lv_is_v50agl
    TABLES
         CT_LIKP = lt_ct_likp
         CT_VBFS = lt_ct_vbfs
         IT_SERNO_CHANGE = lt_it_serno_change
         CT_YLIKP = lt_ct_ylikp
         IT_LIPS = lt_it_lips
         IT_VBFA = lt_it_vbfa
         IT_VBPA = lt_it_vbpa
         IT_VBADR = lt_it_vbadr
         IT_VBUK = lt_it_vbuk
         IT_VBAK = lt_it_vbak
         IT_VBAP = lt_it_vbap
         IT_VBKD = lt_it_vbkd
. " SHP_BAPI_DELIVERY_REPLICA




ABAP code using 7.40 inline data declarations to call FM SHP_BAPI_DELIVERY_REPLICA

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.

 
DATA(ld_if_synchron) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!