SAP Reports / Programs | Cross-Application Components(CA) SAP CA

FRE_SUBST_SWITCH_LOAD SAP ABAP Report - Transfer of Switchover and Switchback Information to SAP F&R







FRE_SUBST_SWITCH_LOAD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report evaluates the information stored in SAP ERP on completed switches from original articles to follow-up/replacement articles (or 'switch back' from replacement article to original article) and transfers the relevant data to SAP F&R inbound interface for 'information on switch / switch back'...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 FRE_SUBST_SWITCH_LOAD 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

FRE50 - Send Switchover Information


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 FRE_SUBST_SWITCH_LOAD. "Basic submit
SUBMIT FRE_SUBST_SWITCH_LOAD AND RETURN. "Return to original report after report execution complete
SUBMIT FRE_SUBST_SWITCH_LOAD 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: S_WERKS = Receiving Site
Selection Text: S_SUBSTY = Substitution Control
Selection Text: S_SUBDAT = Date of Change
Selection Text: S_MATORG = Original Article
Selection Text: S_MATFUP = Follow-Up/Replacement Article
Selection Text: P_TASKS = Max. No. of Parallel Processes
Selection Text: P_SYDEST = RFC Target System
Selection Text: P_SVRGR = Logon/Server Group
Selection Text: P_PARAL = Parallel Processing Active
Selection Text: P_INIT = Initial supply
Selection Text: P_DIRECT = RFC- Access to SAP F&R
Selection Text: P_DELETE = Delete non-relevant Entries
Selection Text: P_BLOCK = No. Data Records per Package
Selection Text: P_APPL = Application Indicator
Title: Transfer of Switchover and Switchback Information to SAP F&R
Text Symbol: 008 = Application Indicator
Text Symbol: 007 = Parallel Processing Active
Text Symbol: 006 = RFC Access to SAP F&R
Text Symbol: 005 = Delete non-relevant Entries
Text Symbol: 004 = Initial supply
Text Symbol: 003 = Transfer Settings
Text Symbol: 002 = Options for Parallel Processing
Text Symbol: 001 = Selection Criteria


INCLUDES used within this REPORT FRE_SUBST_SWITCH_LOAD

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.

AIC0_OWN_LOGSYSTEM_GET CALL FUNCTION 'AIC0_OWN_LOGSYSTEM_GET' IMPORTING e_own_logsystem = g_logsystem EXCEPTIONS own_logsystem_not_defined = 1 OTHERS = 2.

FRE_SUBST_SWITCH_SUPPLY CALL FUNCTION 'FRE_SUBST_SWITCH_SUPPLY' EXPORTING it_customizing = gt_customizing is_control = ls_control_supply it_subst_ctrl_range = gt_subst_ctrl_r[] it_rec_site_range = gt_site_r[] it_matnr_orig_range = gt_matnr_org_r[] it_matnr_subst_range = gt_matnr_subst_r[] it_subst_date_range = gt_date_subst_r[] it_art_site = gt_art_site[] it_subst_appl = gt_subst_appl[] IMPORTING et_messages = gt_messages[] et_switch_item = gt_switch_item[] EXCEPTIONS no_data = 1 processing_error = 2 OTHERS = 3.

FRE_MESSAGE_DB CALL FUNCTION 'FRE_MESSAGE_DB' EXPORTING mode = 'I' TABLES messages = pt_messages EXCEPTIONS database_error = 1 wrong_mode = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING * I_PROGRAM_NAME = I_INTERNAL_TABNAME = SPACE 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 * EXPORTING * 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 = pt_switch_item EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

WSUBST_SWITCH_DB_REORG CALL FUNCTION 'WSUBST_SWITCH_DB_REORG' EXPORTING IT_SUBST_APPL = lt_subst_appl * IMPORTING * ET_SWITCHDAT = * EP_DBCOUNT = EXCEPTIONS DB_ERROR = 1 ENQUEUE_ERROR = 2 OTHERS = 3.



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