SAP Function Modules

MB_UPDATE_VALUE_ENQUEUE_TAB_LB SAP Function module







MB_UPDATE_VALUE_ENQUEUE_TAB_LB is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name MB_UPDATE_VALUE_ENQUEUE_TAB_LB into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: MBGB
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM MB_UPDATE_VALUE_ENQUEUE_TAB_LB - MB UPDATE VALUE ENQUEUE TAB LB





CALL FUNCTION 'MB_UPDATE_VALUE_ENQUEUE_TAB_LB' "
  EXPORTING
    aktyp =                     "
    dm07m =                     " dm07m         Dialog Control Fields for Module Pool SAPMM07M
    mkpf =                      " mkpf          Header: Material Document
    mseg =                      " mseg          Document Segment: Material
    vm07m =                     " vm07m         Fields: Update Control of Module Pool SAPMM07M
  IMPORTING
    dm07m =                     " dm07m         Dialog Control Fields for Module Pool SAPMM07M
    upd_um03b =                 "
    vkwrt =                     " mseg-vkwrt    Value at Sales Prices Including Value-Added Tax
    vkwra =                     " mseg-vkwra    Value at sales prices excluding value-added tax
  TABLES
    x156w =                     " t156w         Posting string values
    xekbn =                     " sekbn         Blocking Table for Delivery Cost Values
    xekbv =                     " sekbv         Delivery Costs: Previous Values
    xeklb =                     " seklb         Lock Table: "Mat. to be Provided" Item for Order Item
    xekls =                     " sekls         Lock Table: "Mat. Provided" Items in Goods Receipt
    xekws =                     " sekws         Lock Table for Purchasing Document Values
    xfaws =                     " sfaws         Order Values Lock Table
    xfawv =                     " sfawv         Production order value lock table - previous values
    xmbew =                     " smbew         Blocking Table for Material Values
    xzcxcb =                    " zcxcb         Output Fields: SAPLMBGB, Delivery Costs
    xzcxcm =                    " zcxcm         Output Fields SAPLMBGB
    yekbnk =                    " ekbnk         Purchasing Fields, Inventory Management, Delivery Costs
*   yekbnk_cr =                 " ekbnk_cr      Purchasing Fields: Inventory Mgmt. Deliv. Costs (Currencies)
*   yebefu_cr =                 " ebefu_cr      Purchasing Fields in Inventory Management (Currencies)
*   yfbefu_cr =                 " fbefu_cr      Production order fields inventory management (currency)
    xebew =                     " sebew         Material-Values-Block Table Valuated Sales Order Stock
    xqbew =                     " sqbew         Material-Values-Block Table Valuated Project Stock
    xobew =                     " sobew
*   xekwv =                     " sekwv         Purchasing Document-Values-Block Table Previous Values
    .  "  MB_UPDATE_VALUE_ENQUEUE_TAB_LB

ABAP code example for Function Module MB_UPDATE_VALUE_ENQUEUE_TAB_LB





