SAP /SAPAPO/DM_SETUP_MATRIX_COPY Function Module for Copy Setup Matrix in Other Clients









/SAPAPO/DM_SETUP_MATRIX_COPY is a standard /sapapo/dm setup matrix 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 Setup Matrix in 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 matrix copy FM, simply by entering the name /SAPAPO/DM_SETUP_MATRIX_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_MATRIX_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_MATRIX_COPY'"Copy Setup Matrix in Other Clients
EXPORTING
* I_SYNCHRON = "allgemeines flag

TABLES
I_SETUP_MATNAME_TAB = "Vorläufige Struktur zur Übertragung von Rüstmatrizen
* I_SETUP_MATNAME_TXT_TAB = "Vorläufige Struktur zur Übertragung von Rüstmatrixtexten
I_SETUP_MATRIX_TAB = "Vorläufige Struktur zur Übertragung von Rüstmatrixeinträgen
* I_SETUP_MATRIX_DEL_TAB = "Vorläufige Struktur zur Übertragung von Rüstmatrixeinträgen
* ET_SETUP_MATNAME_LOCKED = "Vorläufige Struktur zur Übertragung von Rüstmatrizen
* ET_SETUP_MATNAME_NO_AUTH = "Vorläufige Struktur zur Übertragung von Rüstmatrizen

EXCEPTIONS
LOCK_FAILED = 1 AUTHORIZATION_FAILED = 2 NOT_QUALIFIED = 3 LOCATION_NOT_FOUND = 4
.



IMPORTING Parameters details for /SAPAPO/DM_SETUP_MATRIX_COPY

I_SYNCHRON - allgemeines flag

Data type: FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for /SAPAPO/DM_SETUP_MATRIX_COPY

I_SETUP_MATNAME_TAB - Vorläufige Struktur zur Übertragung von Rüstmatrizen

Data type: /SAPAPO/CDPS_BAPI_SET_MID
Optional: No
Call by Reference: Yes

I_SETUP_MATNAME_TXT_TAB - Vorläufige Struktur zur Übertragung von Rüstmatrixtexten

Data type: /SAPAPO/CDPS_BAPI_SET_MIDT
Optional: Yes
Call by Reference: Yes

I_SETUP_MATRIX_TAB - Vorläufige Struktur zur Übertragung von Rüstmatrixeinträgen

Data type: /SAPAPO/CDPS_BAPI_SET_MAT
Optional: No
Call by Reference: Yes

I_SETUP_MATRIX_DEL_TAB - Vorläufige Struktur zur Übertragung von Rüstmatrixeinträgen

Data type: /SAPAPO/CDPS_BAPI_SET_MAT
Optional: Yes
Call by Reference: Yes

ET_SETUP_MATNAME_LOCKED - Vorläufige Struktur zur Übertragung von Rüstmatrizen

Data type: /SAPAPO/CDPS_BAPI_SET_MID
Optional: Yes
Call by Reference: Yes

ET_SETUP_MATNAME_NO_AUTH - Vorläufige Struktur zur Übertragung von Rüstmatrizen

Data type: /SAPAPO/CDPS_BAPI_SET_MID
Optional: 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_MATRIX_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_i_synchron  TYPE FLAG, "   
lv_lock_failed  TYPE FLAG, "   
lt_i_setup_matname_tab  TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_MID, "   
lv_authorization_failed  TYPE /SAPAPO/CDPS_BAPI_SET_MID, "   
lt_i_setup_matname_txt_tab  TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_MIDT, "   
lv_not_qualified  TYPE /SAPAPO/CDPS_BAPI_SET_MIDT, "   
lt_i_setup_matrix_tab  TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_MAT, "   
lv_location_not_found  TYPE /SAPAPO/CDPS_BAPI_SET_MAT, "   
lt_i_setup_matrix_del_tab  TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_MAT, "   
lt_et_setup_matname_locked  TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_MID, "   
lt_et_setup_matname_no_auth  TYPE STANDARD TABLE OF /SAPAPO/CDPS_BAPI_SET_MID. "   

  CALL FUNCTION '/SAPAPO/DM_SETUP_MATRIX_COPY'  "Copy Setup Matrix in Other Clients
    EXPORTING
         I_SYNCHRON = lv_i_synchron
    TABLES
         I_SETUP_MATNAME_TAB = lt_i_setup_matname_tab
         I_SETUP_MATNAME_TXT_TAB = lt_i_setup_matname_txt_tab
         I_SETUP_MATRIX_TAB = lt_i_setup_matrix_tab
         I_SETUP_MATRIX_DEL_TAB = lt_i_setup_matrix_del_tab
         ET_SETUP_MATNAME_LOCKED = lt_et_setup_matname_locked
         ET_SETUP_MATNAME_NO_AUTH = lt_et_setup_matname_no_auth
    EXCEPTIONS
        LOCK_FAILED = 1
        AUTHORIZATION_FAILED = 2
        NOT_QUALIFIED = 3
        LOCATION_NOT_FOUND = 4
. " /SAPAPO/DM_SETUP_MATRIX_COPY




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_SETUP_MATRIX_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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!