SAP MATERIAL_FIELD_SPECIAL_SELECT Function Module for NOTRANSL: Sonderfeldauswahl Materialstammpflege Dialog + Batch









MATERIAL_FIELD_SPECIAL_SELECT is a standard material field special select 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: Sonderfeldauswahl Materialstammpflege Dialog + Batch 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 material field special select FM, simply by entering the name MATERIAL_FIELD_SPECIAL_SELECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: MATF
Program Name: SAPLMATF
Main Program: SAPLMATF
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MATERIAL_FIELD_SPECIAL_SELECT 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 'MATERIAL_FIELD_SPECIAL_SELECT'"NOTRANSL: Sonderfeldauswahl Materialstammpflege Dialog + Batch
EXPORTING
* ALT_STANDARDPR_ALLG = ' ' "Cross-Plant Configurable Material
IRMMG1 = "Mat. Master Maintenance: Initial Parameters - Orig. Material
IRMMG2 = "Additional Material Master Fields: Dialog and Transfer
* IRMMZU = "Material Master Maintenance: Additional Fields
MTART_BESKZ = "Procurement Type
IT130M = "Transaction control parameters: material master maintenance
NEUFLAG = "ABAP System Field: Highlighted Input in Dynpro Field
QM_PRUEFDATEN = "Inspection Setup Exists for Material/Plant
AKTVSTATUS = "Maintenance status
* IT134_KZPRC = "Material Master Record for a Process
IT134_VPRSV = "Price Control Indicator
ALT_STANDARDPRODUKT = "Configurable material
IT134_KZVPR = "Price Control Mandatory
* IT134_KZKFG = "Configurable Material
* OMARA_KZKFG = "Configurable Material
* KZRFB = ' ' "Indicator: reset buffer for Material_Pre_Fetch
* LANGTEXTBILD = ' ' "ABAP System Field: Current Dynpro Number
* FLG_UEBERNAHME = ' ' "Propose Field Content from the Reference
* FLG_PRUEFDUNKEL = ' ' "Propose Field Content from the Reference
* KZ_KTEXT_ON_DYNP = ' ' "ABAP System Field: Highlighted Input in Dynpro Field
FLGSTEUER_MUSS = "Propose Field Content from the Reference
* IMARA = "General Material Data
IMARC = "Plant Data for Material
IMPOP = "Forecast Parameters
MPOP_PRDAT_DB = "Date of last forecast
IMYMS = "LIFO-relevant materials
IMBEW = "Material Valuation

IMPORTING
FLGSTEUER_MUSS = "Propose Field Content from the Reference
IMBEW = "Material Valuation

TABLES
FAUSWTAB = "Field Selection Data for Material Master
PTAB = "Structure of table PTAB (created for update program)
STEUERTAB = "Control Table
STEUMMTAB = "Control Table: Purchasing
.



IMPORTING Parameters details for MATERIAL_FIELD_SPECIAL_SELECT

ALT_STANDARDPR_ALLG - Cross-Plant Configurable Material

Data type: MARA-SATNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IRMMG1 - Mat. Master Maintenance: Initial Parameters - Orig. Material

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

IRMMG2 - Additional Material Master Fields: Dialog and Transfer

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

IRMMZU - Material Master Maintenance: Additional Fields

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

MTART_BESKZ - Procurement Type

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

IT130M - Transaction control parameters: material master maintenance

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

NEUFLAG - ABAP System Field: Highlighted Input in Dynpro Field

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

QM_PRUEFDATEN - Inspection Setup Exists for Material/Plant

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

AKTVSTATUS - Maintenance status

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

IT134_KZPRC - Material Master Record for a Process

Data type: T134-KZPRC
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT134_VPRSV - Price Control Indicator

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

ALT_STANDARDPRODUKT - Configurable material

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

IT134_KZVPR - Price Control Mandatory

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

IT134_KZKFG - Configurable Material

Data type: T134-KZKFG
Optional: Yes
Call by Reference: No ( called with pass by value option)