The ABAP code below is a full code listing to execute function module MB_UPDATE_VALUE_ENQUEUE_TAB_LB including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_dm07m  TYPE DM07M ,
ld_upd_um03b  TYPE STRING ,
ld_vkwrt  TYPE MSEG-VKWRT ,
ld_vkwra  TYPE MSEG-VKWRA ,
it_x156w  TYPE STANDARD TABLE OF T156W,"TABLES PARAM
wa_x156w  LIKE LINE OF it_x156w ,
it_xekbn  TYPE STANDARD TABLE OF SEKBN,"TABLES PARAM
wa_xekbn  LIKE LINE OF it_xekbn ,
it_xekbv  TYPE STANDARD TABLE OF SEKBV,"TABLES PARAM
wa_xekbv  LIKE LINE OF it_xekbv ,
it_xeklb  TYPE STANDARD TABLE OF SEKLB,"TABLES PARAM
wa_xeklb  LIKE LINE OF it_xeklb ,
it_xekls  TYPE STANDARD TABLE OF SEKLS,"TABLES PARAM
wa_xekls  LIKE LINE OF it_xekls ,
it_xekws  TYPE STANDARD TABLE OF SEKWS,"TABLES PARAM
wa_xekws  LIKE LINE OF it_xekws ,
it_xfaws  TYPE STANDARD TABLE OF SFAWS,"TABLES PARAM
wa_xfaws  LIKE LINE OF it_xfaws ,
it_xfawv  TYPE STANDARD TABLE OF SFAWV,"TABLES PARAM
wa_xfawv  LIKE LINE OF it_xfawv ,
it_xmbew  TYPE STANDARD TABLE OF SMBEW,"TABLES PARAM
wa_xmbew  LIKE LINE OF it_xmbew ,
it_xzcxcb  TYPE STANDARD TABLE OF ZCXCB,"TABLES PARAM
wa_xzcxcb  LIKE LINE OF it_xzcxcb ,
it_xzcxcm  TYPE STANDARD TABLE OF ZCXCM,"TABLES PARAM
wa_xzcxcm  LIKE LINE OF it_xzcxcm ,
it_yekbnk  TYPE STANDARD TABLE OF EKBNK,"TABLES PARAM
wa_yekbnk  LIKE LINE OF it_yekbnk ,
it_yekbnk_cr  TYPE STANDARD TABLE OF EKBNK_CR,"TABLES PARAM
wa_yekbnk_cr  LIKE LINE OF it_yekbnk_cr ,
it_yebefu_cr  TYPE STANDARD TABLE OF EBEFU_CR,"TABLES PARAM
wa_yebefu_cr  LIKE LINE OF it_yebefu_cr ,
it_yfbefu_cr  TYPE STANDARD TABLE OF FBEFU_CR,"TABLES PARAM
wa_yfbefu_cr  LIKE LINE OF it_yfbefu_cr ,
it_xebew  TYPE STANDARD TABLE OF SEBEW,"TABLES PARAM
wa_xebew  LIKE LINE OF it_xebew ,
it_xqbew  TYPE STANDARD TABLE OF SQBEW,"TABLES PARAM
wa_xqbew  LIKE LINE OF it_xqbew ,
it_xobew  TYPE STANDARD TABLE OF SOBEW,"TABLES PARAM
wa_xobew  LIKE LINE OF it_xobew ,
it_xekwv  TYPE STANDARD TABLE OF SEKWV,"TABLES PARAM
wa_xekwv  LIKE LINE OF it_xekwv .

DATA(ld_aktyp) = 'some text here'.
DATA(ld_dm07m) = 'Check type of data required'.
DATA(ld_mkpf) = 'Check type of data required'.
DATA(ld_mseg) = 'Check type of data required'.
DATA(ld_vm07m) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x156w to it_x156w.

"populate fields of struture and append to itab
append wa_xekbn to it_xekbn.

"populate fields of struture and append to itab
append wa_xekbv to it_xekbv.

"populate fields of struture and append to itab
append wa_xeklb to it_xeklb.

"populate fields of struture and append to itab
append wa_xekls to it_xekls.

"populate fields of struture and append to itab
append wa_xekws to it_xekws.

"populate fields of struture and append to itab
append wa_xfaws to it_xfaws.

"populate fields of struture and append to itab
append wa_xfawv to it_xfawv.

"populate fields of struture and append to itab
append wa_xmbew to it_xmbew.

"populate fields of struture and append to itab
append wa_xzcxcb to it_xzcxcb.

"populate fields of struture and append to itab
append wa_xzcxcm to it_xzcxcm.

"populate fields of struture and append to itab
append wa_yekbnk to it_yekbnk.

"populate fields of struture and append to itab
append wa_yekbnk_cr to it_yekbnk_cr.

"populate fields of struture and append to itab
append wa_yebefu_cr to it_yebefu_cr.

"populate fields of struture and append to itab
append wa_yfbefu_cr to it_yfbefu_cr.

"populate fields of struture and append to itab
append wa_xebew to it_xebew.

"populate fields of struture and append to itab
append wa_xqbew to it_xqbew.

"populate fields of struture and append to itab
append wa_xobew to it_xobew.

