SAP BAPI_1179_SAVEREPLICA Function Module for Maintain or Create Process Structure
BAPI_1179_SAVEREPLICA is a standard bapi 1179 savereplica SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain or Create Process Structure 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 1179 savereplica FM, simply by entering the name BAPI_1179_SAVEREPLICA into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPPEBAPI_ACT
Program Name: SAPLIPPEBAPI_ACT
Main Program: SAPLIPPEBAPI_ACT
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_1179_SAVEREPLICA 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_1179_SAVEREPLICA'"Maintain or Create Process Structure.
TABLES
* ACTIVITYNODEDATA = "iPPE/BAPI: Attributes of the Activity Node
* ACTIVITYALTLONGTEXT = "iPPE / BAPI: Mode Long Text
* REPORTINGPOINT = "iPPE/BAPI: Reporting Point
* ACTIVITYRELATION = "iPPE/BAPI: Activities Relationship
* ACTIVITYRELATIONCONSTRAINT = "
* FACTORYLAYOUTRELATION = "iPPE/BAPI: Factory Layout Relationships
* EXTENSION = "Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
* RETURN = "Return Parameters
* ACTIVITYNODETEXT = "iPPE/BAPI: Text for the Activity Node
* ACTIVITYNODELONGTEXTHEADER = "iPPE/BAPI: Header Long Text for Node
* ACTIVITYNODELONGTEXT = "iPPE/BAPI: Long Text for Node
* SUPPLYAREAASSIGNMENT = "iPPE / BAPI: Assignment of Supply Area
* ACTIVITYALTDATA = "iPPE/BAPI: Activity Alternative
* ACTIVITYALTCAPA = "iPPE/BAPI: Alternatives for Activity/Capacity Requirement
* ACTIVITYALTTEXT = "iPPE/BAPI: Alternative Text for the Activity
* ACTIVITYALTLONGTEXTHEADER = "iPPE / BAPI: Mode Header Long Text
TABLES Parameters details for BAPI_1179_SAVEREPLICA
ACTIVITYNODEDATA - iPPE/BAPI: Attributes of the Activity Node
Data type: BAPI1179_ACT_NODEDATAOptional: Yes
Call by Reference: Yes
ACTIVITYALTLONGTEXT - iPPE / BAPI: Mode Long Text
Data type: BAPI_PPE_ALT_LONGTEXTOptional: Yes
Call by Reference: Yes
REPORTINGPOINT - iPPE/BAPI: Reporting Point
Data type: BAPI1182_FLO_REPPOINTOptional: Yes
Call by Reference: Yes
ACTIVITYRELATION - iPPE/BAPI: Activities Relationship
Data type: BAPI1179_ACT_RELATIONOptional: Yes
Call by Reference: Yes
ACTIVITYRELATIONCONSTRAINT -
Data type: BAPI1179_ACT_CONSTRAINTOptional: Yes
Call by Reference: Yes
FACTORYLAYOUTRELATION - iPPE/BAPI: Factory Layout Relationships
Data type: BAPI1182_FLO_RELATIONOptional: Yes
Call by Reference: Yes
EXTENSION - Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
ACTIVITYNODETEXT - iPPE/BAPI: Text for the Activity Node
Data type: BAPI1179_ACT_NODETEXTOptional: Yes
Call by Reference: Yes
ACTIVITYNODELONGTEXTHEADER - iPPE/BAPI: Header Long Text for Node
Data type: BAPI_PPE_NODE_LONGTEXT_HDOptional: Yes
Call by Reference: Yes
ACTIVITYNODELONGTEXT - iPPE/BAPI: Long Text for Node
Data type: BAPI_PPE_NODE_LONGTEXTOptional: Yes
Call by Reference: Yes
SUPPLYAREAASSIGNMENT - iPPE / BAPI: Assignment of Supply Area
Data type: BAPI1179_ACT_SUPPLYAREAOptional: Yes
Call by Reference: Yes
ACTIVITYALTDATA - iPPE/BAPI: Activity Alternative
Data type: BAPI1179_ACT_ALTDATAOptional: Yes
Call by Reference: Yes
ACTIVITYALTCAPA - iPPE/BAPI: Alternatives for Activity/Capacity Requirement
Data type: BAPI1179_ACT_ALTCAPAOptional: Yes
Call by Reference: Yes
ACTIVITYALTTEXT - iPPE/BAPI: Alternative Text for the Activity
Data type: BAPI1179_ACT_ALTTEXTOptional: Yes
Call by Reference: Yes
ACTIVITYALTLONGTEXTHEADER - iPPE / BAPI: Mode Header Long Text
Data type: BAPI_PPE_ALT_LONGTEXT_HDOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_1179_SAVEREPLICA 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_activitynodedata | TYPE STANDARD TABLE OF BAPI1179_ACT_NODEDATA, " | |||
| lt_activityaltlongtext | TYPE STANDARD TABLE OF BAPI_PPE_ALT_LONGTEXT, " | |||
| lt_reportingpoint | TYPE STANDARD TABLE OF BAPI1182_FLO_REPPOINT, " | |||
| lt_activityrelation | TYPE STANDARD TABLE OF BAPI1179_ACT_RELATION, " | |||
| lt_activityrelationconstraint | TYPE STANDARD TABLE OF BAPI1179_ACT_CONSTRAINT, " | |||
| lt_factorylayoutrelation | TYPE STANDARD TABLE OF BAPI1182_FLO_RELATION, " | |||
| lt_extension | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_activitynodetext | TYPE STANDARD TABLE OF BAPI1179_ACT_NODETEXT, " | |||
| lt_activitynodelongtextheader | TYPE STANDARD TABLE OF BAPI_PPE_NODE_LONGTEXT_HD, " | |||
| lt_activitynodelongtext | TYPE STANDARD TABLE OF BAPI_PPE_NODE_LONGTEXT, " | |||
| lt_supplyareaassignment | TYPE STANDARD TABLE OF BAPI1179_ACT_SUPPLYAREA, " | |||
| lt_activityaltdata | TYPE STANDARD TABLE OF BAPI1179_ACT_ALTDATA, " | |||
| lt_activityaltcapa | TYPE STANDARD TABLE OF BAPI1179_ACT_ALTCAPA, " | |||
| lt_activityalttext | TYPE STANDARD TABLE OF BAPI1179_ACT_ALTTEXT, " | |||
| lt_activityaltlongtextheader | TYPE STANDARD TABLE OF BAPI_PPE_ALT_LONGTEXT_HD. " |
|   CALL FUNCTION 'BAPI_1179_SAVEREPLICA' "Maintain or Create Process Structure |
| TABLES | ||
| ACTIVITYNODEDATA | = lt_activitynodedata | |
| ACTIVITYALTLONGTEXT | = lt_activityaltlongtext | |
| REPORTINGPOINT | = lt_reportingpoint | |
| ACTIVITYRELATION | = lt_activityrelation | |
| ACTIVITYRELATIONCONSTRAINT | = lt_activityrelationconstraint | |
| FACTORYLAYOUTRELATION | = lt_factorylayoutrelation | |
| EXTENSION | = lt_extension | |
| RETURN | = lt_return | |
| ACTIVITYNODETEXT | = lt_activitynodetext | |
| ACTIVITYNODELONGTEXTHEADER | = lt_activitynodelongtextheader | |
| ACTIVITYNODELONGTEXT | = lt_activitynodelongtext | |
| SUPPLYAREAASSIGNMENT | = lt_supplyareaassignment | |
| ACTIVITYALTDATA | = lt_activityaltdata | |
| ACTIVITYALTCAPA | = lt_activityaltcapa | |
| ACTIVITYALTTEXT | = lt_activityalttext | |
| ACTIVITYALTLONGTEXTHEADER | = lt_activityaltlongtextheader | |
| . " BAPI_1179_SAVEREPLICA | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_1179_SAVEREPLICA
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