SAP BAPI_ORGMASTER_SAVE_REPL_MULT Function Module for BAPI for Replication of HR Organizational Data
BAPI_ORGMASTER_SAVE_REPL_MULT is a standard bapi orgmaster save repl mult 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 for Replication of HR Organizational 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 orgmaster save repl mult FM, simply by entering the name BAPI_ORGMASTER_SAVE_REPL_MULT into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHALMULT1
Program Name: SAPLRHALMULT1
Main Program:
Appliation area: H
Release date: 12-May-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_ORGMASTER_SAVE_REPL_MULT 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_ORGMASTER_SAVE_REPL_MULT'"BAPI for Replication of HR Organizational Data.
TABLES
HR_OBJECT_HEADER = "HR Object Header Data
* PD_OBJECT_ADDRESS = "PD Object: Address
* PD_OBJECT_MAIL_ADDRESS = "PD Object: Mail Address
* RETURN = "Return Parameter
* HR_INFOTYPE_HEADER = "Infotype Header Data
* PD_OBJECT = "PD Object
* PD_OBJECT_RELATIONSHIPS = "PD Object: Relationships
* PD_REL_SPECIFIED_SUBSTITUTE = "Relationships 'Specified Substitution'
* PD_REL_MESSAGE_TYPE = "Relationships to Message Type
* PD_OBJECT_DESCRIPTION = "PD Object: Description
* PD_OBJECT_STANDARD_PROFILES = "PD Object: Standard Profiles
* PD_OBJECT_PD_PROFILES = "PD Object: PD Profiles
TABLES Parameters details for BAPI_ORGMASTER_SAVE_REPL_MULT
HR_OBJECT_HEADER - HR Object Header Data
Data type: BAPIHROBJOptional: No
Call by Reference: No ( called with pass by value option)
PD_OBJECT_ADDRESS - PD Object: Address
Data type: BAPIHR1028Optional: Yes
Call by Reference: No ( called with pass by value option)
PD_OBJECT_MAIL_ADDRESS - PD Object: Mail Address
Data type: BAPIHR1032Optional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
HR_INFOTYPE_HEADER - Infotype Header Data
Data type: BAPIHRINFOptional: Yes
Call by Reference: No ( called with pass by value option)
PD_OBJECT - PD Object
Data type: BAPIHR1000Optional: Yes
Call by Reference: No ( called with pass by value option)
PD_OBJECT_RELATIONSHIPS - PD Object: Relationships
Data type: BAPIHR1001Optional: Yes
Call by Reference: No ( called with pass by value option)
PD_REL_SPECIFIED_SUBSTITUTE - Relationships 'Specified Substitution'
Data type: BAPIHRADD2Optional: Yes
Call by Reference: No ( called with pass by value option)
PD_REL_MESSAGE_TYPE - Relationships to Message Type
Data type: BAPIHRADXNOptional: Yes
Call by Reference: No ( called with pass by value option)
PD_OBJECT_DESCRIPTION - PD Object: Description
Data type: BAPIHR1002Optional: Yes
Call by Reference: No ( called with pass by value option)
PD_OBJECT_STANDARD_PROFILES - PD Object: Standard Profiles
Data type: BAPIHR1016Optional: Yes
Call by Reference: No ( called with pass by value option)
PD_OBJECT_PD_PROFILES - PD Object: PD Profiles
Data type: BAPIHR1017Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_ORGMASTER_SAVE_REPL_MULT 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_hr_object_header | TYPE STANDARD TABLE OF BAPIHROBJ, " | |||
| lt_pd_object_address | TYPE STANDARD TABLE OF BAPIHR1028, " | |||
| lt_pd_object_mail_address | TYPE STANDARD TABLE OF BAPIHR1032, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_hr_infotype_header | TYPE STANDARD TABLE OF BAPIHRINF, " | |||
| lt_pd_object | TYPE STANDARD TABLE OF BAPIHR1000, " | |||
| lt_pd_object_relationships | TYPE STANDARD TABLE OF BAPIHR1001, " | |||
| lt_pd_rel_specified_substitute | TYPE STANDARD TABLE OF BAPIHRADD2, " | |||
| lt_pd_rel_message_type | TYPE STANDARD TABLE OF BAPIHRADXN, " | |||
| lt_pd_object_description | TYPE STANDARD TABLE OF BAPIHR1002, " | |||
| lt_pd_object_standard_profiles | TYPE STANDARD TABLE OF BAPIHR1016, " | |||
| lt_pd_object_pd_profiles | TYPE STANDARD TABLE OF BAPIHR1017. " |
|   CALL FUNCTION 'BAPI_ORGMASTER_SAVE_REPL_MULT' "BAPI for Replication of HR Organizational Data |
| TABLES | ||
| HR_OBJECT_HEADER | = lt_hr_object_header | |
| PD_OBJECT_ADDRESS | = lt_pd_object_address | |
| PD_OBJECT_MAIL_ADDRESS | = lt_pd_object_mail_address | |
| RETURN | = lt_return | |
| HR_INFOTYPE_HEADER | = lt_hr_infotype_header | |
| PD_OBJECT | = lt_pd_object | |
| PD_OBJECT_RELATIONSHIPS | = lt_pd_object_relationships | |
| PD_REL_SPECIFIED_SUBSTITUTE | = lt_pd_rel_specified_substitute | |
| PD_REL_MESSAGE_TYPE | = lt_pd_rel_message_type | |
| PD_OBJECT_DESCRIPTION | = lt_pd_object_description | |
| PD_OBJECT_STANDARD_PROFILES | = lt_pd_object_standard_profiles | |
| PD_OBJECT_PD_PROFILES | = lt_pd_object_pd_profiles | |
| . " BAPI_ORGMASTER_SAVE_REPL_MULT | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_ORGMASTER_SAVE_REPL_MULT
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.Search for further information about these or an SAP related objects