SAP /SAPAPO/DM_MATPRT_READ Function Module for Read Partner Products
/SAPAPO/DM_MATPRT_READ is a standard /sapapo/dm matprt 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 Partner Products 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 matprt read FM, simply by entering the name /SAPAPO/DM_MATPRT_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_MATPRT_READ
Program Name: /SAPAPO/SAPLDM_MATPRT_READ
Main Program: /SAPAPO/SAPLDM_MATPRT_READ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /SAPAPO/DM_MATPRT_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_MATPRT_READ'"Read Partner Products.
EXPORTING
* IS_EXCLUDE = "Struktur für Leseausschlüsse Partnerprodukt
* IV_LANGU = SY-LANGU "Sprachenschlüssel
* IV_UNIT = "Umrechnungseinheit
TABLES
* IT_MATID_PRTID = "Struktur für Schlüssel PartnerGUID u. MATID Partnerprodukt
* IT_MATID = "Struktur fuer MatID (Primaerschluessel fuer Material)
* IT_PARTNER_GUID = "IO-Struktur Partner_GUID
* ET_MATPRT = "Stammdaten Partner Produkt
* ET_MATPRTXT = "Beschreibung Partnerprodukt
* ET_MATPRMRM = "ALternative Mengeneinheiten Partnerprodukt
EXCEPTIONS
NOT_QUALIFIED = 1
IMPORTING Parameters details for /SAPAPO/DM_MATPRT_READ
IS_EXCLUDE - Struktur für Leseausschlüsse Partnerprodukt
Data type: /SAPAPO/MATPRT_X_EXCLUDEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LANGU - Sprachenschlüssel
Data type: LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_UNIT - Umrechnungseinheit
Data type: MEINHOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /SAPAPO/DM_MATPRT_READ
IT_MATID_PRTID - Struktur für Schlüssel PartnerGUID u. MATID Partnerprodukt
Data type: /SAPAPO/DM_MATPRT_STROptional: Yes
Call by Reference: No ( called with pass by value option)
IT_MATID - Struktur fuer MatID (Primaerschluessel fuer Material)
Data type: /SAPAPO/DM_MATERIAL_STROptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PARTNER_GUID - IO-Struktur Partner_GUID
Data type: /SAPAPO/DM_LOCPRT_X_PRT_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_MATPRT - Stammdaten Partner Produkt
Data type: /SAPAPO/DM_MATPRT_TAB_STROptional: Yes
Call by Reference: Yes
ET_MATPRTXT - Beschreibung Partnerprodukt
Data type: /SAPAPO/DM_MATPRTXT_STROptional: Yes
Call by Reference: Yes
ET_MATPRMRM - ALternative Mengeneinheiten Partnerprodukt
Data type: /SAPAPO/DM_MATPRMRM_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_MATPRT_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_is_exclude | TYPE /SAPAPO/MATPRT_X_EXCLUDE, " | |||
| lv_not_qualified | TYPE /SAPAPO/MATPRT_X_EXCLUDE, " | |||
| lt_it_matid_prtid | TYPE STANDARD TABLE OF /SAPAPO/DM_MATPRT_STR, " | |||
| lt_it_matid | TYPE STANDARD TABLE OF /SAPAPO/DM_MATERIAL_STR, " | |||
| lv_iv_langu | TYPE LANGU, " SY-LANGU | |||
| lv_iv_unit | TYPE MEINH, " | |||
| lt_it_partner_guid | TYPE STANDARD TABLE OF /SAPAPO/DM_LOCPRT_X_PRT_ID, " | |||
| lt_et_matprt | TYPE STANDARD TABLE OF /SAPAPO/DM_MATPRT_TAB_STR, " | |||
| lt_et_matprtxt | TYPE STANDARD TABLE OF /SAPAPO/DM_MATPRTXT_STR, " | |||
| lt_et_matprmrm | TYPE STANDARD TABLE OF /SAPAPO/DM_MATPRMRM_STR. " |
|   CALL FUNCTION '/SAPAPO/DM_MATPRT_READ' "Read Partner Products |
| EXPORTING | ||
| IS_EXCLUDE | = lv_is_exclude | |
| IV_LANGU | = lv_iv_langu | |
| IV_UNIT | = lv_iv_unit | |
| TABLES | ||
| IT_MATID_PRTID | = lt_it_matid_prtid | |
| IT_MATID | = lt_it_matid | |
| IT_PARTNER_GUID | = lt_it_partner_guid | |
| ET_MATPRT | = lt_et_matprt | |
| ET_MATPRTXT | = lt_et_matprtxt | |
| ET_MATPRMRM | = lt_et_matprmrm | |
| EXCEPTIONS | ||
| NOT_QUALIFIED = 1 | ||
| . " /SAPAPO/DM_MATPRT_READ | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_MATPRT_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_iv_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects