SAP MBEW_BWTTY Function Module for NOTRANSL: Prüfen Bewertungstyp









MBEW_BWTTY is a standard mbew bwtty 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 Bewertungstyp 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 bwtty FM, simply by entering the name MBEW_BWTTY into the relevant SAP transaction such as SE37 or SE38.

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



Function MBEW_BWTTY 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_BWTTY'"NOTRANSL: Prüfen Bewertungstyp
EXPORTING
WMBEW_BWTTY = "
WMARC_SERNP = "
WMARC_XCHPF = "
WMARA_XCHPF = "
* WMARA_MTART = "
WRMMG1_MATNR = "
NEUFLAG = "
P_AKTYP = "
* FLG_UEBERNAHME = ' ' "
CHARGEN_EBENE = "
* SPERRMODUS = 'E' "
WMBEW_BWKEY = "
* FLG_RETAIL = ' ' "
WMBEW_BWTAR = "
WMBEW_SALK3 = "
WMBEW_LBKUM = "
* WMBEW_MLMAA = "
* WMBEW_KALN1 = ' ' "
OMBEW_BWTTY = "
WRMMG1_WERKS = "

IMPORTING
WMBEW_BWTTY = "
WMARC_XCHPF = "
WMARA_XCHPF = "

TABLES
P_PTAB = "

EXCEPTIONS
ERROR_BWTTY = 1 SET_ERROR_BWTTY = 2 SPERR_ERROR = 3 ERROR_NACHRICHT = 4
.



IMPORTING Parameters details for MBEW_BWTTY

WMBEW_BWTTY -

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

WMARC_SERNP -

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

WMARC_XCHPF -

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

WMARA_XCHPF -

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

WMARA_MTART -

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

WRMMG1_MATNR -

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

NEUFLAG -

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

P_AKTYP -

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

FLG_UEBERNAHME -

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

CHARGEN_EBENE -

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

SPERRMODUS -

Data type: TVGVI-SPERA
Default: 'E'
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)

FLG_RETAIL -

Data type: RMMG2-FLG_RETAIL
Default: SPACE
Optional: Yes
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)

WMBEW_SALK3 -

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

WMBEW_LBKUM -

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

WMBEW_MLMAA -

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

WMBEW_KALN1 -

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

OMBEW_BWTTY -

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

WRMMG1_WERKS -

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

EXPORTING Parameters details for MBEW_BWTTY

WMBEW_BWTTY -

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

WMARC_XCHPF -

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

WMARA_XCHPF -

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

TABLES Parameters details for MBEW_BWTTY

P_PTAB -

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

EXCEPTIONS details

ERROR_BWTTY -

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

SET_ERROR_BWTTY - Valuation category is not changeable

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

SPERR_ERROR -

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

ERROR_NACHRICHT - Missing table entry

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