OMARA_KZKFG - Configurable Material

Data type: MARA-KZKFG
Optional: Yes
Call by Reference: No ( called with pass by value option)

KZRFB - Indicator: reset buffer for Material_Pre_Fetch

Data type: MTCOM-KZRFB
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGTEXTBILD - ABAP System Field: Current Dynpro Number

Data type: SY-DYNNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_UEBERNAHME - Propose Field Content from the Reference

Data type: T130F-KZREF
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_PRUEFDUNKEL - Propose Field Content from the Reference

Data type: T130F-KZREF
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

KZ_KTEXT_ON_DYNP - ABAP System Field: Highlighted Input in Dynpro Field

Data type: SY-DATAR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLGSTEUER_MUSS - Propose Field Content from the Reference

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

IMARA - General Material Data

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

IMARC - Plant Data for Material

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

IMPOP - Forecast Parameters

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

MPOP_PRDAT_DB - Date of last forecast

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

IMYMS - LIFO-relevant materials

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

IMBEW - Material Valuation

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

EXPORTING Parameters details for MATERIAL_FIELD_SPECIAL_SELECT

FLGSTEUER_MUSS - Propose Field Content from the Reference

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

IMBEW - Material Valuation

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

TABLES Parameters details for MATERIAL_FIELD_SPECIAL_SELECT

FAUSWTAB - Field Selection Data for Material Master

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

PTAB - Structure of table PTAB (created for update program)

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

STEUERTAB - Control Table

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

STEUMMTAB - Control Table: Purchasing

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

Copy and paste ABAP code example for MATERIAL_FIELD_SPECIAL_SELECT 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_fauswtab  TYPE STANDARD TABLE OF SFAUSWTAB, "   
lv_flgsteuer_muss  TYPE T130F-KZREF, "   
lv_alt_standardpr_allg  TYPE MARA-SATNR, "   SPACE
lv_irmmg1  TYPE RMMG1, "   
lv_irmmg2  TYPE RMMG2, "   
lv_irmmzu  TYPE RMMZU, "   
lv_mtart_beskz  TYPE RMMG2-BESKZ, "   
lv_it130m  TYPE T130M, "   
lv_neuflag  TYPE SY-DATAR, "   
lv_qm_pruefdaten  TYPE MARC-QMATV, "   
lv_aktvstatus  TYPE T130M-PSTAT, "   
lv_it134_kzprc  TYPE T134-KZPRC, "   
lv_it134_vprsv  TYPE T134-VPRSV, "   
lt_ptab  TYPE STANDARD TABLE OF SPTAP, "   
lv_imbew  TYPE MBEW, "   
lv_alt_standardprodukt  TYPE MARC-STDPD, "   
lv_it134_kzvpr  TYPE T134-KZVPR, "   
lv_it134_kzkfg  TYPE T134-KZKFG, "   
lv_omara_kzkfg  TYPE MARA-KZKFG, "   
lv_kzrfb  TYPE MTCOM-KZRFB, "   SPACE
lv_langtextbild  TYPE SY-DYNNR, "   SPACE
lv_flg_uebernahme  TYPE T130F-KZREF, "   SPACE
lv_flg_pruefdunkel  TYPE T130F-KZREF, "   SPACE
lv_kz_ktext_on_dynp  TYPE SY-DATAR, "   SPACE
lt_steuertab  TYPE STANDARD TABLE OF MG03STEUER, "   
lv_flgsteuer_muss  TYPE T130F-KZREF, "   
lv_imara  TYPE MARA, "   
lt_steummtab  TYPE STANDARD TABLE OF MG03STEUMM, "   
lv_imarc  TYPE MARC, "   
lv_impop  TYPE MPOP, "   
lv_mpop_prdat_db  TYPE MPOP-PRDAT, "   
lv_imyms  TYPE MYMS, "   
lv_imbew  TYPE MBEW. "   

  CALL FUNCTION 'MATERIAL_FIELD_SPECIAL_SELECT'  "NOTRANSL: Sonderfeldauswahl Materialstammpflege Dialog + Batch
    EXPORTING
         ALT_STANDARDPR_ALLG = lv_alt_standardpr_allg
         IRMMG1 = lv_irmmg1
         IRMMG2 = lv_irmmg2
         IRMMZU = lv_irmmzu
         MTART_BESKZ = lv_mtart_beskz
         IT130M = lv_it130m
         NEUFLAG = lv_neuflag
         QM_PRUEFDATEN = lv_qm_pruefdaten
         AKTVSTATUS = lv_aktvstatus
         IT134_KZPRC = lv_it134_kzprc
         IT134_VPRSV = lv_it134_vprsv
         ALT_STANDARDPRODUKT = lv_alt_standardprodukt
         IT134_KZVPR = lv_it134_kzvpr
         IT134_KZKFG = lv_it134_kzkfg
         OMARA_KZKFG = lv_omara_kzkfg
         KZRFB = lv_kzrfb
         LANGTEXTBILD = lv_langtextbild
         FLG_UEBERNAHME = lv_flg_uebernahme
         FLG_PRUEFDUNKEL = lv_flg_pruefdunkel
         KZ_KTEXT_ON_DYNP = lv_kz_ktext_on_dynp
         FLGSTEUER_MUSS = lv_flgsteuer_muss
         IMARA = lv_imara
         IMARC = lv_imarc
         IMPOP = lv_impop
         MPOP_PRDAT_DB = lv_mpop_prdat_db
         IMYMS = lv_imyms
         IMBEW = lv_imbew
    IMPORTING
         FLGSTEUER_MUSS = lv_flgsteuer_muss
         IMBEW = lv_imbew
    TABLES
         FAUSWTAB = lt_fauswtab
         PTAB = lt_ptab
         STEUERTAB = lt_steuertab
         STEUMMTAB = lt_steummtab
