WSUBST_SWITCHDAT_REORG is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report reorganizes the table WSUBST_SWITCHDAT...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 WSUBST_SWITCHDAT_REORG into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
WSUBST_SWITCH_REORG - Reorganization of Switchover Info
FRE51 - Reorganization Switchover Info
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: R_LIST = Display Switchover Information
Selection Text: S_APPL = Application Indicator
Selection Text: S_DATE_S = D .
Selection Text: S_EBELN = D .
Selection Text: S_MATNRO = D .
Selection Text: S_MATNRS = D .
Selection Text: S_RWERK = D .
Title: Reorganization of Table for Switchover Information
Text Symbol: 001 = Program Defaults
Text Symbol: 002 = Display Switchover Information
Text Symbol: 003 = Reorganize Switchover Information
Text Symbol: 004 = Application Indicator
Text Symbol: 005 = Display Sent Switchover
Text Symbol: E01 = Error during database selection
Text Symbol: E02 = Processing error while reorganizing
Text Symbol: E03 = No data selected
Text Symbol: E04 = Business function is not active
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
RS_SUPPORT_SELECTIONS CALL FUNCTION 'RS_SUPPORT_SELECTIONS' EXPORTING report = g_repid variant = 'DEFAULT' EXCEPTIONS variant_not_existent = 1 variant_obsolete = 2 OTHERS = 3.
WSUBST_SWITCH_DB_READ CALL FUNCTION 'WSUBST_SWITCH_DB_READ' EXPORTING IS_CONTROL = ls_control_db_read * IT_SUBST_CTRL_RANGE = IT_REC_SITE_RANGE = pt_rwerk IT_MATNR_ORIG_RANGE = pt_matnro IT_MATNR_SUBST_RANGE = pt_matnrs IT_SUBST_DATE_RANGE = pt_date_s * IT_LIFNR_RANGE = * IT_SUP_PLANT_RANGE = * IT_SWITCH_KEY = IT_SUBST_APPL = pt_appl IT_EBELN_RANGE = pt_ebeln IMPORTING ET_SWITCHDAT = ct_switchdat EP_DBCOUNT = c_dbcount EXCEPTIONS DB_ERROR = 1 OTHERS = 2.
WSUBST_SWITCH_DB_REORG CALL FUNCTION 'WSUBST_SWITCH_DB_REORG' EXPORTING IT_SUBST_APPL = pt_appl IMPORTING ET_SWITCHDAT = ct_switchdat EP_DBCOUNT = c_dbcount EXCEPTIONS DB_ERROR = 1 ENQUEUE_ERROR = 2 PROCESSING_ERROR = 3 OTHERS = 4.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING * I_PROGRAM_NAME = * I_INTERNAL_TABNAME = I_STRUCTURE_NAME = l_structure * I_CLIENT_NEVER_DISPLAY = 'X' * I_INCLNAME = I_BYPASSING_BUFFER = 'X' * I_BUFFER_ACTIVE = * I_MODE = CHANGING CT_FIELDCAT = lt_fieldcat EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = 'X' I_BYPASSING_BUFFER = 'X' * I_BUFFER_ACTIVE = ' ' I_CALLBACK_PROGRAM = g_repid * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' * I_STRUCTURE_NAME = * I_BACKGROUND_ID = ' ' * I_GRID_TITLE = * I_GRID_SETTINGS = * IS_LAYOUT = IT_FIELDCAT = lt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = * IT_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 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = * IR_SALV_FULLSCREEN_ADAPTER = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES T_OUTTAB = ct_switchdat EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
WSUBST_SWITCHDAT_REORG - Reorganization of Table for Switchover Information WSUBST_SWITCHDAT_REORG - Reorganization of Table for Switchover Information WSUBST_CONSTANTS - WSUBSTCONSTANTS WSTR_SAPDBILM - Implement store groups for Purchasing WSTR_SAPDBIFM - Implement store groups for Purchasing WSTR_RWYDVE00 - Implement store groups in Purchasing