SAP MATERIAL_STATUS_SEQUENCE_RT Function Module for NOTRANSL: Ermitteln des AKTVSTATUS (Materialart,Selektion,Werksstatus,MARA









MATERIAL_STATUS_SEQUENCE_RT is a standard material status sequence rt 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: Ermitteln des AKTVSTATUS (Materialart,Selektion,Werksstatus,MARA 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 status sequence rt FM, simply by entering the name MATERIAL_STATUS_SEQUENCE_RT into the relevant SAP transaction such as SE37 or SE38.

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



Function MATERIAL_STATUS_SEQUENCE_RT 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_STATUS_SEQUENCE_RT'"NOTRANSL: Ermitteln des AKTVSTATUS (Materialart,Selektion,Werksstatus,MARA
EXPORTING
P_ATTYP = "Activity Category
* SELSTATUS_RT = "
TRANSTA_RT = "
P_MAW1_WPSTA = "
P_MSGTYP = "
FLG_UEBERNAHME = "
* P_NEUFLAG = "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
P_RCODE = "

CHANGING
* P_WARN_LIST = "

EXCEPTIONS
WRONG_CALL = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLMG72_001 Customer Exit: Internal Material Number Assignment (Retail)
EXIT_SAPLMG72_002 Customer Exit: External Material Number Assignment (Retail)

IMPORTING Parameters details for MATERIAL_STATUS_SEQUENCE_RT

P_ATTYP - Activity Category

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

SELSTATUS_RT -

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

TRANSTA_RT -

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

P_MAW1_WPSTA -

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

P_MSGTYP -

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

FLG_UEBERNAHME -

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

P_NEUFLAG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for MATERIAL_STATUS_SEQUENCE_RT

P_RCODE -

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

CHANGING Parameters details for MATERIAL_STATUS_SEQUENCE_RT

P_WARN_LIST -

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

EXCEPTIONS details

WRONG_CALL - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for MATERIAL_STATUS_SEQUENCE_RT 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:
lv_p_attyp  TYPE RMMW2-ATTYP, "   
lv_p_rcode  TYPE SY-SUBRC, "   
lv_wrong_call  TYPE SY, "   
lv_p_warn_list  TYPE T130F-KZREF, "   
lv_selstatus_rt  TYPE T130M-PSTAT, "   
lv_transta_rt  TYPE RMMW3-TRANSTA_RT, "   
lv_p_maw1_wpsta  TYPE MAW1-WPSTA, "   
lv_p_msgtyp  TYPE SY-MSGTY, "   
lv_flg_uebernahme  TYPE T130F-KZREF, "   
lv_p_neuflag  TYPE T130F-KZREF. "   

  CALL FUNCTION 'MATERIAL_STATUS_SEQUENCE_RT'  "NOTRANSL: Ermitteln des AKTVSTATUS (Materialart,Selektion,Werksstatus,MARA
    EXPORTING
         P_ATTYP = lv_p_attyp
         SELSTATUS_RT = lv_selstatus_rt
         TRANSTA_RT = lv_transta_rt
         P_MAW1_WPSTA = lv_p_maw1_wpsta
         P_MSGTYP = lv_p_msgtyp
         FLG_UEBERNAHME = lv_flg_uebernahme
         P_NEUFLAG = lv_p_neuflag
    IMPORTING
         P_RCODE = lv_p_rcode
    CHANGING
         P_WARN_LIST = lv_p_warn_list
    EXCEPTIONS
        WRONG_CALL = 1
. " MATERIAL_STATUS_SEQUENCE_RT




ABAP code using 7.40 inline data declarations to call FM MATERIAL_STATUS_SEQUENCE_RT

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 ATTYP FROM RMMW2 INTO @DATA(ld_p_attyp).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_p_rcode).
 
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_p_warn_list).
 
"SELECT single PSTAT FROM T130M INTO @DATA(ld_selstatus_rt).
 
"SELECT single TRANSTA_RT FROM RMMW3 INTO @DATA(ld_transta_rt).
 
"SELECT single WPSTA FROM MAW1 INTO @DATA(ld_p_maw1_wpsta).
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_p_msgtyp).
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_flg_uebernahme).
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_p_neuflag).
 


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!