RM07MBWS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report
If you would like to execute this report or see the full code listing simply enter RM07MBWS into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
MBBS - Display valuated special stock
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.
Selection Text: BWKEY = Valuation Area
Selection Text: BWTAR = Valuation Type
Selection Text: KUNNR = Sold-To Party
Selection Text: MATNR = Material
Selection Text: POSID = WBS Element
Selection Text: POSNR = Sales Document Item
Selection Text: PSPHI = Project Definition
Selection Text: P_GRID = Output List as ALV Grid
Selection Text: P_VARI = Layout
Selection Text: VBELN = Sales Document
Selection Text: SO_LIFNR = D .
Selection Text: SO_SOBKZ = D .
Title: Valuated Sales Order and Project Stock
Text Symbol: 001 = Database Selections
Text Symbol: 002 = Display Options
Text Symbol: 003 = Additional Selections - Valuated Project Stock
Text Symbol: 004 = Additional Selections - Valuated Sales Order Stock
Text Symbol: 005 = Additonal Selections - Valuated Stock of Material for Vendor
INCLUDE: RM07MBWD, " REPORTSPEZIFISCHE DATENDEFINITIONEN
No SAP DATABASE tables are accessed within this REPORT code!
REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING IS_VARIANT = VARIANTE I_SAVE = VARIANT_SAVE * it_default_fieldcat = IMPORTING E_EXIT = VARIANT_EXIT ES_VARIANT = DEF_VARIANTE EXCEPTIONS NOT_FOUND = 2.
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING I_SAVE = VARIANT_SAVE CHANGING CS_VARIANT = DEF_VARIANTE EXCEPTIONS NOT_FOUND = 2.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = repid i_callback_pf_status_set = 'STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = layout it_fieldcat = fieldcat[] i_default = 'X' i_save = 'A' is_variant = variante * IT_EVENTS = is_print = print TABLES t_outtab = gt_ibew[] EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = repid i_callback_pf_status_set = 'STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = layout it_fieldcat = fieldcat[] i_default = 'X' i_save = 'A' is_variant = variante * IT_EVENTS = is_print = print TABLES t_outtab = gt_ibew[] EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING I_SAVE = VARIANT_SAVE CHANGING CS_VARIANT = DEF_VARIANTE.
DD_DOMVALUE_TEXT_GET CALL FUNCTION 'DD_DOMVALUE_TEXT_GET' EXPORTING domname = 'CK_BWST' value = h_value langu = sy-langu IMPORTING dd07v_wa = wa_dd07v.
LVC_FIELDCAT_COMPLETE CALL FUNCTION 'LVC_FIELDCAT_COMPLETE' CHANGING ct_fieldcat = gt_fieldcat_xbew[].
CK_F_ORG_ELEMENTS_PLANT CALL FUNCTION 'CK_F_ORG_ELEMENTS_PLANT' EXPORTING werk = p_werks IMPORTING organisationselemente = orgelmts.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.