SAP MASTERIDOC_MATMAS_KEYLISTS_CRM Function Module for NOTRANSL: Keylisten aufbauen
MASTERIDOC_MATMAS_KEYLISTS_CRM is a standard masteridoc matmas keylists crm 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: Keylisten aufbauen 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 matmas keylists crm FM, simply by entering the name MASTERIDOC_MATMAS_KEYLISTS_CRM into the relevant SAP transaction such as SE37 or SE38.
Function Group: MATERIAL_MASSIDOC
Program Name: SAPLMATERIAL_MASSIDOC
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MASTERIDOC_MATMAS_KEYLISTS_CRM 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_MATMAS_KEYLISTS_CRM'"NOTRANSL: Keylisten aufbauen.
EXPORTING
IV_MESSAGE_TYPE = "Message Type
IV_SEND_ALL = "Generic Type
* IV_BUILD_KEYTABLES = 'X' "Checkbox
CHANGING
* T_MATERIAL_LIST = "GDS: Material List
TABLES
* T_MARAKEY = "Transfer structure: MARA key fields
* T_MVEUKEY = "Transfer structure: Non-planned consumption
* T_MKALKEY = "Transfer structure: Production versions
* T_MARMKEY = "Transfer structure: MARM key fields
* T_MEANKEY = "Transfer structure: MEAN key fields
* T_MBEWKEY = "Transfer structure: MBEW key fields
* T_MLGNKEY = "Transfer structure: MLGN key fields
* T_MLGTKEY = "Transfer Structure: MLGT Key Fields
* T_MVKEKEY = "Transfer structure: MVKE key fields
* T_MLANKEY = "Transfer structure: MLAN key fields
* T_STXHKEY = "Transfer structure: STXH key fields
* T_MAKTKEY = "Transfer structure: MAKT key fields
* T_CONFIG_SEND = "Send Transfer Structure f. Mat. Variants by Change Pointer
* T_CPIDENT_MAT = "Structure for Table T_CPIDENT_MAT
* T_SELRANGE_MATNR = "Selection Range for Material Number
* T_MARCKEY = "Transfer structure: MARC key fields
* T_MARDKEY = "Transfer structure: MARD key fields
* T_MFHMKEY = "Transfer structure: Production resources/tools key fields
* T_MPGDKEY = "Transfer structure: Product group info key fields
* T_MPOPKEY = "Transfer structure: Forecast values key fields
* T_MPRWKEY = "Transfer structure: Forecast values per period, key fields
* T_MVEGKEY = "Transfer structure: Total consumption
IMPORTING Parameters details for MASTERIDOC_MATMAS_KEYLISTS_CRM
IV_MESSAGE_TYPE - Message Type
Data type: TBDME-MESTYPOptional: No
Call by Reference: No ( called with pass by value option)
IV_SEND_ALL - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
IV_BUILD_KEYTABLES - Checkbox
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for MASTERIDOC_MATMAS_KEYLISTS_CRM
T_MATERIAL_LIST - GDS: Material List
Data type: GDS_TT_MATERIAL_LISTOptional: Yes
Call by Reference: Yes
TABLES Parameters details for MASTERIDOC_MATMAS_KEYLISTS_CRM
T_MARAKEY - Transfer structure: MARA key fields
Data type: BDIMARAKEYOptional: Yes
Call by Reference: Yes
T_MVEUKEY - Transfer structure: Non-planned consumption
Data type: BDIMVEUKEYOptional: Yes
Call by Reference: Yes
T_MKALKEY - Transfer structure: Production versions
Data type: BDIMKALKEYOptional: Yes
Call by Reference: Yes
T_MARMKEY - Transfer structure: MARM key fields
Data type: BDIMARMKEYOptional: Yes
Call by Reference: Yes
T_MEANKEY - Transfer structure: MEAN key fields
Data type: BDIMEANKEYOptional: Yes
Call by Reference: Yes
T_MBEWKEY - Transfer structure: MBEW key fields
Data type: BDIMBEWKEYOptional: Yes
Call by Reference: Yes
T_MLGNKEY - Transfer structure: MLGN key fields
Data type: BDIMLGNKEYOptional: Yes
Call by Reference: Yes
T_MLGTKEY - Transfer Structure: MLGT Key Fields
Data type: BDIMLGTKEYOptional: Yes
Call by Reference: Yes
T_MVKEKEY - Transfer structure: MVKE key fields
Data type: BDIMVKEKEYOptional: Yes
Call by Reference: Yes
T_MLANKEY - Transfer structure: MLAN key fields
Data type: BDIMLANKEYOptional: Yes
Call by Reference: Yes
T_STXHKEY - Transfer structure: STXH key fields
Data type: BDISTXHKEYOptional: Yes
Call by Reference: Yes
T_MAKTKEY - Transfer structure: MAKT key fields
Data type: BDIMAKTKEYOptional: Yes
Call by Reference: Yes
T_CONFIG_SEND - Send Transfer Structure f. Mat. Variants by Change Pointer
Data type: MVSE_SEND_CONFIGOptional: Yes
Call by Reference: Yes
T_CPIDENT_MAT - Structure for Table T_CPIDENT_MAT
Data type: CPIDENT_MATMOptional: Yes
Call by Reference: Yes
T_SELRANGE_MATNR - Selection Range for Material Number
Data type: GDS_SELRANGE_MATNROptional: Yes
Call by Reference: Yes
T_MARCKEY - Transfer structure: MARC key fields
Data type: BDIMARCKEYOptional: Yes
Call by Reference: Yes
T_MARDKEY - Transfer structure: MARD key fields
Data type: BDIMARDKEYOptional: Yes
Call by Reference: Yes
T_MFHMKEY - Transfer structure: Production resources/tools key fields
Data type: BDIMFHMKEYOptional: Yes
Call by Reference: Yes
T_MPGDKEY - Transfer structure: Product group info key fields
Data type: BDIMPGDKEYOptional: Yes
Call by Reference: Yes
T_MPOPKEY - Transfer structure: Forecast values key fields
Data type: BDIMPOPKEYOptional: Yes
Call by Reference: Yes
T_MPRWKEY - Transfer structure: Forecast values per period, key fields
Data type: BDIMPRWKEYOptional: Yes
Call by Reference: Yes
T_MVEGKEY - Transfer structure: Total consumption
Data type: BDIMVEGKEYOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for MASTERIDOC_MATMAS_KEYLISTS_CRM 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_iv_message_type | TYPE TBDME-MESTYP, " | |||
| lv_t_material_list | TYPE GDS_TT_MATERIAL_LIST, " | |||
| 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, " | |||
| lt_t_maktkey | TYPE STANDARD TABLE OF BDIMAKTKEY, " | |||
| lv_iv_send_all | TYPE C, " | |||
| lt_t_config_send | TYPE STANDARD TABLE OF MVSE_SEND_CONFIG, " | |||
| lt_t_cpident_mat | TYPE STANDARD TABLE OF CPIDENT_MATM, " | |||
| lt_t_selrange_matnr | TYPE STANDARD TABLE OF GDS_SELRANGE_MATNR, " | |||
| lt_t_marckey | TYPE STANDARD TABLE OF BDIMARCKEY, " | |||
| lv_iv_build_keytables | TYPE XFELD, " 'X' | |||
| 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_MATMAS_KEYLISTS_CRM' "NOTRANSL: Keylisten aufbauen |
| EXPORTING | ||
| IV_MESSAGE_TYPE | = lv_iv_message_type | |
| IV_SEND_ALL | = lv_iv_send_all | |
| IV_BUILD_KEYTABLES | = lv_iv_build_keytables | |
| CHANGING | ||
| T_MATERIAL_LIST | = lv_t_material_list | |
| 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 | |
| T_SELRANGE_MATNR | = lt_t_selrange_matnr | |
| 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 | |
| . " MASTERIDOC_MATMAS_KEYLISTS_CRM | ||
ABAP code using 7.40 inline data declarations to call FM MASTERIDOC_MATMAS_KEYLISTS_CRM
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_iv_message_type). | ||||
| DATA(ld_iv_build_keytables) | = 'X'. | |||
Search for further information about these or an SAP related objects