SAP SHP_BAPI_DELIVERY_CHANGE_SIMU Function Module for Simulation of Delivery Change
SHP_BAPI_DELIVERY_CHANGE_SIMU is a standard shp bapi delivery change simu SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Simulation of Delivery Change 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 change simu FM, simply by entering the name SHP_BAPI_DELIVERY_CHANGE_SIMU into the relevant SAP transaction such as SE37 or SE38.
Function Group: V50K
Program Name: SAPLV50K
Main Program: SAPLV50K
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SHP_BAPI_DELIVERY_CHANGE_SIMU 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_CHANGE_SIMU'"Simulation of Delivery Change.
EXPORTING
IS_XLIKP = "Reference Structure for XLIKP/YLIKP
IS_YLIKP = "Reference Structure for XLIKP/YLIKP
* IF_UPD_IND = ' ' "Checkbox
* IF_DECSPLI = ' ' "Flag: Split Performed in Decentralized System
IS_V50AGL = "Global Delivery Control Indicators
TABLES
IT_LIPS = "Reference Structure for XLIPS/YLIPS
ET_RETURN = "Return Parameter(s)
IT_VBFA = "Reference Structure for XVBFA/YVBFA
IT_VBPA = "Reference structure for XVBPA/YVBPA
IT_VBADR = "Reference structure for XSADR/YSADR
IT_SERNO_CHANGE = "Delivery Items in Which Serial Numbers Were Changed
IT_XVBUP = "Reference Structure for XVBUP/YVBUP
IT_YVBUP = "Reference Structure for XVBUP/YVBUP
IT_XVBUK = "Reference structure for XVBUK/YVBUK
IT_YVBUK = "Reference structure for XVBUK/YVBUK
EXCEPTIONS
COMMUNICATION_FAILURE = 1 SYSTEM_FAILURE = 2
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_CHANGE_SIMU
IS_XLIKP - Reference Structure for XLIKP/YLIKP
Data type: LIKPVBOptional: No
Call by Reference: Yes
IS_YLIKP - Reference Structure for XLIKP/YLIKP
Data type: LIKPVBOptional: No
Call by Reference: Yes
IF_UPD_IND - Checkbox
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IF_DECSPLI - Flag: Split Performed in Decentralized System
Data type: SPLIT_DONEDefault: SPACE
Optional: Yes
Call by Reference: Yes
IS_V50AGL - Global Delivery Control Indicators
Data type: V50AGLOptional: No
Call by Reference: Yes
TABLES Parameters details for SHP_BAPI_DELIVERY_CHANGE_SIMU
IT_LIPS - Reference Structure for XLIPS/YLIPS
Data type: LIPSVBOptional: No
Call by Reference: Yes
ET_RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: Yes
IT_VBFA - Reference Structure for XVBFA/YVBFA
Data type: VBFAVBOptional: No
Call by Reference: Yes
IT_VBPA - Reference structure for XVBPA/YVBPA
Data type: VBPAVBOptional: No
Call by Reference: Yes
IT_VBADR - Reference structure for XSADR/YSADR
Data type: SADRVBOptional: No
Call by Reference: Yes
IT_SERNO_CHANGE - Delivery Items in Which Serial Numbers Were Changed
Data type: SHP_SERNO_CHANGEOptional: No
Call by Reference: Yes
IT_XVBUP - Reference Structure for XVBUP/YVBUP
Data type: VBUPVBOptional: No
Call by Reference: Yes
IT_YVBUP - Reference Structure for XVBUP/YVBUP
Data type: VBUPVBOptional: No
Call by Reference: Yes
IT_XVBUK - Reference structure for XVBUK/YVBUK
Data type: VBUKVBOptional: No
Call by Reference: Yes
IT_YVBUK - Reference structure for XVBUK/YVBUK
Data type: VBUKVBOptional: No
Call by Reference: Yes
EXCEPTIONS details
COMMUNICATION_FAILURE - Communication Error
Data type:Optional: No
Call by Reference: Yes
SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SHP_BAPI_DELIVERY_CHANGE_SIMU 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_it_lips | TYPE STANDARD TABLE OF LIPSVB, " | |||
| lv_is_xlikp | TYPE LIKPVB, " | |||
| lv_communication_failure | TYPE LIKPVB, " | |||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_it_vbfa | TYPE STANDARD TABLE OF VBFAVB, " | |||
| lv_is_ylikp | TYPE LIKPVB, " | |||
| lv_system_failure | TYPE LIKPVB, " | |||
| lt_it_vbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lv_if_upd_ind | TYPE XFELD, " ' ' | |||
| lt_it_vbadr | TYPE STANDARD TABLE OF SADRVB, " | |||
| lv_if_decspli | TYPE SPLIT_DONE, " SPACE | |||
| lv_is_v50agl | TYPE V50AGL, " | |||
| lt_it_serno_change | TYPE STANDARD TABLE OF SHP_SERNO_CHANGE, " | |||
| lt_it_xvbup | TYPE STANDARD TABLE OF VBUPVB, " | |||
| lt_it_yvbup | TYPE STANDARD TABLE OF VBUPVB, " | |||
| lt_it_xvbuk | TYPE STANDARD TABLE OF VBUKVB, " | |||
| lt_it_yvbuk | TYPE STANDARD TABLE OF VBUKVB. " |
|   CALL FUNCTION 'SHP_BAPI_DELIVERY_CHANGE_SIMU' "Simulation of Delivery Change |
| EXPORTING | ||
| IS_XLIKP | = lv_is_xlikp | |
| IS_YLIKP | = lv_is_ylikp | |
| IF_UPD_IND | = lv_if_upd_ind | |
| IF_DECSPLI | = lv_if_decspli | |
| IS_V50AGL | = lv_is_v50agl | |
| TABLES | ||
| IT_LIPS | = lt_it_lips | |
| ET_RETURN | = lt_et_return | |
| IT_VBFA | = lt_it_vbfa | |
| IT_VBPA | = lt_it_vbpa | |
| IT_VBADR | = lt_it_vbadr | |
| IT_SERNO_CHANGE | = lt_it_serno_change | |
| IT_XVBUP | = lt_it_xvbup | |
| IT_YVBUP | = lt_it_yvbup | |
| IT_XVBUK | = lt_it_xvbuk | |
| IT_YVBUK | = lt_it_yvbuk | |
| EXCEPTIONS | ||
| COMMUNICATION_FAILURE = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " SHP_BAPI_DELIVERY_CHANGE_SIMU | ||
ABAP code using 7.40 inline data declarations to call FM SHP_BAPI_DELIVERY_CHANGE_SIMU
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_upd_ind) | = ' '. | |||
| DATA(ld_if_decspli) | = ' '. | |||
Search for further information about these or an SAP related objects