SAP /ISDFPS/BAPI_BATCH_REPLICATE Function Module for
/ISDFPS/BAPI_BATCH_REPLICATE is a standard /isdfps/bapi batch replicate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 /isdfps/bapi batch replicate FM, simply by entering the name /ISDFPS/BAPI_BATCH_REPLICATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: /ISDFPS/CRUPS
Program Name: /ISDFPS/SAPLCRUPS
Main Program: /ISDFPS/SAPLCRUPS
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /ISDFPS/BAPI_BATCH_REPLICATE 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 '/ISDFPS/BAPI_BATCH_REPLICATE'".
EXPORTING
* MATERIAL = "
BATCH = "
* PLANT = "
* ORG_SYS_OF_BATCH = "
* MATERIAL_EVG = "
* MATERIAL_LONG = "
TABLES
* RECIPIENTS = "
* RETURN = "
* APPLICATION_OBJECTS = "
IMPORTING Parameters details for /ISDFPS/BAPI_BATCH_REPLICATE
MATERIAL -
Data type: BAPIBATCHKEY-MATERIALOptional: Yes
Call by Reference: No ( called with pass by value option)
BATCH -
Data type: BAPIBATCHKEY-BATCHOptional: No
Call by Reference: No ( called with pass by value option)
PLANT -
Data type: BAPIBATCHKEY-PLANTOptional: Yes
Call by Reference: No ( called with pass by value option)
ORG_SYS_OF_BATCH -
Data type: BAPIBATCHCTRL-ORG_SYS_OF_BATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_EVG -
Data type: BAPIMGVMATNROptional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_LONG -
Data type: BAPIBATCHKEY-MATERIAL_LONGOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /ISDFPS/BAPI_BATCH_REPLICATE
RECIPIENTS -
Data type: BAPI_RECEIVEROptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
APPLICATION_OBJECTS -
Data type: SWOTOBJIDOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for /ISDFPS/BAPI_BATCH_REPLICATE 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_material | TYPE BAPIBATCHKEY-MATERIAL, " | |||
| lt_recipients | TYPE STANDARD TABLE OF BAPI_RECEIVER, " | |||
| lv_batch | TYPE BAPIBATCHKEY-BATCH, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_plant | TYPE BAPIBATCHKEY-PLANT, " | |||
| lt_application_objects | TYPE STANDARD TABLE OF SWOTOBJID, " | |||
| lv_org_sys_of_batch | TYPE BAPIBATCHCTRL-ORG_SYS_OF_BATCH, " | |||
| lv_material_evg | TYPE BAPIMGVMATNR, " | |||
| lv_material_long | TYPE BAPIBATCHKEY-MATERIAL_LONG. " |
|   CALL FUNCTION '/ISDFPS/BAPI_BATCH_REPLICATE' " |
| EXPORTING | ||
| MATERIAL | = lv_material | |
| BATCH | = lv_batch | |
| PLANT | = lv_plant | |
| ORG_SYS_OF_BATCH | = lv_org_sys_of_batch | |
| MATERIAL_EVG | = lv_material_evg | |
| MATERIAL_LONG | = lv_material_long | |
| TABLES | ||
| RECIPIENTS | = lt_recipients | |
| RETURN | = lt_return | |
| APPLICATION_OBJECTS | = lt_application_objects | |
| . " /ISDFPS/BAPI_BATCH_REPLICATE | ||
ABAP code using 7.40 inline data declarations to call FM /ISDFPS/BAPI_BATCH_REPLICATE
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 MATERIAL FROM BAPIBATCHKEY INTO @DATA(ld_material). | ||||
| "SELECT single BATCH FROM BAPIBATCHKEY INTO @DATA(ld_batch). | ||||
| "SELECT single PLANT FROM BAPIBATCHKEY INTO @DATA(ld_plant). | ||||
| "SELECT single ORG_SYS_OF_BATCH FROM BAPIBATCHCTRL INTO @DATA(ld_org_sys_of_batch). | ||||
| "SELECT single MATERIAL_LONG FROM BAPIBATCHKEY INTO @DATA(ld_material_long). | ||||
Search for further information about these or an SAP related objects