SAP /SAPAPO/DM_SETUP_GROUP_COPY Function Module for Copy the Setup Group to Other Clients
/SAPAPO/DM_SETUP_GROUP_COPY is a standard /sapapo/dm setup group copy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Copy the Setup Group to Other Clients 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 /sapapo/dm setup group copy FM, simply by entering the name /SAPAPO/DM_SETUP_GROUP_COPY into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_SETUP_MATRIX
Program Name: /SAPAPO/SAPLDM_SETUP_MATRIX
Main Program: /SAPAPO/SAPLDM_SETUP_MATRIX
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /SAPAPO/DM_SETUP_GROUP_COPY 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 '/SAPAPO/DM_SETUP_GROUP_COPY'"Copy the Setup Group to Other Clients.
TABLES
I_SETUP_GROUP_TAB = "Vorläufige Struktur zur Übertragung von Rüstgruppen
I_SETUP_GROUP_TXT_TAB = "Vorläufige Struktur zur Übertragung von Rüstgruppentexten
* I_SETUP_ITEM_TAB = "Vorläufige Struktur zur Übertragung von Rüstschlüsseln
* I_SETUP_ITEM_TXT_TAB = "Vorläufige Struktur zur Übertragung von Rüstschlüsseltexten
* ET_SETUP_GROUP_LOCKED = "Vorläufige Struktur zur Übertragung von Rüstgruppen
* ET_SETUP_GROUP_NO_AUTH = "Vorläufige Struktur zur Übertragung von Rüstgruppen
EXCEPTIONS
LOCK_FAILED = 1 AUTHORIZATION_FAILED = 2 NOT_QUALIFIED = 3 LOCATION_NOT_FOUND = 4
TABLES Parameters details for /SAPAPO/DM_SETUP_GROUP_COPY
I_SETUP_GROUP_TAB - Vorläufige Struktur zur Übertragung von Rüstgruppen
Data type: /SAPAPO/CDPS_BAPI_SET_GRPOptional: No
Call by Reference: Yes
I_SETUP_GROUP_TXT_TAB - Vorläufige Struktur zur Übertragung von Rüstgruppentexten
Data type: /SAPAPO/CDPS_BAPI_SET_GRPTOptional: No
Call by Reference: Yes
I_SETUP_ITEM_TAB - Vorläufige Struktur zur Übertragung von Rüstschlüsseln
Data type: /SAPAPO/CDPS_BAPI_SET_ITMOptional: Yes
Call by Reference: Yes
I_SETUP_ITEM_TXT_TAB - Vorläufige Struktur zur Übertragung von Rüstschlüsseltexten
Data type: /SAPAPO/CDPS_BAPI_SET_ITMTOptional: Yes
Call by Reference: Yes
ET_SETUP_GROUP_LOCKED - Vorläufige Struktur zur Übertragung von Rüstgruppen
Data type: /SAPAPO/CDPS_BAPI_SET_GRPOptional: Yes
Call by Reference: Yes
ET_SETUP_GROUP_NO_AUTH - Vorläufige Struktur zur Übertragung von Rüstgruppen
Data type: /SAPAPO/CDPS_BAPI_SET_GRPOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
LOCK_FAILED - Sperren schlug fehl
Data type:Optional: No
Call by Reference: Yes
AUTHORIZATION_FAILED - Keine Berechtigung
Data type:Optional: No
Call by Reference: Yes
NOT_QUALIFIED - Fehlerhafte Eingabedaten
Data type:Optional: No
Call by Reference: Yes
LOCATION_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_SETUP_GROUP_COPY 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_lock_failed | TYPE STRING, " | |||
| lt_i_setup_group_tab | TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_GRP, " | |||
| lv_authorization_failed | TYPE /SAPAPO/CDPS_BAPI_SET_GRP, " | |||
| lt_i_setup_group_txt_tab | TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_GRPT, " | |||
| lv_not_qualified | TYPE /SAPAPO/CDPS_BAPI_SET_GRPT, " | |||
| lt_i_setup_item_tab | TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_ITM, " | |||
| lv_location_not_found | TYPE /SAPAPO/CDPS_BAPI_SET_ITM, " | |||
| lt_i_setup_item_txt_tab | TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_ITMT, " | |||
| lt_et_setup_group_locked | TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_GRP, " | |||
| lt_et_setup_group_no_auth | TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_GRP. " |
|   CALL FUNCTION '/SAPAPO/DM_SETUP_GROUP_COPY' "Copy the Setup Group to Other Clients |
| TABLES | ||
| I_SETUP_GROUP_TAB | = lt_i_setup_group_tab | |
| I_SETUP_GROUP_TXT_TAB | = lt_i_setup_group_txt_tab | |
| I_SETUP_ITEM_TAB | = lt_i_setup_item_tab | |
| I_SETUP_ITEM_TXT_TAB | = lt_i_setup_item_txt_tab | |
| ET_SETUP_GROUP_LOCKED | = lt_et_setup_group_locked | |
| ET_SETUP_GROUP_NO_AUTH | = lt_et_setup_group_no_auth | |
| EXCEPTIONS | ||
| LOCK_FAILED = 1 | ||
| AUTHORIZATION_FAILED = 2 | ||
| NOT_QUALIFIED = 3 | ||
| LOCATION_NOT_FOUND = 4 | ||
| . " /SAPAPO/DM_SETUP_GROUP_COPY | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_SETUP_GROUP_COPY
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