SAP MBEW_BKLAS_RETAIL Function Module for NOTRANSL: Prüfen Bewertungsklasse Retail-spezifisch









MBEW_BKLAS_RETAIL is a standard mbew bklas 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: Prüfen Bewertungsklasse Retail-spezifisch 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 mbew bklas retail FM, simply by entering the name MBEW_BKLAS_RETAIL into the relevant SAP transaction such as SE37 or SE38.

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



Function MBEW_BKLAS_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 'MBEW_BKLAS_RETAIL'"NOTRANSL: Prüfen Bewertungsklasse Retail-spezifisch
EXPORTING
WMBEW_BKLAS = "Valuation Class
P_AKTYP = "Activity Type
NEUFLAG = "
* P_PS_BKLAS = "
* P_MESSAGE = ' ' "
WMBEW_BWKEY = "
WMBEW_BWTTY = "
WMBEW_BWTAR = "
WMARA_MATNR = "
WMARA_ATTYP = "
LMBEW_BKLAS = "
OMBEW_BKLAS = "
WRMMG1_MTART = "Material Type

IMPORTING
WMBEW_BKLAS = "Valuation Class
P_PS_BKLAS = "

EXCEPTIONS
NO_BKLAS = 1 ERROR_BKLAS = 2 ERROR_NACHRICHT = 3
.



IMPORTING Parameters details for MBEW_BKLAS_RETAIL

WMBEW_BKLAS - Valuation Class

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

P_AKTYP - Activity Type

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

NEUFLAG -

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

P_PS_BKLAS -

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

P_MESSAGE -

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

WMBEW_BWKEY -

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

WMBEW_BWTTY -

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

WMBEW_BWTAR -

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

WMARA_MATNR -

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

WMARA_ATTYP -

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

LMBEW_BKLAS -

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

OMBEW_BKLAS -

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

WRMMG1_MTART - Material Type

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

EXPORTING Parameters details for MBEW_BKLAS_RETAIL

WMBEW_BKLAS - Valuation Class

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

P_PS_BKLAS -

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

EXCEPTIONS details

NO_BKLAS -

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

ERROR_BKLAS -

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

ERROR_NACHRICHT -

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

Copy and paste ABAP code example for MBEW_BKLAS_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:
lv_no_bklas  TYPE STRING, "   
lv_wmbew_bklas  TYPE MBEW-BKLAS, "   
lv_wmbew_bklas  TYPE MBEW-BKLAS, "   
lv_p_aktyp  TYPE T130M-AKTYP, "   
lv_neuflag  TYPE SY-DATAR, "   
lv_p_ps_bklas  TYPE RMMZU-PS_BKLAS, "   
lv_p_message  TYPE RMMG08_012-MSGTYP, "   SPACE
lv_p_ps_bklas  TYPE RMMZU-PS_BKLAS, "   
lv_error_bklas  TYPE RMMZU, "   
lv_wmbew_bwkey  TYPE MBEW-BWKEY, "   
lv_wmbew_bwtty  TYPE MBEW-BWTTY, "   
lv_error_nachricht  TYPE MBEW, "   
lv_wmbew_bwtar  TYPE MBEW-BWTAR, "   
lv_wmara_matnr  TYPE MARA-MATNR, "   
lv_wmara_attyp  TYPE MARA-ATTYP, "   
lv_lmbew_bklas  TYPE MBEW-BKLAS, "   
lv_ombew_bklas  TYPE MBEW-BKLAS, "   
lv_wrmmg1_mtart  TYPE RMMG1-MTART. "   

  CALL FUNCTION 'MBEW_BKLAS_RETAIL'  "NOTRANSL: Prüfen Bewertungsklasse Retail-spezifisch
    EXPORTING
         WMBEW_BKLAS = lv_wmbew_bklas
         P_AKTYP = lv_p_aktyp
         NEUFLAG = lv_neuflag
         P_PS_BKLAS = lv_p_ps_bklas
         P_MESSAGE = lv_p_message
         WMBEW_BWKEY = lv_wmbew_bwkey
         WMBEW_BWTTY = lv_wmbew_bwtty
         WMBEW_BWTAR = lv_wmbew_bwtar
         WMARA_MATNR = lv_wmara_matnr
         WMARA_ATTYP = lv_wmara_attyp
         LMBEW_BKLAS = lv_lmbew_bklas
         OMBEW_BKLAS = lv_ombew_bklas
         WRMMG1_MTART = lv_wrmmg1_mtart
    IMPORTING
         WMBEW_BKLAS = lv_wmbew_bklas
         P_PS_BKLAS = lv_p_ps_bklas
    EXCEPTIONS
        NO_BKLAS = 1
        ERROR_BKLAS = 2
        ERROR_NACHRICHT = 3
. " MBEW_BKLAS_RETAIL




ABAP code using 7.40 inline data declarations to call FM MBEW_BKLAS_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 BKLAS FROM MBEW INTO @DATA(ld_wmbew_bklas).
 
"SELECT single BKLAS FROM MBEW INTO @DATA(ld_wmbew_bklas).
 
"SELECT single AKTYP FROM T130M INTO @DATA(ld_p_aktyp).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_neuflag).
 
"SELECT single PS_BKLAS FROM RMMZU INTO @DATA(ld_p_ps_bklas).
 
"SELECT single MSGTYP FROM RMMG08_012 INTO @DATA(ld_p_message).
DATA(ld_p_message) = ' '.
 
"SELECT single PS_BKLAS FROM RMMZU INTO @DATA(ld_p_ps_bklas).
 
 
"SELECT single BWKEY FROM MBEW INTO @DATA(ld_wmbew_bwkey).
 
"SELECT single BWTTY FROM MBEW INTO @DATA(ld_wmbew_bwtty).
 
 
"SELECT single BWTAR FROM MBEW INTO @DATA(ld_wmbew_bwtar).
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_wmara_matnr).
 
"SELECT single ATTYP FROM MARA INTO @DATA(ld_wmara_attyp).
 
"SELECT single BKLAS FROM MBEW INTO @DATA(ld_lmbew_bklas).
 
"SELECT single BKLAS FROM MBEW INTO @DATA(ld_ombew_bklas).
 
"SELECT single MTART FROM RMMG1 INTO @DATA(ld_wrmmg1_mtart).
 


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!