Copy and paste ABAP code example for MBEW_BWTTY 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_p_ptab  TYPE STANDARD TABLE OF SPTAP, "   
lv_error_bwtty  TYPE SPTAP, "   
lv_wmbew_bwtty  TYPE MBEW-BWTTY, "   
lv_wmbew_bwtty  TYPE MBEW-BWTTY, "   
lv_wmarc_sernp  TYPE MARC-SERNP, "   
lv_wmarc_xchpf  TYPE MARC-XCHPF, "   
lv_wmara_xchpf  TYPE MARA-XCHPF, "   
lv_wmara_mtart  TYPE MARA-MTART, "   
lv_wrmmg1_matnr  TYPE RMMG1-MATNR, "   
lv_neuflag  TYPE T130F-KZREF, "   
lv_p_aktyp  TYPE T130M-AKTYP, "   
lv_flg_uebernahme  TYPE T130F-KZREF, "   SPACE
lv_chargen_ebene  TYPE RMMG2-CHARGEBENE, "   
lv_sperrmodus  TYPE TVGVI-SPERA, "   'E'
lv_wmarc_xchpf  TYPE MARC-XCHPF, "   
lv_wmbew_bwkey  TYPE MBEW-BWKEY, "   
lv_set_error_bwtty  TYPE MBEW, "   
lv_flg_retail  TYPE RMMG2-FLG_RETAIL, "   SPACE
lv_sperr_error  TYPE RMMG2, "   
lv_wmara_xchpf  TYPE MARA-XCHPF, "   
lv_wmbew_bwtar  TYPE MBEW-BWTAR, "   
lv_wmbew_salk3  TYPE MBEW-SALK3, "   
lv_error_nachricht  TYPE MBEW, "   
lv_wmbew_lbkum  TYPE MBEW-LBKUM, "   
lv_wmbew_mlmaa  TYPE MBEW-MLMAA, "   
lv_wmbew_kaln1  TYPE MBEW-KALN1, "   SPACE
lv_ombew_bwtty  TYPE MBEW-BWTTY, "   
lv_wrmmg1_werks  TYPE RMMG1-WERKS. "   

  CALL FUNCTION 'MBEW_BWTTY'  "NOTRANSL: Prüfen Bewertungstyp
    EXPORTING
         WMBEW_BWTTY = lv_wmbew_bwtty
         WMARC_SERNP = lv_wmarc_sernp
         WMARC_XCHPF = lv_wmarc_xchpf
         WMARA_XCHPF = lv_wmara_xchpf
         WMARA_MTART = lv_wmara_mtart
         WRMMG1_MATNR = lv_wrmmg1_matnr
         NEUFLAG = lv_neuflag
         P_AKTYP = lv_p_aktyp
         FLG_UEBERNAHME = lv_flg_uebernahme
         CHARGEN_EBENE = lv_chargen_ebene
         SPERRMODUS = lv_sperrmodus
         WMBEW_BWKEY = lv_wmbew_bwkey
         FLG_RETAIL = lv_flg_retail
         WMBEW_BWTAR = lv_wmbew_bwtar
         WMBEW_SALK3 = lv_wmbew_salk3
         WMBEW_LBKUM = lv_wmbew_lbkum
         WMBEW_MLMAA = lv_wmbew_mlmaa
         WMBEW_KALN1 = lv_wmbew_kaln1
         OMBEW_BWTTY = lv_ombew_bwtty
         WRMMG1_WERKS = lv_wrmmg1_werks
    IMPORTING
         WMBEW_BWTTY = lv_wmbew_bwtty
         WMARC_XCHPF = lv_wmarc_xchpf
         WMARA_XCHPF = lv_wmara_xchpf
    TABLES
         P_PTAB = lt_p_ptab
    EXCEPTIONS
        ERROR_BWTTY = 1
        SET_ERROR_BWTTY = 2
        SPERR_ERROR = 3
        ERROR_NACHRICHT = 4
. " MBEW_BWTTY




ABAP code using 7.40 inline data declarations to call FM MBEW_BWTTY

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 BWTTY FROM MBEW INTO @DATA(ld_wmbew_bwtty).
 
"SELECT single BWTTY FROM MBEW INTO @DATA(ld_wmbew_bwtty).
 
"SELECT single SERNP FROM MARC INTO @DATA(ld_wmarc_sernp).
 
"SELECT single XCHPF FROM MARC INTO @DATA(ld_wmarc_xchpf).
 
"SELECT single XCHPF FROM MARA INTO @DATA(ld_wmara_xchpf).
 
"SELECT single MTART FROM MARA INTO @DATA(ld_wmara_mtart).
 
"SELECT single MATNR FROM RMMG1 INTO @DATA(ld_wrmmg1_matnr).
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_neuflag).
 
"SELECT single AKTYP FROM T130M INTO @DATA(ld_p_aktyp).
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_flg_uebernahme).
DATA(ld_flg_uebernahme) = ' '.
 
"SELECT single CHARGEBENE FROM RMMG2 INTO @DATA(ld_chargen_ebene).
 
"SELECT single SPERA FROM TVGVI INTO @DATA(ld_sperrmodus).
DATA(ld_sperrmodus) = 'E'.
 
"SELECT single XCHPF FROM MARC INTO @DATA(ld_wmarc_xchpf).
 
"SELECT single BWKEY FROM MBEW INTO @DATA(ld_wmbew_bwkey).
 
 
"SELECT single FLG_RETAIL FROM RMMG2 INTO @DATA(ld_flg_retail).
DATA(ld_flg_retail) = ' '.
 
 
"SELECT single XCHPF FROM MARA INTO @DATA(ld_wmara_xchpf).
 
"SELECT single BWTAR FROM MBEW INTO @DATA(ld_wmbew_bwtar).
 
"SELECT single SALK3 FROM MBEW INTO @DATA(ld_wmbew_salk3).
 
 
"SELECT single LBKUM FROM MBEW INTO @DATA(ld_wmbew_lbkum).
 
"SELECT single MLMAA FROM MBEW INTO @DATA(ld_wmbew_mlmaa).
 
"SELECT single KALN1 FROM MBEW INTO @DATA(ld_wmbew_kaln1).
DATA(ld_wmbew_kaln1) = ' '.
 
"SELECT single BWTTY FROM MBEW INTO @DATA(ld_ombew_bwtty).
 
"SELECT single WERKS FROM RMMG1 INTO @DATA(ld_wrmmg1_werks).
 


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!