SAP Reports / Programs

WSUBST_SWITCHDAT_REORG SAP ABAP Report - Reorganization of Table for Switchover Information







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


Transaction Code(s):

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


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 WSUBST_SWITCHDAT_REORG. "Basic submit
SUBMIT WSUBST_SWITCHDAT_REORG AND RETURN. "Return to original report after report execution complete
SUBMIT WSUBST_SWITCHDAT_REORG 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: 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


INCLUDES used within this REPORT WSUBST_SWITCHDAT_REORG

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:

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.



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 WSUBST_SWITCHDAT_REORG or its description.