SAP MB_SET_FLAG_VALUE_UPDATE Function Module for NOTRANSL: Lesen der Wertesperrtabelle
MB_SET_FLAG_VALUE_UPDATE is a standard mb set flag value update 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 der Wertesperrtabelle 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 set flag value update FM, simply by entering the name MB_SET_FLAG_VALUE_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: MBGB
Program Name: SAPLMBGB
Main Program: SAPLMBGB
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MB_SET_FLAG_VALUE_UPDATE 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_SET_FLAG_VALUE_UPDATE'"NOTRANSL: Lesen der Wertesperrtabelle.
EXPORTING
I_MATBF = "
I_LIFNR = "Vendor's Account Number
I_INS_OBLIG = "
I_BWKEY = "
I_BWTAR = "
I_SOBKZ = "
I_MAT_KDAUF = "
I_MAT_KDPOS = "
I_MAT_PSPNR = "
I_KZBWS = "Valuation of Special Stock
I_XOBEW = "
TABLES
XMBEW = "Blocking Table for Material Values
XEBEW = "Material-Values-Block Table Valuated Sales Order Stock
XQBEW = "Material-Values-Block Table Valuated Project Stock
XOBEW = "
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for MB_SET_FLAG_VALUE_UPDATE
I_MATBF -
Data type: MSEG-MATBFOptional: No
Call by Reference: Yes
I_LIFNR - Vendor's Account Number
Data type: MSEG-LIFNROptional: No
Call by Reference: Yes
I_INS_OBLIG -
Data type: SIBEW-INS_OBLIGOptional: No
Call by Reference: Yes
I_BWKEY -
Data type: VM07M-BWKEYOptional: No
Call by Reference: Yes
I_BWTAR -
Data type: MSEG-BWTAROptional: No
Call by Reference: Yes
I_SOBKZ -
Data type: MSEG-SOBKZOptional: No
Call by Reference: Yes
I_MAT_KDAUF -
Data type: MSEG-MAT_KDAUFOptional: No
Call by Reference: Yes
I_MAT_KDPOS -
Data type: MSEG-MAT_KDPOSOptional: No
Call by Reference: Yes
I_MAT_PSPNR -
Data type: MSEG-MAT_PSPNROptional: No
Call by Reference: Yes
I_KZBWS - Valuation of Special Stock
Data type: MSEG-KZBWSOptional: No
Call by Reference: Yes
I_XOBEW -
Data type: MSEG-XOBEWOptional: No
Call by Reference: Yes
TABLES Parameters details for MB_SET_FLAG_VALUE_UPDATE
XMBEW - Blocking Table for Material Values
Data type: SMBEWOptional: No
Call by Reference: Yes
XEBEW - Material-Values-Block Table Valuated Sales Order Stock
Data type: SEBEWOptional: No
Call by Reference: Yes
XQBEW - Material-Values-Block Table Valuated Project Stock
Data type: SQBEWOptional: No
Call by Reference: Yes
XOBEW -
Data type: SOBEWOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MB_SET_FLAG_VALUE_UPDATE 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_xmbew | TYPE STANDARD TABLE OF SMBEW, " | |||
| lv_i_matbf | TYPE MSEG-MATBF, " | |||
| lv_not_found | TYPE MSEG, " | |||
| lv_i_lifnr | TYPE MSEG-LIFNR, " | |||
| lv_i_ins_oblig | TYPE SIBEW-INS_OBLIG, " | |||
| lt_xebew | TYPE STANDARD TABLE OF SEBEW, " | |||
| lv_i_bwkey | TYPE VM07M-BWKEY, " | |||
| lt_xqbew | TYPE STANDARD TABLE OF SQBEW, " | |||
| lv_i_bwtar | TYPE MSEG-BWTAR, " | |||
| lt_xobew | TYPE STANDARD TABLE OF SOBEW, " | |||
| lv_i_sobkz | TYPE MSEG-SOBKZ, " | |||
| lv_i_mat_kdauf | TYPE MSEG-MAT_KDAUF, " | |||
| lv_i_mat_kdpos | TYPE MSEG-MAT_KDPOS, " | |||
| lv_i_mat_pspnr | TYPE MSEG-MAT_PSPNR, " | |||
| lv_i_kzbws | TYPE MSEG-KZBWS, " | |||
| lv_i_xobew | TYPE MSEG-XOBEW. " |
|   CALL FUNCTION 'MB_SET_FLAG_VALUE_UPDATE' "NOTRANSL: Lesen der Wertesperrtabelle |
| EXPORTING | ||
| I_MATBF | = lv_i_matbf | |
| I_LIFNR | = lv_i_lifnr | |
| I_INS_OBLIG | = lv_i_ins_oblig | |
| I_BWKEY | = lv_i_bwkey | |
| I_BWTAR | = lv_i_bwtar | |
| I_SOBKZ | = lv_i_sobkz | |
| I_MAT_KDAUF | = lv_i_mat_kdauf | |
| I_MAT_KDPOS | = lv_i_mat_kdpos | |
| I_MAT_PSPNR | = lv_i_mat_pspnr | |
| I_KZBWS | = lv_i_kzbws | |
| I_XOBEW | = lv_i_xobew | |
| TABLES | ||
| XMBEW | = lt_xmbew | |
| XEBEW | = lt_xebew | |
| XQBEW | = lt_xqbew | |
| XOBEW | = lt_xobew | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " MB_SET_FLAG_VALUE_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM MB_SET_FLAG_VALUE_UPDATE
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 MATBF FROM MSEG INTO @DATA(ld_i_matbf). | ||||
| "SELECT single LIFNR FROM MSEG INTO @DATA(ld_i_lifnr). | ||||
| "SELECT single INS_OBLIG FROM SIBEW INTO @DATA(ld_i_ins_oblig). | ||||
| "SELECT single BWKEY FROM VM07M INTO @DATA(ld_i_bwkey). | ||||
| "SELECT single BWTAR FROM MSEG INTO @DATA(ld_i_bwtar). | ||||
| "SELECT single SOBKZ FROM MSEG INTO @DATA(ld_i_sobkz). | ||||
| "SELECT single MAT_KDAUF FROM MSEG INTO @DATA(ld_i_mat_kdauf). | ||||
| "SELECT single MAT_KDPOS FROM MSEG INTO @DATA(ld_i_mat_kdpos). | ||||
| "SELECT single MAT_PSPNR FROM MSEG INTO @DATA(ld_i_mat_pspnr). | ||||
| "SELECT single KZBWS FROM MSEG INTO @DATA(ld_i_kzbws). | ||||
| "SELECT single XOBEW FROM MSEG INTO @DATA(ld_i_xobew). | ||||
Search for further information about these or an SAP related objects