SAP MB_READ_GOODS_MOVEMENT_VALUE Function Module for NOTRANSL: Lesen des Werts der Warenbewegung









MB_READ_GOODS_MOVEMENT_VALUE is a standard mb read goods movement value 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: Lesen des Werts der 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 read goods movement value FM, simply by entering the name MB_READ_GOODS_MOVEMENT_VALUE into the relevant SAP transaction such as SE37 or SE38.

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



Function MB_READ_GOODS_MOVEMENT_VALUE 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_READ_GOODS_MOVEMENT_VALUE'"NOTRANSL: Lesen des Werts der Warenbewegung
EXPORTING
MBLNR = "
MJAHR = "Material Document Year
* ZEILE = 0000 "Item in Material Document

IMPORTING
DMBTR = "Amount in Local Currency

TABLES
* DMBTR_TAB = "

EXCEPTIONS
MOVEMENT_NOT_VALUATED_YET = 1 DOCUMENT_NOT_FOUND = 2
.




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_SAPLMBWL_400 call customer function: transfer of details to GR

IMPORTING Parameters details for MB_READ_GOODS_MOVEMENT_VALUE

MBLNR -

Data type: MSEG-MBLNR
Optional: No
Call by Reference: Yes

MJAHR - Material Document Year

Data type: MSEG-MJAHR
Optional: No
Call by Reference: Yes

ZEILE - Item in Material Document

Data type: MSEG-ZEILE
Default: 0000
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for MB_READ_GOODS_MOVEMENT_VALUE

DMBTR - Amount in Local Currency

Data type: MSEG-DMBTR
Optional: No
Call by Reference: Yes

TABLES Parameters details for MB_READ_GOODS_MOVEMENT_VALUE

DMBTR_TAB -

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

EXCEPTIONS details

MOVEMENT_NOT_VALUATED_YET -

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

DOCUMENT_NOT_FOUND -

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

Copy and paste ABAP code example for MB_READ_GOODS_MOVEMENT_VALUE 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_dmbtr  TYPE MSEG-DMBTR, "   
lv_mblnr  TYPE MSEG-MBLNR, "   
lt_dmbtr_tab  TYPE STANDARD TABLE OF MBWO_DMBTR_TAB, "   
lv_movement_not_valuated_yet  TYPE MBWO_DMBTR_TAB, "   
lv_mjahr  TYPE MSEG-MJAHR, "   
lv_document_not_found  TYPE MSEG, "   
lv_zeile  TYPE MSEG-ZEILE. "   0000

  CALL FUNCTION 'MB_READ_GOODS_MOVEMENT_VALUE'  "NOTRANSL: Lesen des Werts der Warenbewegung
    EXPORTING
         MBLNR = lv_mblnr
         MJAHR = lv_mjahr
         ZEILE = lv_zeile
    IMPORTING
         DMBTR = lv_dmbtr
    TABLES
         DMBTR_TAB = lt_dmbtr_tab
    EXCEPTIONS
        MOVEMENT_NOT_VALUATED_YET = 1
        DOCUMENT_NOT_FOUND = 2
. " MB_READ_GOODS_MOVEMENT_VALUE




ABAP code using 7.40 inline data declarations to call FM MB_READ_GOODS_MOVEMENT_VALUE

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 DMBTR FROM MSEG INTO @DATA(ld_dmbtr).
 
"SELECT single MBLNR FROM MSEG INTO @DATA(ld_mblnr).
 
 
 
"SELECT single MJAHR FROM MSEG INTO @DATA(ld_mjahr).
 
 
"SELECT single ZEILE FROM MSEG INTO @DATA(ld_zeile).
DATA(ld_zeile) = 0000.
 


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!