. " MATERIAL_FIELD_SPECIAL_SELECT




ABAP code using 7.40 inline data declarations to call FM MATERIAL_FIELD_SPECIAL_SELECT

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 KZREF FROM T130F INTO @DATA(ld_flgsteuer_muss).
 
"SELECT single SATNR FROM MARA INTO @DATA(ld_alt_standardpr_allg).
DATA(ld_alt_standardpr_allg) = ' '.
 
 
 
 
"SELECT single BESKZ FROM RMMG2 INTO @DATA(ld_mtart_beskz).
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_neuflag).
 
"SELECT single QMATV FROM MARC INTO @DATA(ld_qm_pruefdaten).
 
"SELECT single PSTAT FROM T130M INTO @DATA(ld_aktvstatus).
 
"SELECT single KZPRC FROM T134 INTO @DATA(ld_it134_kzprc).
 
"SELECT single VPRSV FROM T134 INTO @DATA(ld_it134_vprsv).
 
 
 
"SELECT single STDPD FROM MARC INTO @DATA(ld_alt_standardprodukt).
 
"SELECT single KZVPR FROM T134 INTO @DATA(ld_it134_kzvpr).
 
"SELECT single KZKFG FROM T134 INTO @DATA(ld_it134_kzkfg).
 
"SELECT single KZKFG FROM MARA INTO @DATA(ld_omara_kzkfg).
 
"SELECT single KZRFB FROM MTCOM INTO @DATA(ld_kzrfb).
DATA(ld_kzrfb) = ' '.
 
"SELECT single DYNNR FROM SY INTO @DATA(ld_langtextbild).
DATA(ld_langtextbild) = ' '.
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_flg_uebernahme).
DATA(ld_flg_uebernahme) = ' '.
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_flg_pruefdunkel).
DATA(ld_flg_pruefdunkel) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_kz_ktext_on_dynp).
DATA(ld_kz_ktext_on_dynp) = ' '.
 
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_flgsteuer_muss).
 
 
 
 
 
"SELECT single PRDAT FROM MPOP INTO @DATA(ld_mpop_prdat_db).
 
 
 


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!