SAP Reports / Programs

RSPFDB_AUTOREPORT SAP ABAP Report - Execution of the Report Definitions Entered in Table ALPFAUTOREPORT







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


Text pool values


Title: Execution of the Report Definitions Entered in Table ALPFAUTOREPORT


INCLUDES used within this REPORT RSPFDB_AUTOREPORT

INCLUDE RSALEXTI.


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:

SCSMROUTE_SETTINGS_ON_LOAD CALL FUNCTION 'SCSMROUTE_SETTINGS_ON_LOAD' EXPORTING USE_PRIO_ROUTES = 'X' ONLY_LOCAL_SYSID = ' ' RFC_ALLOWED = 'X' PROGRESS_INDICATOR = ' ' EXCEPTIONS SETTING_NOT_ALLOWED = 1 OTHERS = 2 .

SALP_SM_GET_OBJECT_TID CALL FUNCTION 'SALP_SM_GET_OBJECT_TID' EXPORTING sm_object = 'HC' IMPORTING OBJECT_TID = hc_tid EXCEPTIONS NO_SELFMON_NODE = 1 NO_CPH_NODE = 2 NO_COLLECTION_NODE = 3 NO_OBJECT = 4 ILLEGAL_INPUT = 5 OTHERS = 6.

SALP_SM_GET_OBJECT_TID CALL FUNCTION 'SALP_SM_GET_OBJECT_TID' EXPORTING sm_object = 'AR' IMPORTING OBJECT_TID = ar_tid EXCEPTIONS NO_SELFMON_NODE = 1 NO_CPH_NODE = 2 NO_COLLECTION_NODE = 3 NO_OBJECT = 4 ILLEGAL_INPUT = 5 OTHERS = 6.

SALP_CALC_DATE CALL FUNCTION 'SALP_CALC_DATE' EXPORTING in_rectype = rety in_nbr_dwxmqy = numm in_date = -last_run IMPORTING OUT_DATE = next EXCEPTIONS OTHER_ERROR = 1 OTHERS = 2.

SALP_SM_DATE_TIME_MSG CALL FUNCTION 'SALP_SM_DATE_TIME_MSG' EXPORTING sm_object = 'AR' parent_tid = ar_tid start_date = da_s start_time = ti_s end_date = da_e end_time = ti_e EXCEPTIONS REPORT_MESSAGE_ERROR = 1 NO_ATTRIB = 2 ILLEGAL_INPUT = 3 OTHERS = 4.

SALP_SM_CALC_TIME_DIFFERENCE CALL FUNCTION 'SALP_SM_CALC_TIME_DIFFERENCE' EXPORTING date_1 = da_s time_1 = ti_s date_2 = da_e time_2 = ti_e IMPORTING SECONDS = vzeit.

SALP_SM_PERF_RUNTIME CALL FUNCTION 'SALP_SM_PERF_RUNTIME' EXPORTING sm_object = 'AR' * SYSID_OR_APPLSRV = parent_tid = ar_tid runtime_value = vzeit EXCEPTIONS NO_ATTRIB = 1 EMPTY_INPUT = 2 ILLEGAL_INPUT = 3 ERROR_REPORTING_VALUE = 4 OTHERS = 5.

SALP_SM_PERF_COUNT CALL FUNCTION 'SALP_SM_PERF_COUNT' EXPORTING sm_object = 'AR' * SYSID_OR_APPLSRV = parent_tid = ar_tid count_value = rcount EXCEPTIONS EMPTY_INPUT = 1 NO_ATTRIB = 2 ERROR_REPORTING_VALUE = 3 ILLEGAL_INPUT = 4 OTHERS = 5.

SALP_SM_MESSAGE CALL FUNCTION 'SALP_SM_MESSAGE' EXPORTING msg_to_send = zahl MSG_NO = '101' COLOR = 'R' TYP = 'S' parent_tid = hc_tid EXCEPTIONS WRONG_TYP = 1 REPORT_MESSAGE_ERROR = 2 NO_ATTRIB = 3 OTHERS = 4.

SALP_GET_TIME_INTERVAL CALL FUNCTION 'SALP_GET_TIME_INTERVAL' EXPORTING time_count = rep-TIME_CNT time_unit = rep-TIME_UNIT REPDEFNAM = rep-REPDEFNAM IMPORTING FIRSTDAY = first LASTDAY = last EXCEPTIONS ILLEGAL_TIMEUNIT = 1 REPORT_DEF_ERROR = 2 EMPTY_REPORT_DEFINITION = 3 OTHERS = 4.

