SAP MAIN_PARAMETER_GET_RETAIL Function Module for NOTRANSL: Holen aller Retail-Parameter aus zentralem Puffer









MAIN_PARAMETER_GET_RETAIL is a standard main parameter get retail 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: Holen aller Retail-Parameter aus zentralem Puffer 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 main parameter get retail FM, simply by entering the name MAIN_PARAMETER_GET_RETAIL into the relevant SAP transaction such as SE37 or SE38.

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



Function MAIN_PARAMETER_GET_RETAIL 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 'MAIN_PARAMETER_GET_RETAIL'"NOTRANSL: Holen aller Retail-Parameter aus zentralem Puffer
IMPORTING
NEUFLAG = "Propose Field Content from the Reference
WRMMW1_EINST = "Material Master Maintenance: Initial Parameters (Retail)
WRMMW2 = "Material Master Maintenance: Retail Addition RMMG1 for DC
WRMMW3 = "General Internal Fields for Retail Material Maintenance
WRMMWZ = "Retail Screen Fields
WRMMW1_BEZ = "Initial Parameter Descriptions: Material Master Maintenance
AKTVSTATUS = "Maintenance status
TRANSSTATUS = "Maintenance status
WT130M = "Transaction control parameters: material master maintenance
WT133S = "Screen Sequences
WT134 = "Material Types
FLGNUMINT = "Propose Field Content from the Reference
SPERRMODUS = "Type of block (shared, exclusive)
BILDSEQUENZ = "Screen sequence
WUSRM3 = "Material Master User Settings: Retail Organizational Levels
FLGDARK = "Propose Field Content from the Reference
WRMMG1 = "Mat. Master Maintenance: Initial Parameters - Orig. Material
WRMMG1_REF = "Material Master Maintenance: Initial Param. - Ref. Material
WRMMG1_BEZ = "Initial Parameter Descriptions: Material Master Maintenance
WRMMZU = "Material Master Maintenance: Additional Fields
WRMMG2 = "Additional Material Master Fields: Dialog and Transfer
WRMMW1 = "Material Master Maintenance: Initial Parameters (Retail)

TABLES
* MTAB = "Structure of table PTAB (created for update program)
* MTAB_RT = "Structure of table PTAB (created for update program)
* REFTAB = "Management of Add. Reference Handling: Mat. Master Mainten.
* BILDTAB = "Material Master View Selection Screens
.



EXPORTING Parameters details for MAIN_PARAMETER_GET_RETAIL

NEUFLAG - Propose Field Content from the Reference

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

WRMMW1_EINST - Material Master Maintenance: Initial Parameters (Retail)

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

WRMMW2 - Material Master Maintenance: Retail Addition RMMG1 for DC

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

WRMMW3 - General Internal Fields for Retail Material Maintenance

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

WRMMWZ - Retail Screen Fields

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

WRMMW1_BEZ - Initial Parameter Descriptions: Material Master Maintenance

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

AKTVSTATUS - Maintenance status

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

TRANSSTATUS - Maintenance status

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

WT130M - Transaction control parameters: material master maintenance

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

WT133S - Screen Sequences

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

WT134 - Material Types

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

FLGNUMINT - Propose Field Content from the Reference

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

SPERRMODUS - Type of block (shared, exclusive)

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

BILDSEQUENZ - Screen sequence

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

WUSRM3 - Material Master User Settings: Retail Organizational Levels

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

FLGDARK - Propose Field Content from the Reference

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

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

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

WRMMG1_REF - Material Master Maintenance: Initial Param. - Ref. Material

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

WRMMG1_BEZ - Initial Parameter Descriptions: Material Master Maintenance

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

WRMMZU - Material Master Maintenance: Additional Fields

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

WRMMG2 - Additional Material Master Fields: Dialog and Transfer

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

WRMMW1 - Material Master Maintenance: Initial Parameters (Retail)

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

TABLES Parameters details for MAIN_PARAMETER_GET_RETAIL

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

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

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

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

