INST_EWA_SETUP 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_EWA_SETUP 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: SAP Installation
Text Symbol: 007 = Error submitting EWA job
Text Symbol: 008 = Error when closing EWA job
Text Symbol: 009 = Weekly EWA job created - Job & / &
Text Symbol: 010 = EWA Customizing cannot be set
Text Symbol: 006 = Error when opening EWA job
Text Symbol: 001 = EWA must be executed in client 000
Text Symbol: 002 = EWA only for production RRR systems
Text Symbol: 003 = Program runs only during RRR installation
Text Symbol: 004 = Cannot read ROLE parameter
Text Symbol: 005 = Cannot delete old EWA jobs
INCLUDE INST_FUNC_MODULES.
No SAP DATABASE tables are accessed within this REPORT code!
JOB_OPEN call function 'JOB_OPEN' EXPORTING jobname = job_name IMPORTING jobcount = job_nr EXCEPTIONS others = 1.
JOB_SUBMIT call function 'JOB_SUBMIT' EXPORTING authcknam = auth_user jobcount = job_nr jobname = job_name report = rep1 language = 'E' EXCEPTIONS others = 1.
JOB_SUBMIT call function 'JOB_SUBMIT' EXPORTING authcknam = auth_user jobcount = job_nr jobname = job_name report = rep2 language = 'E' EXCEPTIONS others = 1.
JOB_CLOSE call function 'JOB_CLOSE' EXPORTING jobcount = job_nr jobname = job_name prddays = ca_periode sdlstrtdt = cada_date sdlstrttm = cada_time IMPORTING job_was_released = jobs_released EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 others = 8.
SCUI_PUT_CUSTOMIZE_VALUE call function 'SCUI_PUT_CUSTOMIZE_VALUE' EXPORTING iv_key = xtcuscust-custom_typ ov_value = xtcuscust-value EXCEPTIONS insert_problem = 1 others = 2.
BP_JOB_SELECT call function 'BP_JOB_SELECT' EXPORTING jobselect_dialog = 'N' jobsel_param_in = l_jobsel_param_in IMPORTING jobsel_param_out = l_jobsel_param_out TABLES jobselect_joblist = l_jobsel_joblist EXCEPTIONS others = 1.
SHOW_JOBSTATE call function 'SHOW_JOBSTATE' EXPORTING jobcount = l_jobsel_joblist-jobcount jobname = l_jobsel_joblist-jobname IMPORTING aborted = l_aborted finished = l_finished preliminary = l_preliminary ready = l_ready running = l_running scheduled = l_scheduled EXCEPTIONS others = 1.
BP_JOB_DELETE call function 'BP_JOB_DELETE' EXPORTING jobcount = l_jobsel_joblist-jobcount jobname = p_job_name EXCEPTIONS others = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.