SDOK_SERVE_ERRORS 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 SDOK_SERVE_ERRORS 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.
Text Symbol: 001 = No runtime info available
Text Symbol: 002 = No job control data available
INCLUDE SDOK_SERVE_REQUESTSTOP.
No SAP DATABASE tables are accessed within this REPORT code!
GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING EVENTID = gv_EVENTID EVENTPARM = gv_EVENTPARM EXTERNAL_PROGRAM_ACTIVE = gv_EXTERNAL_PROGRAM_ACTIVE JOBCOUNT = gv_JOBCOUNT JOBNAME = gv_JOBNAME STEPCOUNT = gv_STEPCOUNT EXCEPTIONS NO_RUNTIME_INFO = 1 OTHERS = 2.
SDOK_REPORT_START_RUNNING CALL FUNCTION 'SDOK_REPORT_START_RUNNING' EXPORTING IV_SYREPID = sy-repid IV_JOBCOUNT = gv_JOBCOUNT IV_JOBNAME = gv_JOBNAME.
SDOK_REPORT_CONTINUE_RUNNING CALL FUNCTION 'SDOK_REPORT_CONTINUE_RUNNING' EXPORTING IV_SYREPID = sy-repid IV_JOBCOUNT = gv_JOBCOUNT IV_JOBNAME = gv_JOBNAME.
SDOK_REPORT_CONTINUE_RUNNING CALL FUNCTION 'SDOK_REPORT_CONTINUE_RUNNING' EXPORTING IV_SYREPID = sy-repid IV_JOBCOUNT = gv_JOBCOUNT IV_JOBNAME = gv_JOBNAME.
SDOK_REPORT_END_RUNNING CALL FUNCTION 'SDOK_REPORT_END_RUNNING' EXPORTING IV_SYREPID = sy-repid IV_JOBCOUNT = gv_JOBCOUNT IV_JOBNAME = gv_JOBNAME.
SDOK_QUE_JOBACTIVITIES_GET CALL FUNCTION 'SDOK_QUE_JOBACTIVITIES_GET' EXPORTING IV_REPORT = p_repid if_activeonly = gc_x TABLES TT_JOBCONTROL = P_GT_JOBCONTROL EXCEPTIONS NO_DATA_FOUND = 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.