REFTAB - Management of Add. Reference Handling: Mat. Master Mainten.

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

BILDTAB - Material Master View Selection Screens

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

Copy and paste ABAP code example for MAIN_PARAMETER_GET_RETAIL 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_mtab  TYPE STANDARD TABLE OF SPTAP, "   
lv_neuflag  TYPE T130F-KZREF, "   
lv_wrmmw1_einst  TYPE RMMW1, "   
lv_wrmmw2  TYPE RMMW2, "   
lv_wrmmw3  TYPE RMMW3, "   
lv_wrmmwz  TYPE RMMWZ, "   
lv_wrmmw1_bez  TYPE RMMW1_BEZ, "   
lv_aktvstatus  TYPE MARA-PSTAT, "   
lv_transstatus  TYPE T130M-PSTAT, "   
lv_wt130m  TYPE T130M, "   
lv_wt133s  TYPE T133S, "   
lv_wt134  TYPE T134, "   
lt_mtab_rt  TYPE STANDARD TABLE OF SPTAP, "   
lv_flgnumint  TYPE T130F-KZREF, "   
lv_sperrmodus  TYPE TVGVI-SPERA, "   
lv_bildsequenz  TYPE T133A-BILDS, "   
lv_wusrm3  TYPE USRM3, "   
lt_reftab  TYPE STANDARD TABLE OF MREFTAB, "   
lv_flgdark  TYPE T130F-KZREF, "   
lv_wrmmg1  TYPE RMMG1, "   
lt_bildtab  TYPE STANDARD TABLE OF MBILDTAB, "   
lv_wrmmg1_ref  TYPE RMMG1_REF, "   
lv_wrmmg1_bez  TYPE RMMG1_BEZ, "   
lv_wrmmzu  TYPE RMMZU, "   
lv_wrmmg2  TYPE RMMG2, "   
lv_wrmmw1  TYPE RMMW1. "   

  CALL FUNCTION 'MAIN_PARAMETER_GET_RETAIL'  "NOTRANSL: Holen aller Retail-Parameter aus zentralem Puffer
    IMPORTING
         NEUFLAG = lv_neuflag
         WRMMW1_EINST = lv_wrmmw1_einst
         WRMMW2 = lv_wrmmw2
         WRMMW3 = lv_wrmmw3
         WRMMWZ = lv_wrmmwz
         WRMMW1_BEZ = lv_wrmmw1_bez
         AKTVSTATUS = lv_aktvstatus
         TRANSSTATUS = lv_transstatus
         WT130M = lv_wt130m
         WT133S = lv_wt133s
         WT134 = lv_wt134
         FLGNUMINT = lv_flgnumint
         SPERRMODUS = lv_sperrmodus
         BILDSEQUENZ = lv_bildsequenz
         WUSRM3 = lv_wusrm3
         FLGDARK = lv_flgdark
         WRMMG1 = lv_wrmmg1
         WRMMG1_REF = lv_wrmmg1_ref
         WRMMG1_BEZ = lv_wrmmg1_bez
         WRMMZU = lv_wrmmzu
         WRMMG2 = lv_wrmmg2
         WRMMW1 = lv_wrmmw1
    TABLES
         MTAB = lt_mtab
         MTAB_RT = lt_mtab_rt
         REFTAB = lt_reftab
         BILDTAB = lt_bildtab
. " MAIN_PARAMETER_GET_RETAIL




ABAP code using 7.40 inline data declarations to call FM MAIN_PARAMETER_GET_RETAIL

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_neuflag).
 
 
 
 
 
 
"SELECT single PSTAT FROM MARA INTO @DATA(ld_aktvstatus).
 
"SELECT single PSTAT FROM T130M INTO @DATA(ld_transstatus).
 
 
 
 
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_flgnumint).
 
"SELECT single SPERA FROM TVGVI INTO @DATA(ld_sperrmodus).
 
"SELECT single BILDS FROM T133A INTO @DATA(ld_bildsequenz).
 
 
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_flgdark).
 
 
 
 
 
 
 
 


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!