SAP /SAPAPO/DM_MATRIX_READ Function Module for Read Setup Matrix Entry
/SAPAPO/DM_MATRIX_READ is a standard /sapapo/dm matrix read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Setup Matrix Entry 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 matrix read FM, simply by entering the name /SAPAPO/DM_MATRIX_READ 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): Normal Function Module
Update:

Function /SAPAPO/DM_MATRIX_READ 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_MATRIX_READ'"Read Setup Matrix Entry.
EXPORTING
I_MATRIX_ID = "Matrixidentifikation
* I_SETUP_GROUP_ID_FROM = "VorgängerRüstID
* I_SETUP_ITEM_ID_FROM = "VorgängerRüstID
* I_SETUP_GROUP_ID_TO = "NachfolgeRüstID
* I_SETUP_ITEM_ID_TO = "NachfolgeRüstID
* I_DUMMIES_EXPLODE = 'X' "Feld zum Ankreuzen
IMPORTING
E_SETUP_MATRIX = "Customizing: Tabelle der Matrixeinträge
TABLES
* E_SETUP_MATRIX_TAB = "Tabelle der Matrixeinträge
EXCEPTIONS
MATRIX_NOT_FOUND = 1 ENTRY_NOT_FOUND = 2 NOT_QUALIFIED = 3
IMPORTING Parameters details for /SAPAPO/DM_MATRIX_READ
I_MATRIX_ID - Matrixidentifikation
Data type: /SAPAPO/CDPS_MATRIX_IDOptional: No
Call by Reference: Yes
I_SETUP_GROUP_ID_FROM - VorgängerRüstID
Data type: /SAPAPO/CDPS_SETUP_ID_FROMOptional: Yes
Call by Reference: Yes
I_SETUP_ITEM_ID_FROM - VorgängerRüstID
Data type: /SAPAPO/CDPS_SETUP_ID_FROMOptional: Yes
Call by Reference: Yes
I_SETUP_GROUP_ID_TO - NachfolgeRüstID
Data type: /SAPAPO/CDPS_SETUP_ID_TOOptional: Yes
Call by Reference: Yes
I_SETUP_ITEM_ID_TO - NachfolgeRüstID
Data type: /SAPAPO/CDPS_SETUP_ID_TOOptional: Yes
Call by Reference: Yes
I_DUMMIES_EXPLODE - Feld zum Ankreuzen
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SAPAPO/DM_MATRIX_READ
E_SETUP_MATRIX - Customizing: Tabelle der Matrixeinträge
Data type: /SAPAPO/SET_MATOptional: No
Call by Reference: Yes
TABLES Parameters details for /SAPAPO/DM_MATRIX_READ
E_SETUP_MATRIX_TAB - Tabelle der Matrixeinträge
Data type: /SAPAPO/SET_MATOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
MATRIX_NOT_FOUND - Keine Matrix gefunden
Data type:Optional: No
Call by Reference: Yes
ENTRY_NOT_FOUND - Keinen Eintrag gefunden
Data type:Optional: No
Call by Reference: Yes
NOT_QUALIFIED - Input inkorrekt
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_MATRIX_READ 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_matrix_id | TYPE /SAPAPO/CDPS_MATRIX_ID, " | |||
| lv_e_setup_matrix | TYPE /SAPAPO/SET_MAT, " | |||
| lv_matrix_not_found | TYPE /SAPAPO/SET_MAT, " | |||
| lt_e_setup_matrix_tab | TYPE STANDARD TABLE OF /SAPAPO/SET_MAT, " | |||
| lv_entry_not_found | TYPE /SAPAPO/SET_MAT, " | |||
| lv_i_setup_group_id_from | TYPE /SAPAPO/CDPS_SETUP_ID_FROM, " | |||
| lv_not_qualified | TYPE /SAPAPO/CDPS_SETUP_ID_FROM, " | |||
| lv_i_setup_item_id_from | TYPE /SAPAPO/CDPS_SETUP_ID_FROM, " | |||
| lv_i_setup_group_id_to | TYPE /SAPAPO/CDPS_SETUP_ID_TO, " | |||
| lv_i_setup_item_id_to | TYPE /SAPAPO/CDPS_SETUP_ID_TO, " | |||
| lv_i_dummies_explode | TYPE XFELD. " 'X' |
|   CALL FUNCTION '/SAPAPO/DM_MATRIX_READ' "Read Setup Matrix Entry |
| EXPORTING | ||
| I_MATRIX_ID | = lv_i_matrix_id | |
| I_SETUP_GROUP_ID_FROM | = lv_i_setup_group_id_from | |
| I_SETUP_ITEM_ID_FROM | = lv_i_setup_item_id_from | |
| I_SETUP_GROUP_ID_TO | = lv_i_setup_group_id_to | |
| I_SETUP_ITEM_ID_TO | = lv_i_setup_item_id_to | |
| I_DUMMIES_EXPLODE | = lv_i_dummies_explode | |
| IMPORTING | ||
| E_SETUP_MATRIX | = lv_e_setup_matrix | |
| TABLES | ||
| E_SETUP_MATRIX_TAB | = lt_e_setup_matrix_tab | |
| EXCEPTIONS | ||
| MATRIX_NOT_FOUND = 1 | ||
| ENTRY_NOT_FOUND = 2 | ||
| NOT_QUALIFIED = 3 | ||
| . " /SAPAPO/DM_MATRIX_READ | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_MATRIX_READ
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.| DATA(ld_i_dummies_explode) | = 'X'. | |||
Search for further information about these or an SAP related objects