INST_DEFINE_OPMODES 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 INST_DEFINE_OPMODES into the relevant SAP transactions such as SE38 or SE80
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.
Title: Program INST_DEFINE_OPMODES
Text Symbol: 001 = Program only for RRR installation
Text Symbol: 002 = Instance profile not imported
Text Symbol: 003 = Start profile not imported
Text Symbol: 004 = Error when creating DAY operation mode
Text Symbol: 005 = Error when creating NIGHT operation mode
Text Symbol: 006 = Error when scheduling operation modes
Text Symbol: 007 = Operation mode successfully created
INCLUDE INST_FUNC_MODULES.
INCLUDE INST_CONST.
INCLUDE INST_DEFINE_OPMODES_DEF.
No SAP DATABASE tables are accessed within this REPORT code!
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'INSTANCE_NAME' IMPORTING parameter_value = inst_name.
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'INSTANCE_NAME' IMPORTING parameter_value = inst_name.
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'INSTANCE_NAME' IMPORTING parameter_value = sys_par_val.
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'SAPGLOBALHOST' IMPORTING parameter_value = sys_par_val.
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'SAPSYSTEM' IMPORTING parameter_value = sys_par_val.
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'rdisp/myname' IMPORTING parameter_value = sys_par_val.
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'DIR_HOME' IMPORTING parameter_value = sys_par_val.
SXPG_PROFILE_PARAMETER_GET call function 'SXPG_PROFILE_PARAMETER_GET' EXPORTING parameter_name = 'rdisp/mshost' IMPORTING parameter_value = sys_par_val.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.