SALP_UI_EXECUTE_REPORT CALL FUNCTION 'SALP_UI_EXECUTE_REPORT' EXPORTING report_def = rep-REPDEFNAM firstday = first lastday = last output_dim = rep-output_dim output_target = rep-output_target filename = rep-OUT_FILENAME filetarget = 'B' SHOW_NULL_ENTRIES = null EXCEPTIONS REPORT_NOT_EXIST = 1 INTERNAL_ERROR = 2 ILLEGAL_OUTPUT_DIM = 3 EMPTY_OBJECT_LIST = 4 OTHERS = 5 .

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING * DELANFREP = ' ' * JOBGROUP = ' ' jobname = followupjobname * SDLSTRTDT = NO_DATE * SDLSTRTTM = NO_TIME IMPORTING JOBCOUNT = joco EXCEPTIONS CANT_CREATE_JOB = 1 INVALID_JOB_DATA = 2 JOBNAME_MISSING = 3 OTHERS = 4 .

JOB_SUBMIT CALL FUNCTION 'JOB_SUBMIT' EXPORTING * ARCPARAMS = authcknam = userid * COMMANDNAME = ' ' * OPERATINGSYSTEM = ' ' * EXTPGM_NAME = ' ' * EXTPGM_PARAM = ' ' * EXTPGM_SET_TRACE_ON = ' ' * EXTPGM_STDERR_IN_JOBLOG = 'X' * EXTPGM_STDOUT_IN_JOBLOG = 'X' * EXTPGM_SYSTEM = ' ' * EXTPGM_RFCDEST = ' ' * EXTPGM_WAIT_FOR_TERMINATION = 'X' jobcount = joco jobname = followupjobname LANGUAGE = SY-LANGU * PRIPARAMS = ' ' REPORT = 'RSPFDB_AUTOREPORT' * VARIANT = ' ' * IMPORTING * STEP_NUMBER = EXCEPTIONS BAD_PRIPARAMS = 1 BAD_XPGFLAGS = 2 INVALID_JOBDATA = 3 JOBNAME_MISSING = 4 JOB_NOTEX = 5 JOB_SUBMIT_FAILED = 6 LOCK_FAILED = 7 PROGRAM_MISSING = 8 PROG_ABAP_AND_EXTPG_SET = 9 OTHERS = 10 .

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING * AT_OPMODE = ' ' * AT_OPMODE_PERIODIC = ' ' * CALENDAR_ID = ' ' * EVENT_ID = ' ' * EVENT_PARAM = ' ' EVENT_PERIODIC = ' ' jobcount = joco jobname = followupjobname * LASTSTRTDT = NO_DATE * LASTSTRTTM = NO_TIME * PRDDAYS = 0 * PRDHOURS = p_hrs * PRDMINS = p_min * PRDMONTHS = 0 * PRDWEEKS = p_wks * PREDJOB_CHECKSTAT = ' ' * PRED_JOBCOUNT = ' ' * PRED_JOBNAME = ' ' SDLSTRTDT = dat SDLSTRTTM = tim * STARTDATE_RESTRICTION = BTC_PROCESS_ALWAYS * STRTIMMED = ' ' * TARGETSYSTEM = ' ' * START_ON_WORKDAY_NOT_BEFORE = SY-DATUM * START_ON_WORKDAY_NR = 0 * WORKDAY_COUNT_DIRECTION = 0 * RECIPIENT_OBJ = TARGETSERVER = servername * DONT_RELEASE = ' ' * TARGETGROUP = ' ' IMPORTING JOB_WAS_RELEASED = rel EXCEPTIONS CANT_START_IMMEDIATE = 1 INVALID_STARTDATE = 2 JOBNAME_MISSING = 3 JOB_CLOSE_FAILED = 4 JOB_NOSTEPS = 5 JOB_NOTEX = 6 LOCK_FAILED = 7 INVALID_TARGET = 8 OTHERS = 9 .

job_close ENDIF. "sy-subrc of call function 'job_close'

job_submit ENDIF. "sy-subrc of call function 'job_submit'

job_open ENDIF. "sy-subrc of call function 'job_open'



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