SAP MB_VALUATE_SINGLE_MWOFF Function Module for NOTRANSL: Bewertung einer Warenbewegung









MB_VALUATE_SINGLE_MWOFF is a standard mb valuate single mwoff 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: Bewertung einer Warenbewegung 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 mb valuate single mwoff FM, simply by entering the name MB_VALUATE_SINGLE_MWOFF into the relevant SAP transaction such as SE37 or SE38.

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



Function MB_VALUATE_SINGLE_MWOFF 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 'MB_VALUATE_SINGLE_MWOFF'"NOTRANSL: Bewertung einer Warenbewegung
EXPORTING
V_MBVAL = "Subsequent calculation of value active
V_XWERT = "Generic Type
SPERRVERSUCHE_PO = "Predefined Type
V_SPERRVERSUCHE_MAT = "Predefined Type
WAIT_PO = "Predefined Type
V_WAIT_MAT = "Predefined Type

TABLES
V_XMKPF = "Header: Material Document
* V_YMSEG = "Document Segment: Material
* V_YDM07M = "Dialog Control Fields for Module Pool SAPMM07M
* V_YVM07M = "Fields: Update Control of Module Pool SAPMM07M
* V_XMSEG = "Document Segment: Material
* V_XVM07M = "Fields: Update Control of Module Pool SAPMM07M
* V_YMBUZ = "Line Allocation: Work Document - Material Document

EXCEPTIONS
ENQUEUE_FAILED = 1
.



IMPORTING Parameters details for MB_VALUATE_SINGLE_MWOFF

V_MBVAL - Subsequent calculation of value active

Data type: TCURM-MBVAL
Optional: No
Call by Reference: Yes

V_XWERT - Generic Type

Data type: C
Optional: No
Call by Reference: Yes

SPERRVERSUCHE_PO - Predefined Type

Data type: I
Optional: No
Call by Reference: Yes

V_SPERRVERSUCHE_MAT - Predefined Type

Data type: I
Optional: No
Call by Reference: Yes

WAIT_PO - Predefined Type

Data type: F
Optional: No
Call by Reference: Yes

V_WAIT_MAT - Predefined Type

Data type: F
Optional: No
Call by Reference: Yes

TABLES Parameters details for MB_VALUATE_SINGLE_MWOFF

V_XMKPF - Header: Material Document

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

V_YMSEG - Document Segment: Material

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

V_YDM07M - Dialog Control Fields for Module Pool SAPMM07M

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

V_YVM07M - Fields: Update Control of Module Pool SAPMM07M

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

V_XMSEG - Document Segment: Material

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

V_XVM07M - Fields: Update Control of Module Pool SAPMM07M

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

V_YMBUZ - Line Allocation: Work Document - Material Document

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

EXCEPTIONS details

ENQUEUE_FAILED -

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

Copy and paste ABAP code example for MB_VALUATE_SINGLE_MWOFF 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_v_mbval  TYPE TCURM-MBVAL, "   
lt_v_xmkpf  TYPE STANDARD TABLE OF MKPF, "   
lv_enqueue_failed  TYPE MKPF, "   
lv_v_xwert  TYPE C, "   
lt_v_ymseg  TYPE STANDARD TABLE OF MSEG, "   
lt_v_ydm07m  TYPE STANDARD TABLE OF DM07M, "   
lv_sperrversuche_po  TYPE I, "   
lt_v_yvm07m  TYPE STANDARD TABLE OF VM07M, "   
lv_v_sperrversuche_mat  TYPE I, "   
lt_v_xmseg  TYPE STANDARD TABLE OF MSEG, "   
lv_wait_po  TYPE F, "   
lt_v_xvm07m  TYPE STANDARD TABLE OF VM07M, "   
lv_v_wait_mat  TYPE F, "   
lt_v_ymbuz  TYPE STANDARD TABLE OF MBUZ. "   

  CALL FUNCTION 'MB_VALUATE_SINGLE_MWOFF'  "NOTRANSL: Bewertung einer Warenbewegung
    EXPORTING
         V_MBVAL = lv_v_mbval
         V_XWERT = lv_v_xwert
         SPERRVERSUCHE_PO = lv_sperrversuche_po
         V_SPERRVERSUCHE_MAT = lv_v_sperrversuche_mat
         WAIT_PO = lv_wait_po
         V_WAIT_MAT = lv_v_wait_mat
    TABLES
         V_XMKPF = lt_v_xmkpf
         V_YMSEG = lt_v_ymseg
         V_YDM07M = lt_v_ydm07m
         V_YVM07M = lt_v_yvm07m
         V_XMSEG = lt_v_xmseg
         V_XVM07M = lt_v_xvm07m
         V_YMBUZ = lt_v_ymbuz
    EXCEPTIONS
        ENQUEUE_FAILED = 1
. " MB_VALUATE_SINGLE_MWOFF




ABAP code using 7.40 inline data declarations to call FM MB_VALUATE_SINGLE_MWOFF

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 MBVAL FROM TCURM INTO @DATA(ld_v_mbval).
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!