SAP /SAPAPO/DM_PROFILES_GET Function Module for Read Profiles for MATLOC and/or MATLSIM Entries
/SAPAPO/DM_PROFILES_GET is a standard /sapapo/dm profiles get 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 Profiles for MATLOC and/or MATLSIM Entries 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 profiles get FM, simply by entering the name /SAPAPO/DM_PROFILES_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DMMAT_PROFILES
Program Name: /SAPAPO/SAPLDMMAT_PROFILES
Main Program: /SAPAPO/SAPLDMMAT_PROFILES
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/DM_PROFILES_GET 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_PROFILES_GET'"Read Profiles for MATLOC and/or MATLSIM Entries.
EXPORTING
* IV_MATLOTSZ = 'X' "Feld zum Ankreuzen
* IV_SNP01 = 'X' "Feld zum Ankreuzen
* IV_SNP02 = 'X' "Feld zum Ankreuzen
* IV_SNP11 = 'X' "Feld zum Ankreuzen
* IV_MATRQ = 'X' "Feld zum Ankreuzen
* IV_HEUPR = 'X' "Feld zum Ankreuzen
* IV_DO_BUFFER = "Feld zum Ankreuzen
TABLES
* I_MATLSIM_TAB = "Lokationsprodukt mit PlanVersion
* I_MATLOC_TAB = "Lokationsprodukt
* E_LOTSZ_TAB = "Losgrößenprofil für Materialstamm
* E_SNP01_TAB = "SNP: Bedarfsprofil
* E_SNP02_TAB = "SNP: Angebotsprofil
* E_SNP11_TAB = "SNP: Deploymentprofil
* E_MATRQ_TAB = "Bedarfsprofil im Materialstamm
* I_MATLSIM_KEY_TAB = "Structure for ID fields in MATLSIM
EXCEPTIONS
NOT_QUALIFIED = 1
IMPORTING Parameters details for /SAPAPO/DM_PROFILES_GET
IV_MATLOTSZ - Feld zum Ankreuzen
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SNP01 - Feld zum Ankreuzen
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SNP02 - Feld zum Ankreuzen
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SNP11 - Feld zum Ankreuzen
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_MATRQ - Feld zum Ankreuzen
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_HEUPR - Feld zum Ankreuzen
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_DO_BUFFER - Feld zum Ankreuzen
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /SAPAPO/DM_PROFILES_GET
I_MATLSIM_TAB - Lokationsprodukt mit PlanVersion
Data type: /SAPAPO/MATLSIM_STROptional: Yes
Call by Reference: Yes
I_MATLOC_TAB - Lokationsprodukt
Data type: /SAPAPO/MATLOCOptional: Yes
Call by Reference: Yes
E_LOTSZ_TAB - Losgrößenprofil für Materialstamm
Data type: /SAPAPO/MATLOTSZ_STROptional: Yes
Call by Reference: Yes
E_SNP01_TAB - SNP: Bedarfsprofil
Data type: /SAPAPO/SNP01_STROptional: Yes
Call by Reference: Yes
E_SNP02_TAB - SNP: Angebotsprofil
Data type: /SAPAPO/SNP02_STROptional: Yes
Call by Reference: Yes
E_SNP11_TAB - SNP: Deploymentprofil
Data type: /SAPAPO/SNP11_STROptional: Yes
Call by Reference: Yes
E_MATRQ_TAB - Bedarfsprofil im Materialstamm
Data type: /SAPAPO/MATRQ_STROptional: Yes
Call by Reference: Yes
I_MATLSIM_KEY_TAB - Structure for ID fields in MATLSIM
Data type: /SAPAPO/MATLSIM_KEY_STROptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for /SAPAPO/DM_PROFILES_GET 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_iv_matlotsz | TYPE XFELD, " 'X' | |||
| lt_i_matlsim_tab | TYPE STANDARD TABLE OF /SAPAPO/MATLSIM_STR, " | |||
| lv_not_qualified | TYPE /SAPAPO/MATLSIM_STR, " | |||
| lv_iv_snp01 | TYPE XFELD, " 'X' | |||
| lt_i_matloc_tab | TYPE STANDARD TABLE OF /SAPAPO/MATLOC, " | |||
| lv_iv_snp02 | TYPE XFELD, " 'X' | |||
| lt_e_lotsz_tab | TYPE STANDARD TABLE OF /SAPAPO/MATLOTSZ_STR, " | |||
| lv_iv_snp11 | TYPE XFELD, " 'X' | |||
| lt_e_snp01_tab | TYPE STANDARD TABLE OF /SAPAPO/SNP01_STR, " | |||
| lv_iv_matrq | TYPE XFELD, " 'X' | |||
| lt_e_snp02_tab | TYPE STANDARD TABLE OF /SAPAPO/SNP02_STR, " | |||
| lv_iv_heupr | TYPE XFELD, " 'X' | |||
| lt_e_snp11_tab | TYPE STANDARD TABLE OF /SAPAPO/SNP11_STR, " | |||
| lt_e_matrq_tab | TYPE STANDARD TABLE OF /SAPAPO/MATRQ_STR, " | |||
| lv_iv_do_buffer | TYPE XFELD, " | |||
| lt_i_matlsim_key_tab | TYPE STANDARD TABLE OF /SAPAPO/MATLSIM_KEY_STR. " |
|   CALL FUNCTION '/SAPAPO/DM_PROFILES_GET' "Read Profiles for MATLOC and/or MATLSIM Entries |
| EXPORTING | ||
| IV_MATLOTSZ | = lv_iv_matlotsz | |
| IV_SNP01 | = lv_iv_snp01 | |
| IV_SNP02 | = lv_iv_snp02 | |
| IV_SNP11 | = lv_iv_snp11 | |
| IV_MATRQ | = lv_iv_matrq | |
| IV_HEUPR | = lv_iv_heupr | |
| IV_DO_BUFFER | = lv_iv_do_buffer | |
| TABLES | ||
| I_MATLSIM_TAB | = lt_i_matlsim_tab | |
| I_MATLOC_TAB | = lt_i_matloc_tab | |
| E_LOTSZ_TAB | = lt_e_lotsz_tab | |
| E_SNP01_TAB | = lt_e_snp01_tab | |
| E_SNP02_TAB | = lt_e_snp02_tab | |
| E_SNP11_TAB | = lt_e_snp11_tab | |
| E_MATRQ_TAB | = lt_e_matrq_tab | |
| I_MATLSIM_KEY_TAB | = lt_i_matlsim_key_tab | |
| EXCEPTIONS | ||
| NOT_QUALIFIED = 1 | ||
| . " /SAPAPO/DM_PROFILES_GET | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_PROFILES_GET
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_iv_matlotsz) | = 'X'. | |||
| DATA(ld_iv_snp01) | = 'X'. | |||
| DATA(ld_iv_snp02) | = 'X'. | |||
| DATA(ld_iv_snp11) | = 'X'. | |||
| DATA(ld_iv_matrq) | = 'X'. | |||
| DATA(ld_iv_heupr) | = 'X'. | |||
Search for further information about these or an SAP related objects