SAP Reports / Programs

RSDB2SWITCH SAP ABAP Report - Switching of Database Host







RSDB2SWITCH 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 RSDB2SWITCH into the relevant SAP transactions such as SE38 or SE80


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 RSDB2SWITCH. "Basic submit
SUBMIT RSDB2SWITCH AND RETURN. "Return to original report after report execution complete
SUBMIT RSDB2SWITCH 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: PRIMARY = Switch to primary DB host
Selection Text: REFRESH = Refresh current DB connection
Selection Text: STANDBY = Switch to standby DB host
Title: Switching of Database Host
Text Symbol: 001 = Primary DB host
Text Symbol: 002 = Standby DB host
Text Symbol: 003 = Settings:
Text Symbol: 004 = Present DB host
Text Symbol: 005 = Connection to current DB host is being refreshed.
Text Symbol: 006 = Switching to primary host
Text Symbol: 007 = Switching to standby host
Text Symbol: 008 = Operation completed successfully.
Text Symbol: 009 = Error in switch/refresh of connection!
Text Symbol: 010 = Operation:
Text Symbol: 011 = New DB host


INCLUDES used within this REPORT RSDB2SWITCH

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:

STU3_ADMIN_SWITCH_DB_CON CALL FUNCTION 'STU3_ADMIN_SWITCH_DB_CON' EXPORTING NEW_DB_CON = newdbcon SWITCH_ALL_APP_SERVERS = ALLAPPS NEW_HOST = new_host WAIT_FOR_COMPLETION = WAIT MAX_WAIT_TIME = MAX_WAIT EXCEPTIONS ZOS_AS_SWITCH_TO_ANOTHER_LPAR = 1 COULD_NOT_DETERMINE_INSTANCES = 2 ERROR_DURING_SWITCH = 3 USER_NOT_AUTHORIZED = 4 NEW_DB_CON_UNKNOWN = 5 MAX_WAIT_TIME_EXCEEDED = 6 OTHERS = 7.



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