SAP Reports / Programs | Materials Management | Inventory Management(MM-IM) SAP MM

MBLABSTS SAP ABAP Report - MBLABSTS: Lean Analysis for Both Stocks







MBLABSTS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter MBLABSTS into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT MBLABSTS. "Basic submit
SUBMIT MBLABSTS AND RETURN. "Return to original report after report execution complete
SUBMIT MBLABSTS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PA_SHCUT = Include Shortcut Function
Selection Text: PA_PLANT = Plant
Selection Text: PA_MSEG3 = MSEG - BWTTY/BWTAR Check
Selection Text: PA_MSEG2 = MSEG - XCHPF/CHARG Check
Selection Text: PA_MSEG = MSEG - MENGU/WERTU Check
Selection Text: PA_MATNR = Material Number
Selection Text: PA_HIDE = Hide Empty Tables in Output
Selection Text: PA_CHZER = Show Zero Stocks
Selection Text: PA_CHVSU = OBEW - Val. Subcontracting St.
Selection Text: PA_CHVSA = EBEW- Valuated Sales Order St.
Selection Text: PA_CHVPR = QBEW - Valuated Project Stocks
Selection Text: PA_CHPRO = MSSQ/MSPR - Project Stocks
Selection Text: PA_CHOTH = MSSL/MSLB/MSKU/MKOL- Other St.
Selection Text: PA_CHCUS = MSSA/MSKA - Sales Order Stocks
Selection Text: PA_CHBAT = MCHB - Batch Stocks
Title: MBLABSTS: Lean Analysis for Both Stocks
Text Symbol: 010 = Table is empty
Text Symbol: 008 = Select only hotspots.
Text Symbol: 006 = Check checkbox on selection screen for preview.
Text Symbol: 005 = Additional Features
Text Symbol: 004 = Plant
Text Symbol: 003 = Material No.
Text Symbol: 002 = Add the following stock tables to the output:
Text Symbol: 001 = Input Parameter


INCLUDES used within this REPORT MBLABSTS

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

VALUE_ARTICLE_FIND_NEW

VALUE_ARTICLE_FIND_NEW *Call function 'VALUE_ARTICLE_FIND_NEW' to get WAART *(indicator whether or not it is an value-only material) CALL FUNCTION 'VALUE_ARTICLE_FIND_NEW' EXPORTING i_matnr = pa_matnr i_werks = pa_plant * i_bwkey = i_kzrfb = '' i_maxtz = 0 i_kzrmw = '' * i_matkl = IMPORTING e_matnr = ls_matinfo-matnr e_waart = ls_matinfo-waart e_bwkey = ls_matinfo-bwkey e_mtart = ls_matinfo-mtart.

MB_ADD_TRANSFER_QUANTITY CALL FUNCTION 'MB_ADD_TRANSFER_QUANTITY' EXPORTING cumulate = 'X' * I_CROSS_COMPANY = 'X' i_non_cross_company = 'X' TABLES xmatnr = xmatnr xwerks = xwerks * XRESWK = * XSOBKZ = * XPSTYP = * XELIKZ = * XLOEKZ = xtab6 = xtab6 * XBERID = * XLGORT = * XRESBI = * XRESLO = .

CONVERSION_EXIT_ABPSP_INPUT * CALL FUNCTION 'CONVERSION_EXIT_ABPSP_INPUT' * EXPORTING * input = lv_pspnr_new * IMPORTING * output = lv_pspnr_new.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'MARA' fieldname = 'MTART' langu = sy-langu lfieldname = 'MTART' IMPORTING label = gv_expl.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'MARA' fieldname = 'ATTYP' langu = sy-langu lfieldname = 'ATTYP' IMPORTING label = gv_expl.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'T001K' fieldname = 'BUKRS' langu = sy-langu lfieldname = 'BUKRS' IMPORTING label = gv_expl.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'T001W' fieldname = 'BWKEY' langu = sy-langu lfieldname = 'BWKEY' IMPORTING label = gv_expl.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'MARC' fieldname = 'XCHAR' langu = sy-langu lfieldname = 'XCHAR' IMPORTING label = gv_expl.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'MARC' fieldname = 'BWTTY' langu = sy-langu lfieldname = 'BWTTY' IMPORTING label = gv_expl.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'MARC' fieldname = 'XCHPF' langu = sy-langu lfieldname = 'XCHPF' IMPORTING label = gv_expl.

DDIF_DOMA_GET CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = 'KZDCH' state = 'A' langu = sy-langu IMPORTING dd01v_wa = gv_dd01v TABLES dd07v_tab = gv_dd07v.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'T149C' fieldname = 'KZBAA' langu = sy-langu lfieldname = 'KZBAA' IMPORTING label = gv_expl.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'T134M' fieldname = 'MENGU' langu = sy-langu lfieldname = 'MENGU' IMPORTING label = gv_expl.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'T134M' fieldname = 'WERTU' langu = sy-langu lfieldname = 'WERTU' IMPORTING label = gv_expl.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'MARC' fieldname = 'SERNP' langu = sy-langu lfieldname = 'SERNP' IMPORTING label = gv_expl.

DDIF_DOMA_GET CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = 'SERLV' state = 'A' langu = sy-langu IMPORTING dd01v_wa = gv_dd01v TABLES dd07v_tab = gv_dd07v.

DDIF_FIELDLABEL_GET CALL FUNCTION 'DDIF_FIELDLABEL_GET' EXPORTING tabname = 'MBEW' fieldname = 'MLMAA' langu = sy-langu lfieldname = 'MLMAA' IMPORTING label = gv_expl.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name MBLABSTS or its description.