SAP MASTERIDOC_CREATE_SMD_MATMAS_M Function Module for NOTRANSL: Erzeugen Masteridoc MATMAS aus SMD
MASTERIDOC_CREATE_SMD_MATMAS_M is a standard masteridoc create smd matmas m SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Erzeugen Masteridoc MATMAS aus SMD 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 masteridoc create smd matmas m FM, simply by entering the name MASTERIDOC_CREATE_SMD_MATMAS_M into the relevant SAP transaction such as SE37 or SE38.
Function Group: MATERIAL_MASS_IDOC
Program Name: SAPLMATERIAL_MASS_IDOC
Main Program: SAPLMATERIAL_MASS_IDOC
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MASTERIDOC_CREATE_SMD_MATMAS_M 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 'MASTERIDOC_CREATE_SMD_MATMAS_M'"NOTRANSL: Erzeugen Masteridoc MATMAS aus SMD.
EXPORTING
MESSAGE_TYPE = "
RCVPRN = "
RCVPRT = "
TABLES
T_MARAKEY = "
T_MVEUKEY = "
T_MKALKEY = "
T_MARMKEY = "
T_MEANKEY = "
T_MBEWKEY = "
T_MLGNKEY = "
T_MLGTKEY = "
T_MVKEKEY = "
T_MLANKEY = "
T_STXHKEY = "
T_MAKTKEY = "
* T_CONFIG_SEND = "
T_CPIDENT_MAT = "
* TE_IDOC_CONTROL = "
T_MARCKEY = "
T_MARDKEY = "
T_MFHMKEY = "
T_MPGDKEY = "
T_MPOPKEY = "
T_MPRWKEY = "
T_MVEGKEY = "
EXCEPTIONS
NO_ALE_MODEL = 1
IMPORTING Parameters details for MASTERIDOC_CREATE_SMD_MATMAS_M
MESSAGE_TYPE -
Data type: TBDME-MESTYPOptional: No
Call by Reference: No ( called with pass by value option)
RCVPRN -
Data type: EDIDC-RCVPRNOptional: No
Call by Reference: No ( called with pass by value option)
RCVPRT -
Data type: EDIDC-RCVPRTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MASTERIDOC_CREATE_SMD_MATMAS_M
T_MARAKEY -
Data type: BDIMARAKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MVEUKEY -
Data type: BDIMVEUKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MKALKEY -
Data type: BDIMKALKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MARMKEY -
Data type: BDIMARMKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MEANKEY -
Data type: BDIMEANKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MBEWKEY -
Data type: BDIMBEWKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MLGNKEY -
Data type: BDIMLGNKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MLGTKEY -
Data type: BDIMLGTKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MVKEKEY -
Data type: BDIMVKEKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MLANKEY -
Data type: BDIMLANKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_STXHKEY -
Data type: BDISTXHKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MAKTKEY -
Data type: BDIMAKTKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_CONFIG_SEND -
Data type: MVSE_SEND_CONFIGOptional: Yes
Call by Reference: Yes
T_CPIDENT_MAT -
Data type: CPIDENT_MATOptional: No
Call by Reference: No ( called with pass by value option)
TE_IDOC_CONTROL -
Data type: EDIDCOptional: Yes
Call by Reference: No ( called with pass by value option)
T_MARCKEY -
Data type: BDIMARCKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MARDKEY -
Data type: BDIMARDKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MFHMKEY -
Data type: BDIMFHMKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MPGDKEY -
Data type: BDIMPGDKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MPOPKEY -
Data type: BDIMPOPKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MPRWKEY -
Data type: BDIMPRWKEYOptional: No
Call by Reference: No ( called with pass by value option)
T_MVEGKEY -
Data type: BDIMVEGKEYOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ALE_MODEL -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MASTERIDOC_CREATE_SMD_MATMAS_M 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_t_marakey | TYPE STANDARD TABLE OF BDIMARAKEY, " | |||
| lv_message_type | TYPE TBDME-MESTYP, " | |||
| lv_no_ale_model | TYPE TBDME, " | |||
| lt_t_mveukey | TYPE STANDARD TABLE OF BDIMVEUKEY, " | |||
| lt_t_mkalkey | TYPE STANDARD TABLE OF BDIMKALKEY, " | |||
| lt_t_marmkey | TYPE STANDARD TABLE OF BDIMARMKEY, " | |||
| lt_t_meankey | TYPE STANDARD TABLE OF BDIMEANKEY, " | |||
| lt_t_mbewkey | TYPE STANDARD TABLE OF BDIMBEWKEY, " | |||
| lt_t_mlgnkey | TYPE STANDARD TABLE OF BDIMLGNKEY, " | |||
| lt_t_mlgtkey | TYPE STANDARD TABLE OF BDIMLGTKEY, " | |||
| lt_t_mvkekey | TYPE STANDARD TABLE OF BDIMVKEKEY, " | |||
| lt_t_mlankey | TYPE STANDARD TABLE OF BDIMLANKEY, " | |||
| lt_t_stxhkey | TYPE STANDARD TABLE OF BDISTXHKEY, " | |||
| lv_rcvprn | TYPE EDIDC-RCVPRN, " | |||
| lt_t_maktkey | TYPE STANDARD TABLE OF BDIMAKTKEY, " | |||
| lt_t_config_send | TYPE STANDARD TABLE OF MVSE_SEND_CONFIG, " | |||
| lt_t_cpident_mat | TYPE STANDARD TABLE OF CPIDENT_MAT, " | |||
| lt_te_idoc_control | TYPE STANDARD TABLE OF EDIDC, " | |||
| lv_rcvprt | TYPE EDIDC-RCVPRT, " | |||
| lt_t_marckey | TYPE STANDARD TABLE OF BDIMARCKEY, " | |||
| lt_t_mardkey | TYPE STANDARD TABLE OF BDIMARDKEY, " | |||
| lt_t_mfhmkey | TYPE STANDARD TABLE OF BDIMFHMKEY, " | |||
| lt_t_mpgdkey | TYPE STANDARD TABLE OF BDIMPGDKEY, " | |||
| lt_t_mpopkey | TYPE STANDARD TABLE OF BDIMPOPKEY, " | |||
| lt_t_mprwkey | TYPE STANDARD TABLE OF BDIMPRWKEY, " | |||
| lt_t_mvegkey | TYPE STANDARD TABLE OF BDIMVEGKEY. " |
|   CALL FUNCTION 'MASTERIDOC_CREATE_SMD_MATMAS_M' "NOTRANSL: Erzeugen Masteridoc MATMAS aus SMD |
| EXPORTING | ||
| MESSAGE_TYPE | = lv_message_type | |
| RCVPRN | = lv_rcvprn | |
| RCVPRT | = lv_rcvprt | |
| TABLES | ||
| T_MARAKEY | = lt_t_marakey | |
| T_MVEUKEY | = lt_t_mveukey | |
| T_MKALKEY | = lt_t_mkalkey | |
| T_MARMKEY | = lt_t_marmkey | |
| T_MEANKEY | = lt_t_meankey | |
| T_MBEWKEY | = lt_t_mbewkey | |
| T_MLGNKEY | = lt_t_mlgnkey | |
| T_MLGTKEY | = lt_t_mlgtkey | |
| T_MVKEKEY | = lt_t_mvkekey | |
| T_MLANKEY | = lt_t_mlankey | |
| T_STXHKEY | = lt_t_stxhkey | |
| T_MAKTKEY | = lt_t_maktkey | |
| T_CONFIG_SEND | = lt_t_config_send | |
| T_CPIDENT_MAT | = lt_t_cpident_mat | |
| TE_IDOC_CONTROL | = lt_te_idoc_control | |
| T_MARCKEY | = lt_t_marckey | |
| T_MARDKEY | = lt_t_mardkey | |
| T_MFHMKEY | = lt_t_mfhmkey | |
| T_MPGDKEY | = lt_t_mpgdkey | |
| T_MPOPKEY | = lt_t_mpopkey | |
| T_MPRWKEY | = lt_t_mprwkey | |
| T_MVEGKEY | = lt_t_mvegkey | |
| EXCEPTIONS | ||
| NO_ALE_MODEL = 1 | ||
| . " MASTERIDOC_CREATE_SMD_MATMAS_M | ||
ABAP code using 7.40 inline data declarations to call FM MASTERIDOC_CREATE_SMD_MATMAS_M
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.| "SELECT single MESTYP FROM TBDME INTO @DATA(ld_message_type). | ||||
| "SELECT single RCVPRN FROM EDIDC INTO @DATA(ld_rcvprn). | ||||
| "SELECT single RCVPRT FROM EDIDC INTO @DATA(ld_rcvprt). | ||||
Search for further information about these or an SAP related objects