SAP /SAPAPO/DM_MATID_GET_MATERIAL Function Module for Determines External # for Internal Material Number









/SAPAPO/DM_MATID_GET_MATERIAL is a standard /sapapo/dm matid get material SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determines External # for Internal Material Number 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 matid get material FM, simply by entering the name /SAPAPO/DM_MATID_GET_MATERIAL into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SAPAPO/DM_MATERIAL
Program Name: /SAPAPO/SAPLDM_MATERIAL
Main Program: /SAPAPO/SAPLDM_MATERIAL
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /SAPAPO/DM_MATID_GET_MATERIAL 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_MATID_GET_MATERIAL'"Determines External # for Internal Material Number
EXPORTING
IV_MATID = "
* IV_LANGU = SY-LANGU "
* IV_BYPASSING_BUFFER = ' ' "Boolesche Variable
* IV_FILL_MEAN_FROM_MARM = 'X' "Fill MEAN from MARM (with EAN filled) if not MEAN entries exist yet on database
* IV_NO_BUFFERING = ' ' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

IMPORTING
EV_MATNR = "
ES_SHL_DUR = "Referenzstruktur Haltbarkeitsdauer
EV_TS_SDP_USE = "Einstelliges Kennzeichen
EV_CFG_SCENARIO = "Konfigurationsrelevanz für ein Produkt
EV_MEINS = "
EV_DISST = "
EV_MAKTX = "
EV_KOSCH = "
EV_MATKEY = "nur wenn unbedingt nötig verwenden
EV_CHARACTERISTICS = "
EV_TRAGR = "Transportgruppe
EV_MATKL = "Warengruppe

TABLES
* ET_MARM = "Mengeneinheiten
* ET_MEAN = "Multiple GTIN/EAN (database format)
* ET_TXDIM = "Transferstruktur für Tabelle T006T

EXCEPTIONS
MATERIAL_NOT_FOUND = 1
.



IMPORTING Parameters details for /SAPAPO/DM_MATID_GET_MATERIAL

IV_MATID -

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

IV_LANGU -

Data type: LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: Yes

IV_BYPASSING_BUFFER - Boolesche Variable

Data type: BOOLE_D
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_FILL_MEAN_FROM_MARM - Fill MEAN from MARM (with EAN filled) if not MEAN entries exist yet on database

Data type: BOOLE_D
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NO_BUFFERING - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

Data type: BOOLE_D
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for /SAPAPO/DM_MATID_GET_MATERIAL

EV_MATNR -

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

ES_SHL_DUR - Referenzstruktur Haltbarkeitsdauer

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

EV_TS_SDP_USE - Einstelliges Kennzeichen

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

EV_CFG_SCENARIO - Konfigurationsrelevanz für ein Produkt

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

EV_MEINS -

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

EV_DISST -

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

EV_MAKTX -

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

EV_KOSCH -

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

EV_MATKEY - nur wenn unbedingt nötig verwenden

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

EV_CHARACTERISTICS -

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

EV_TRAGR - Transportgruppe

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

EV_MATKL - Warengruppe

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

TABLES Parameters details for /SAPAPO/DM_MATID_GET_MATERIAL

ET_MARM - Mengeneinheiten

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

ET_MEAN - Multiple GTIN/EAN (database format)

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

ET_TXDIM - Transferstruktur für Tabelle T006T

Data type: RST006T
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

MATERIAL_NOT_FOUND -

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

Copy and paste ABAP code example for /SAPAPO/DM_MATID_GET_MATERIAL 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:
lt_et_marm  TYPE STANDARD TABLE OF /SAPAPO/MARM_STR, "   
lv_ev_matnr  TYPE /SAPAPO/MATNR, "   
lv_iv_matid  TYPE /SAPAPO/MATID, "   
lv_material_not_found  TYPE /SAPAPO/MATID, "   
lv_es_shl_dur  TYPE /SAPAPO/SHL_DUR, "   
lv_ev_ts_sdp_use  TYPE /SAPAPO/TS_SDP_USE, "   
lv_ev_cfg_scenario  TYPE /SAPAPO/CONFR_CFGSYS, "   
lt_et_mean  TYPE STANDARD TABLE OF /SAPAPO/MEAN_STR, "   
lv_ev_meins  TYPE /SAPAPO/MEINS, "   
lv_iv_langu  TYPE LANGU, "   SY-LANGU
lt_et_txdim  TYPE STANDARD TABLE OF RST006T, "   
lv_ev_disst  TYPE /SAPAPO/DISST, "   
lv_iv_bypassing_buffer  TYPE BOOLE_D, "   SPACE
lv_ev_maktx  TYPE /SAPAPO/MAKTX, "   
lv_iv_fill_mean_from_marm  TYPE BOOLE_D, "   'X'
lv_ev_kosch  TYPE /SAPAPO/KOSCH, "   
lv_iv_no_buffering  TYPE BOOLE_D, "   SPACE
lv_ev_matkey  TYPE /SAPAPO/MATKEY_STR, "   
lv_ev_characteristics  TYPE /SAPAPO/FLGCLASS, "   
lv_ev_tragr  TYPE /SAPAPO/TRAGR, "   
lv_ev_matkl  TYPE /SAPAPO/MATKL_P. "   

  CALL FUNCTION '/SAPAPO/DM_MATID_GET_MATERIAL'  "Determines External # for Internal Material Number
    EXPORTING
         IV_MATID = lv_iv_matid
         IV_LANGU = lv_iv_langu
         IV_BYPASSING_BUFFER = lv_iv_bypassing_buffer
         IV_FILL_MEAN_FROM_MARM = lv_iv_fill_mean_from_marm
         IV_NO_BUFFERING = lv_iv_no_buffering
    IMPORTING
         EV_MATNR = lv_ev_matnr
         ES_SHL_DUR = lv_es_shl_dur
         EV_TS_SDP_USE = lv_ev_ts_sdp_use
         EV_CFG_SCENARIO = lv_ev_cfg_scenario
         EV_MEINS = lv_ev_meins
         EV_DISST = lv_ev_disst
         EV_MAKTX = lv_ev_maktx
         EV_KOSCH = lv_ev_kosch
         EV_MATKEY = lv_ev_matkey
         EV_CHARACTERISTICS = lv_ev_characteristics
         EV_TRAGR = lv_ev_tragr
         EV_MATKL = lv_ev_matkl
    TABLES
         ET_MARM = lt_et_marm
         ET_MEAN = lt_et_mean
         ET_TXDIM = lt_et_txdim
    EXCEPTIONS
        MATERIAL_NOT_FOUND = 1
. " /SAPAPO/DM_MATID_GET_MATERIAL




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_MATID_GET_MATERIAL

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.
 
 
 
DATA(ld_iv_bypassing_buffer) = ' '.
 
 
DATA(ld_iv_fill_mean_from_marm) = 'X'.
 
 
DATA(ld_iv_no_buffering) = ' '.
 
 
 
 
 


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!