"populate fields of struture and append to itab
append wa_xekwv to it_xekwv. . CALL FUNCTION 'MB_UPDATE_VALUE_ENQUEUE_TAB_LB' EXPORTING aktyp = ld_aktyp dm07m = ld_dm07m mkpf = ld_mkpf mseg = ld_mseg vm07m = ld_vm07m IMPORTING dm07m = ld_dm07m upd_um03b = ld_upd_um03b vkwrt = ld_vkwrt vkwra = ld_vkwra TABLES x156w = it_x156w xekbn = it_xekbn xekbv = it_xekbv xeklb = it_xeklb xekls = it_xekls xekws = it_xekws xfaws = it_xfaws xfawv = it_xfawv xmbew = it_xmbew xzcxcb = it_xzcxcb xzcxcm = it_xzcxcm yekbnk = it_yekbnk * yekbnk_cr = it_yekbnk_cr * yebefu_cr = it_yebefu_cr * yfbefu_cr = it_yfbefu_cr xebew = it_xebew xqbew = it_xqbew xobew = it_xobew * xekwv = it_xekwv . " MB_UPDATE_VALUE_ENQUEUE_TAB_LB
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_dm07m  TYPE DM07M ,
ld_aktyp  TYPE STRING ,
it_x156w  TYPE STANDARD TABLE OF T156W ,
wa_x156w  LIKE LINE OF it_x156w,
ld_upd_um03b  TYPE STRING ,
ld_dm07m  TYPE DM07M ,
it_xekbn  TYPE STANDARD TABLE OF SEKBN ,
wa_xekbn  LIKE LINE OF it_xekbn,
ld_vkwrt  TYPE MSEG-VKWRT ,
ld_mkpf  TYPE MKPF ,
it_xekbv  TYPE STANDARD TABLE OF SEKBV ,
wa_xekbv  LIKE LINE OF it_xekbv,
ld_vkwra  TYPE MSEG-VKWRA ,
ld_mseg  TYPE MSEG ,
it_xeklb  TYPE STANDARD TABLE OF SEKLB ,
wa_xeklb  LIKE LINE OF it_xeklb,
it_xekls  TYPE STANDARD TABLE OF SEKLS ,
wa_xekls  LIKE LINE OF it_xekls,
ld_vm07m  TYPE VM07M ,
it_xekws  TYPE STANDARD TABLE OF SEKWS ,
wa_xekws  LIKE LINE OF it_xekws,
it_xfaws  TYPE STANDARD TABLE OF SFAWS ,
wa_xfaws  LIKE LINE OF it_xfaws,
it_xfawv  TYPE STANDARD TABLE OF SFAWV ,
wa_xfawv  LIKE LINE OF it_xfawv,
it_xmbew  TYPE STANDARD TABLE OF SMBEW ,
wa_xmbew  LIKE LINE OF it_xmbew,
it_xzcxcb  TYPE STANDARD TABLE OF ZCXCB ,
wa_xzcxcb  LIKE LINE OF it_xzcxcb,
it_xzcxcm  TYPE STANDARD TABLE OF ZCXCM ,
wa_xzcxcm  LIKE LINE OF it_xzcxcm,
it_yekbnk  TYPE STANDARD TABLE OF EKBNK ,
wa_yekbnk  LIKE LINE OF it_yekbnk,
it_yekbnk_cr  TYPE STANDARD TABLE OF EKBNK_CR ,
wa_yekbnk_cr  LIKE LINE OF it_yekbnk_cr,
it_yebefu_cr  TYPE STANDARD TABLE OF EBEFU_CR ,
wa_yebefu_cr  LIKE LINE OF it_yebefu_cr,
it_yfbefu_cr  TYPE STANDARD TABLE OF FBEFU_CR ,
wa_yfbefu_cr  LIKE LINE OF it_yfbefu_cr,
it_xebew  TYPE STANDARD TABLE OF SEBEW ,
wa_xebew  LIKE LINE OF it_xebew,
it_xqbew  TYPE STANDARD TABLE OF SQBEW ,
wa_xqbew  LIKE LINE OF it_xqbew,
it_xobew  TYPE STANDARD TABLE OF SOBEW ,
wa_xobew  LIKE LINE OF it_xobew,
it_xekwv  TYPE STANDARD TABLE OF SEKWV ,
wa_xekwv  LIKE LINE OF it_xekwv.

ld_aktyp = 'some text here'.

"populate fields of struture and append to itab
append wa_x156w to it_x156w.
ld_dm07m = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xekbn to it_xekbn.
ld_mkpf = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xekbv to it_xekbv.
ld_mseg = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xeklb to it_xeklb.

"populate fields of struture and append to itab
append wa_xekls to it_xekls.
ld_vm07m = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xekws to it_xekws.

"populate fields of struture and append to itab
append wa_xfaws to it_xfaws.

"populate fields of struture and append to itab
append wa_xfawv to it_xfawv.

"populate fields of struture and append to itab
append wa_xmbew to it_xmbew.

"populate fields of struture and append to itab
append wa_xzcxcb to it_xzcxcb.

"populate fields of struture and append to itab
append wa_xzcxcm to it_xzcxcm.

"populate fields of struture and append to itab
append wa_yekbnk to it_yekbnk.

"populate fields of struture and append to itab
append wa_yekbnk_cr to it_yekbnk_cr.

"populate fields of struture and append to itab
append wa_yebefu_cr to it_yebefu_cr.

"populate fields of struture and append to itab
append wa_yfbefu_cr to it_yfbefu_cr.

"populate fields of struture and append to itab
append wa_xebew to it_xebew.

"populate fields of struture and append to itab
append wa_xqbew to it_xqbew.

"populate fields of struture and append to itab
append wa_xobew to it_xobew.

"populate fields of struture and append to itab
append wa_xekwv to it_xekwv.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name MB_UPDATE_VALUE_ENQUEUE_TAB_LB or its description.