SAP Reports / Programs

RSBTCXPG SAP ABAP Report - Special Job Step to Start External Programs







RSBTCXPG 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 RSBTCXPG 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 RSBTCXPG. "Basic submit
SUBMIT RSBTCXPG AND RETURN. "Return to original report after report execution complete
SUBMIT RSBTCXPG VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Special Job Step to Start External Programs
Text Symbol: CMF = Communication error
Text Symbol: SYF = System error


INCLUDES used within this REPORT RSBTCXPG

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:

SXPG_STEP_XPG_START CALL FUNCTION 'SXPG_STEP_XPG_START' EXPORTING target = tgtsys destination = dest extprog = p_xpgprog params = xpgparms stdincntl = sincntl stdoutcntl = soutcntl stderrcntl = serrcntl tracecntl = trccntl termcntl = term_by_cntlpgm "termcntl tracelevel = p_trace_level conncntl = conncntl IMPORTING strtstat = strtstat xpgid = xpgid convid = convid exitstat = exitstat exitcode = exitcode last_proc = last_r3_proc last_host = last_r3_host last_proc_num = last_r3_no TABLES log = p_log EXCEPTIONS unknown_error = rc_unknown_error cannot_get_rfc_dest = rc_cannot_get_rfc_dest job_update_failed = rc_error_update_tbtcp job_does_not_exist = rc_job_does_not_exist communication_error = rc_communication_error PROGRAM_START_ERROR = rc_program_start_error system_error = rc_system_error OTHERS = rc_unknown_error.

SXPG_STEP_COMMAND_START CALL FUNCTION 'SXPG_STEP_COMMAND_START' EXPORTING target = tgtsys destination = dest commandname = cmdname additional_parameters = xpgparms operatingsystem = opsys stdincntl = sincntl stdoutcntl = soutcntl stderrcntl = serrcntl tracecntl = trccntl termcntl = term_by_cntlpgm "termcntl tracelevel = p_trace_level batch = 'X' conncntl = conncntl IMPORTING strtstat = strtstat xpgid = xpgid convid = convid exitstat = exitstat exitcode = exitcode last_proc = last_r3_proc last_host = last_r3_host last_proc_num = last_r3_no TABLES log = p_log EXCEPTIONS command_not_found = rc_command_not_found parameter_expected = rc_parameter_expected parameters_too_long = rc_parameters_too_long security_risk = rc_security_risk wrong_check_call_interface = rc_wrong_check_call_interface no_permission = rc_no_permission unknown_error = rc_unknown_error communication_error = rc_communication_error program_start_error = rc_program_start_error system_error = rc_system_error cannot_get_rfc_dests = rc_cannot_get_rfc_dests job_update_failed = rc_error_update_tbtcp job_does_not_exist = rc_job_does_not_exist OTHERS = rc_unknown_error.

SXPG_STEP_XPG_START CALL FUNCTION 'SXPG_STEP_XPG_START' STARTING NEW TASK task_sapxpg EXPORTING target = tgtsys destination = dest extprog = p_xpgprog params = xpgparms stdincntl = sincntl stdoutcntl = soutcntl stderrcntl = serrcntl tracecntl = trccntl termcntl = term_dont_wait "termcntl tracelevel = p_trace_level conncntl = conncntl EXCEPTIONS unknown_error = rc_unknown_error cannot_get_rfc_dest = rc_cannot_get_rfc_dest job_update_failed = rc_error_update_tbtcp job_does_not_exist = rc_job_does_not_exist communication_error = rc_communication_error system_error = rc_system_error OTHERS = rc_unknown_error.

SXPG_STEP_COMMAND_START CALL FUNCTION 'SXPG_STEP_COMMAND_START' STARTING NEW TASK task_extcmd EXPORTING target = tgtsys destination = dest commandname = cmdname additional_parameters = xpgparms operatingsystem = opsys stdincntl = sincntl stdoutcntl = soutcntl stderrcntl = serrcntl tracecntl = trccntl termcntl = term_dont_wait "termcntl tracelevel = p_trace_level batch = 'X' jobname = jobname jobcount = jobcount stepcount = stepcnt conncntl = conncntl EXCEPTIONS command_not_found = rc_command_not_found parameter_expected = rc_parameter_expected parameters_too_long = rc_parameters_too_long security_risk = rc_security_risk wrong_check_call_interface = rc_wrong_check_call_interface no_permission = rc_no_permission unknown_error = rc_unknown_error communication_error = rc_communication_error system_error = rc_system_error cannot_get_rfc_dests = rc_cannot_get_rfc_dests job_update_failed = rc_error_update_tbtcp job_does_not_exist = rc_job_does_not_exist OTHERS = rc_unknown_error.



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