AFX_CODE_SCANNER is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program searches through the source code of different program objects (reports, function groups and classes) to find the search string(s)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter AFX_CODE_SCANNER into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
CODE_SCANNER - ABAP Search
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: S_REST = Objects
Selection Text: S_DEVC = Packages
Selection Text: P_STRG2 = Search String 2
Selection Text: P_STRG1 = Search String 1
Selection Text: P_PROG = Programs
Selection Text: P_NOHITS = Display Objects Without Hits
Selection Text: P_LRNG = Number of Output Lines
Selection Text: P_FUGR = Function Groups
Selection Text: P_EXCOMM = Ignore Comment Lines
Selection Text: P_EXCL3 = Exclude Search String 3
Selection Text: P_EXCL2 = Exclude Search String 2
Selection Text: P_EXCL1 = Exclude Search String 1
Selection Text: P_EDIT = Open Objects in Edit Mode?
Selection Text: P_CONPCK = Packages Contained
Selection Text: P_CINC = Classes
Title: ABAP Search
Text Symbol: 014 = No Hits
Text Symbol: 013 = Not Found
Text Symbol: 012 = Class
Text Symbol: 011 = FuGr
Text Symbol: 010 = From
Text Symbol: 009 = Report
Text Symbol: 008 = Scan Package
Text Symbol: 006 = Confirmation Prompt
Text Symbol: 005 = Start Scanning Process?
Text Symbol: 004 = You have selected the following number of packages:
Text Symbol: 003 = Objects to Be Scanned
Text Symbol: 002 = Options
Text Symbol: 001 = Search Criteria
INCLUDE AFX_GLOBAL_DATA_PUBLIC.
No SAP DATABASE tables are accessed within this REPORT code!
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = l_tab_all_events.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = l_repid i_internal_tabname = 'G_TAB_LINES' * I_STRUCTURE_NAME = * I_CLIENT_NEVER_DISPLAY = con_true i_inclname = l_repid i_bypassing_buffer = con_true * I_BUFFER_ACTIVE = CHANGING ct_fieldcat = l_tab_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_LIST_DISPLAY *** CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = con_false * I_BYPASSING_BUFFER = con_false * I_BUFFER_ACTIVE = ' ' i_callback_program = l_repid * I_CALLBACK_PF_STATUS_SET = con_false * I_CALLBACK_USER_COMMAND = con_false * I_CALLBACK_TOP_OF_PAGE = con_false * I_CALLBACK_HTML_TOP_OF_PAGE = con_false * I_CALLBACK_HTML_END_OF_LIST = con_false * i_structure_name = con_false * I_BACKGROUND_ID = con_false * I_GRID_TITLE = * I_GRID_SETTINGS = is_layout = l_str_layout it_fieldcat = l_tab_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = it_sort = l_tab_sort * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = con_true i_save = 'A' * IS_VARIANT = it_events = l_tab_events * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = * I_HTML_HEIGHT_TOP = * I_HTML_HEIGHT_END = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = g_tab_lines EXCEPTIONS program_error = 1 OTHERS = 2.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = l_percentage text = l_text.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = l_percentage text = l_text.
STOR_RESOLVE_FUGR CALL FUNCTION 'STOR_RESOLVE_FUGR' EXPORTING is_e071 = l_str_e071 TABLES tt_e071 = l_tab_e071 EXCEPTIONS OTHERS = 0.
SAPGUI_PROGRESS_INDICATOR * CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' * EXPORTING * percentage = l_percentage * text = l_text.
STOR_RESOLVE_CLAS ** CALL FUNCTION 'STOR_RESOLVE_CLAS' ** EXPORTING ** is_e071 = l_str_e071 ** TABLES ** tt_e071 = l_tab_e071 ** EXCEPTIONS ** OTHERS = 0.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = l_percentage text = l_text.
RS_TOOL_ACCESS CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = l_operation object_name = i_objname object_type = 'REPS' * ENCLOSING_OBJECT = * POSITION = con_false position = i_position * DEVCLASS = * INCLUDE = * VERSION = con_false * MONITOR_ACTIVATION = con_true * WB_MANAGER = * IN_NEW_WINDOW = * WITH_OBJECTLIST = con_false * IMPORTING * NEW_NAME = * WB_TODO_REQUEST = * TABLES * OBJLIST = EXCEPTIONS not_executed = 0 invalid_object_type = 0 OTHERS = 0.
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 AFX_CODE_SCANNER or its description.
AFX_CODE_SCANNER - ABAP Search AFX_CODE_SCANNER - ABAP Search AFX_ARCHIVING_TERMINATOR - Interrupt Archiving Run (Parallel Processing) AFX_ARCHIVING_TERMINATOR - Interrupt Archiving Run (Parallel Processing) AFX_ARCHIVINGENGINE - ABAP Archiving Engine - Prototype AFX_ARCHIVINGENGINE - ABAP Archiving Engine - Prototype