SAP BAPI_BUS1077_REPLICATE Function Module for EHS: Request to Replicate Specification Data
BAPI_BUS1077_REPLICATE is a standard bapi bus1077 replicate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EHS: Request to Replicate Specification Data 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 bus1077 replicate FM, simply by entering the name BAPI_BUS1077_REPLICATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1077
Program Name: SAPL1077
Main Program: SAPL1077
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function BAPI_BUS1077_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 'BAPI_BUS1077_REPLICATE'"EHS: Request to Replicate Specification Data.
EXPORTING
* KEY_DATE = SY-DATUM "Selection date
* SUBSTANCE = "Specification key for specification selection
* SUBLIST = "Specification list for specification selection
* IDENTIFIER_TYPE = "Identifier category for specification selection
* IDENTIFIER_CATEGORY = "Identifier type for specification selection
* IDENTIFIER = "Identifier for specification selection
* MATERIAL = "Material for specification selection
* MATERIAL_EVG = "Long Material Number
TABLES
* SUBSTANCELIST = "List of specifications to be distributed
* SAVEREPLICARECIPIENTS = "Recipient of specification data (logical systems)
RETURN = "Messages from processing
IMPORTING Parameters details for BAPI_BUS1077_REPLICATE
KEY_DATE - Selection date
Data type: RCGADDINF-VALDATDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUBSTANCE - Specification key for specification selection
Data type: BAPI1077RH-SUBSTANCEOptional: Yes
Call by Reference: No ( called with pass by value option)
SUBLIST - Specification list for specification selection
Data type: BAPI1077RL-SUBLISTOptional: Yes
Call by Reference: No ( called with pass by value option)
IDENTIFIER_TYPE - Identifier category for specification selection
Data type: BAPI1077RI-ID_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IDENTIFIER_CATEGORY - Identifier type for specification selection
Data type: BAPI1077RI-ID_CATEGRYOptional: Yes
Call by Reference: No ( called with pass by value option)
IDENTIFIER - Identifier for specification selection
Data type: BAPI1077RI-IDENTIFIEROptional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL - Material for specification selection
Data type: BAPI1077MJ-MATERIALOptional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_EVG - Long Material Number
Data type: BAPIMGVMATNROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_BUS1077_REPLICATE
SUBSTANCELIST - List of specifications to be distributed
Data type: BAPISUB_01Optional: Yes
Call by Reference: Yes
SAVEREPLICARECIPIENTS - Recipient of specification data (logical systems)
Data type: BDI_LOGSYSOptional: Yes
Call by Reference: Yes
RETURN - Messages from processing
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_BUS1077_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_key_date | TYPE RCGADDINF-VALDAT, " SY-DATUM | |||
lt_substancelist | TYPE STANDARD TABLE OF BAPISUB_01, " | |||
lv_substance | TYPE BAPI1077RH-SUBSTANCE, " | |||
lt_savereplicarecipients | TYPE STANDARD TABLE OF BDI_LOGSYS, " | |||
lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
lv_sublist | TYPE BAPI1077RL-SUBLIST, " | |||
lv_identifier_type | TYPE BAPI1077RI-ID_TYPE, " | |||
lv_identifier_category | TYPE BAPI1077RI-ID_CATEGRY, " | |||
lv_identifier | TYPE BAPI1077RI-IDENTIFIER, " | |||
lv_material | TYPE BAPI1077MJ-MATERIAL, " | |||
lv_material_evg | TYPE BAPIMGVMATNR. " |
  CALL FUNCTION 'BAPI_BUS1077_REPLICATE' "EHS: Request to Replicate Specification Data |
EXPORTING | ||
KEY_DATE | = lv_key_date | |
SUBSTANCE | = lv_substance | |
SUBLIST | = lv_sublist | |
IDENTIFIER_TYPE | = lv_identifier_type | |
IDENTIFIER_CATEGORY | = lv_identifier_category | |
IDENTIFIER | = lv_identifier | |
MATERIAL | = lv_material | |
MATERIAL_EVG | = lv_material_evg | |
TABLES | ||
SUBSTANCELIST | = lt_substancelist | |
SAVEREPLICARECIPIENTS | = lt_savereplicarecipients | |
RETURN | = lt_return | |
. " BAPI_BUS1077_REPLICATE |
ABAP code using 7.40 inline data declarations to call FM BAPI_BUS1077_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 VALDAT FROM RCGADDINF INTO @DATA(ld_key_date). | ||||
DATA(ld_key_date) | = SY-DATUM. | |||
"SELECT single SUBSTANCE FROM BAPI1077RH INTO @DATA(ld_substance). | ||||
"SELECT single SUBLIST FROM BAPI1077RL INTO @DATA(ld_sublist). | ||||
"SELECT single ID_TYPE FROM BAPI1077RI INTO @DATA(ld_identifier_type). | ||||
"SELECT single ID_CATEGRY FROM BAPI1077RI INTO @DATA(ld_identifier_category). | ||||
"SELECT single IDENTIFIER FROM BAPI1077RI INTO @DATA(ld_identifier). | ||||
"SELECT single MATERIAL FROM BAPI1077MJ INTO @DATA(ld_material). | ||||
Search for further information about these or an SAP related objects