MB01WERK 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 MB01WERK into the relevant SAP transactions such as SE38 or SE80
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: XAUTH_NO = Authorization
Selection Text: WERKS = Plants
Selection Text: VWERK = Plant
Selection Text: USNAM = Changed by
Selection Text: TCODE = Transaction code
Selection Text: SELKEY = Selection
Selection Text: NAME1 = Name
Selection Text: KOART = Account Type
Selection Text: FUNCL = ?...(FUNCL)
Selection Text: FNAME = Field name
Selection Text: DYNCL = ?...(DYNCL)
Selection Text: DATUM = From change date
Selection Text: CALLD = Call
Title: Site Master Record Changes
Text Symbol: W03 = Receiving Point
Text Symbol: W02 = Material group
Text Symbol: W01 = Department
Text Symbol: T05 = Change document
Text Symbol: T04 = Overview
Text Symbol: T03 = Deletions
Text Symbol: T02 = Entries
Text Symbol: T01 = Changed Fields
Text Symbol: 210 = Date Field New Old
Text Symbol: 206 = Plant:
Text Symbol: 204 = Field
Text Symbol: 203 = User
Text Symbol: 202 = Time
Text Symbol: 201 = Date
Text Symbol: 001 = Customer Changes
Text Symbol: 010 = Language
Text Symbol: 013 = Division
Text Symbol: 103 = From
Text Symbol: 104 = To
Text Symbol: 105 = Changed in $1 $2 $3 $4 $5 $6
Text Symbol: 107 = *** Created ***
Text Symbol: 108 = *** Deleted ***
Text Symbol: 109 = Change document
Text Symbol: 114 = Date Entered Object Key
INCLUDE MB01ADAT.
INCLUDE MB01ASEL.
No SAP DATABASE tables are accessed within this REPORT code!
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid is_layout = ls_layout it_fieldcat = lt_fieldcat i_save = gc_save it_events = lt_events IMPORTING ES_EXIT_CAUSED_BY_USER = gs_user_command TABLES t_outtab =
"gt_output_feldtab EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid is_layout = ls_layout it_fieldcat = lt_fieldcat i_save = gc_save it_events = lt_events IMPORTING ES_EXIT_CAUSED_BY_USER = gs_user_command TABLES t_outtab =
"gt_output_feldtab EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = g_repid I_INTERNAL_TABNAME =
I_STRUCTURE_NAME = CHANGING CT_FIELDCAT = xt_fieldcat EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid is_layout = ls_layout it_fieldcat = lt_fieldcat i_save = gc_save I_CALLBACK_PF_STATUS_SET = gc_set_pf_status_1 I_CALLBACK_TOP_OF_PAGE = gc_topofpage2 I_SCREEN_START_COLUMN = GC_SC1 "WINDOW_SPALTE_ANFANG1 I_SCREEN_START_LINE = GC_SL1 "WINDOW_ZEILE_ANFANG1 I_SCREEN_END_COLUMN = GC_EC1 "WINDOW_SPALTE_ENDE1 I_SCREEN_END_LINE = GC_EL1 "WINDOW_ZEILE_ENDE1 TABLES t_outtab =
"gt_output_feldtab EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page_1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.