SAP MB_ADD_VAL_BLOCKED_GR_STOCK Function Module for NOTRANSL: Lesen und Addieren bewerteter WE-Sperrbestand









MB_ADD_VAL_BLOCKED_GR_STOCK is a standard mb add val blocked gr stock 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 und Addieren bewerteter WE-Sperrbestand 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 add val blocked gr stock FM, simply by entering the name MB_ADD_VAL_BLOCKED_GR_STOCK into the relevant SAP transaction such as SE37 or SE38.

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



Function MB_ADD_VAL_BLOCKED_GR_STOCK 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_ADD_VAL_BLOCKED_GR_STOCK'"NOTRANSL: Lesen und Addieren bewerteter WE-Sperrbestand
EXPORTING
I_LOEKZ = "Display deleted purchase orders too
I_WI_ST = "
I_NO_ST = "Materials Without Valuated GR Blocked Stock
I_KNTTP = "Also Select Purchase Order Items with Account Assignment
I_CONDENSE = "
I_WIORA = "Purchase Order History with Origin Acceptance
I_NOORA = "Purchase Order History Without Origin Acceptance
I_WITHB = "Also Select Completely Accepted Purchase Order Items
* I_ELIKZ = "

TABLES
T_RA_MATNR = "
* T_RA_NDTGR = "
* T_RA_NDTRL = "
T_RESULT = "Structure Interface Valuated GR Blocked Stock
T_RA_WERKS = "
* T_RA_LIFNR = "
* T_RA_EKGRP = "
* T_RA_EKORG = "
* T_RA_EBELN = "
* T_RA_EBELP = "
* T_RA_WDTAC = "
* T_RA_WDTDL = "

EXCEPTIONS
PARAMETER_ERROR = 1 MISSING_AUTHORIZATION = 2
.



IMPORTING Parameters details for MB_ADD_VAL_BLOCKED_GR_STOCK

I_LOEKZ - Display deleted purchase orders too

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

I_WI_ST -

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

I_NO_ST - Materials Without Valuated GR Blocked Stock

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

I_KNTTP - Also Select Purchase Order Items with Account Assignment

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

I_CONDENSE -

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

I_WIORA - Purchase Order History with Origin Acceptance

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

I_NOORA - Purchase Order History Without Origin Acceptance

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

I_WITHB - Also Select Completely Accepted Purchase Order Items

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

I_ELIKZ -

Data type: XFELD
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for MB_ADD_VAL_BLOCKED_GR_STOCK

T_RA_MATNR -

Data type:
Optional: No
Call by Reference: Yes

T_RA_NDTGR -

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_NDTRL -

Data type:
Optional: Yes
Call by Reference: Yes

T_RESULT - Structure Interface Valuated GR Blocked Stock

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

T_RA_WERKS -

Data type:
Optional: No
Call by Reference: Yes

T_RA_LIFNR -

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_EKGRP -

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_EKORG -

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_EBELN -

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_EBELP -

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_WDTAC -

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_WDTDL -

Data type:
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

PARAMETER_ERROR - Parameter Error

Data type:
Optional: No
Call by Reference: Yes

MISSING_AUTHORIZATION - Authorization missing

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MB_ADD_VAL_BLOCKED_GR_STOCK 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_i_loekz  TYPE ALSO_DELETED_D, "   
lt_t_ra_matnr  TYPE STANDARD TABLE OF ALSO_DELETED_D, "   
lv_parameter_error  TYPE ALSO_DELETED_D, "   
lt_t_ra_ndtgr  TYPE STANDARD TABLE OF ALSO_DELETED_D, "   
lt_t_ra_ndtrl  TYPE STANDARD TABLE OF ALSO_DELETED_D, "   
lt_t_result  TYPE STANDARD TABLE OF MB5OA, "   
lv_i_wi_st  TYPE MB5OA_WI_ST, "   
lt_t_ra_werks  TYPE STANDARD TABLE OF MB5OA_WI_ST, "   
lv_missing_authorization  TYPE MB5OA_WI_ST, "   
lv_i_no_st  TYPE MB5OA_NO_ST, "   
lt_t_ra_lifnr  TYPE STANDARD TABLE OF MB5OA_NO_ST, "   
lv_i_knttp  TYPE MB5OA_KNTTP, "   
lt_t_ra_ekgrp  TYPE STANDARD TABLE OF MB5OA_KNTTP, "   
lv_i_condense  TYPE XFELD, "   
lt_t_ra_ekorg  TYPE STANDARD TABLE OF XFELD, "   
lv_i_wiora  TYPE MB5OA_WIORA, "   
lt_t_ra_ebeln  TYPE STANDARD TABLE OF MB5OA_WIORA, "   
lv_i_noora  TYPE MB5OA_NOORA, "   
lt_t_ra_ebelp  TYPE STANDARD TABLE OF MB5OA_NOORA, "   
lv_i_withb  TYPE MB5OA_WITHB, "   
lt_t_ra_wdtac  TYPE STANDARD TABLE OF MB5OA_WITHB, "   
lv_i_elikz  TYPE XFELD, "   
lt_t_ra_wdtdl  TYPE STANDARD TABLE OF XFELD. "   

  CALL FUNCTION 'MB_ADD_VAL_BLOCKED_GR_STOCK'  "NOTRANSL: Lesen und Addieren bewerteter WE-Sperrbestand
    EXPORTING
         I_LOEKZ = lv_i_loekz
         I_WI_ST = lv_i_wi_st
         I_NO_ST = lv_i_no_st
         I_KNTTP = lv_i_knttp
         I_CONDENSE = lv_i_condense
         I_WIORA = lv_i_wiora
         I_NOORA = lv_i_noora
         I_WITHB = lv_i_withb
         I_ELIKZ = lv_i_elikz
    TABLES
         T_RA_MATNR = lt_t_ra_matnr
         T_RA_NDTGR = lt_t_ra_ndtgr
         T_RA_NDTRL = lt_t_ra_ndtrl
         T_RESULT = lt_t_result
         T_RA_WERKS = lt_t_ra_werks
         T_RA_LIFNR = lt_t_ra_lifnr
         T_RA_EKGRP = lt_t_ra_ekgrp
         T_RA_EKORG = lt_t_ra_ekorg
         T_RA_EBELN = lt_t_ra_ebeln
         T_RA_EBELP = lt_t_ra_ebelp
         T_RA_WDTAC = lt_t_ra_wdtac
         T_RA_WDTDL = lt_t_ra_wdtdl
    EXCEPTIONS
        PARAMETER_ERROR = 1
        MISSING_AUTHORIZATION = 2
. " MB_ADD_VAL_BLOCKED_GR_STOCK




ABAP code using 7.40 inline data declarations to call FM MB_ADD_VAL_BLOCKED_GR_STOCK

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!