SCMABOX 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 SCMABOX 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.
Selection Text: WAITTIME = Wait Loop in Seconds
Selection Text: VARIANT = Variant
Selection Text: UNAME = User for Authorization Check
Selection Text: TESTRUN = Test Run
Selection Text: STEPS = Init/Closing Steps
Selection Text: SAME_JOB = Start in Same Job
Selection Text: REPORT = Program Name
Selection Text: P_ACT = Activity
Selection Text: NEW_JOB = Start New Job
Selection Text: JOBNAME = Job Name
Selection Text: HEADER = Title of Mail
Selection Text: CONTENT5 = Line 5 of Mail
Selection Text: CONTENT4 = Line 4 of Mail
Selection Text: CONTENT3 = Line 3 of Mail
Selection Text: CONTENT2 = Line 2 of Mail
Selection Text: CONTENT1 = Line 1 of Mail
Title: Schedule Manager: Generic Cover for Starting Any Reports
Text Symbol: T04 = Internet Address
Text Symbol: T03 = Distribution list
Text Symbol: T02 = SAP User Name
Text Symbol: S03 = Start New Job with Own Init/Closing Steps
Text Symbol: S02 = Start Program in Same Job
Text Symbol: S01 = Start New Job and Wait for End (Endless loop)
Text Symbol: M06 = An unexpected error has occurred
Text Symbol: M05 = No authorization for sending mails
Text Symbol: M04 = No recipient has received the mail
Text Symbol: M03 = Too Many Recipients Defined
Text Symbol: M02 = Errors occurred
Text Symbol: M01 = Mail sent successfully
Text Symbol: F05 = Send Mail upon Completion (Optional)
Text Symbol: F04 = Define Mail Recipient
Text Symbol: F03 = Define Text and Contents of the Mail
Text Symbol: F02 = Parameters of New Job to be Started
Text Symbol: F01 = Reports and Variants to be Started
Text Symbol: 007 = Close Schedule Manager
Text Symbol: 006 = Initialize Schedule Manager
Text Symbol: 005 = Started Report is Canceled
Text Symbol: 004 = Created Spool List:
INCLUDE MONITOR_CONSTANTS.
No SAP DATABASE tables are accessed within this REPORT code!
SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING restriction = restrict EXCEPTIONS others = 1.
KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING LS_DETAIL = LS_DETAIL LS_WITEM = LS_WITEM IMPORTING LS_KEY = GS_KEY TABLES LT_SELKRIT = LT_SELKRIT.
MESSAGES_ACTIVE CALL FUNCTION 'MESSAGES_ACTIVE' IMPORTING MAX_SEVERITY = LD_SEVERITY.
MESSAGES_SAVE CALL FUNCTION 'MESSAGES_SAVE' EXPORTING I_BALOBJECT = LD_BALOBJECT I_BALSUBOBJECT = LD_BALSUBOBJECT * i_in_update_task = I_IDENTIFICATION = GD_IDENT IMPORTING E_LOG_HANDLE = lD_LOG_HANDLE EXCEPTIONS NO_MESSAGES = 1 NOT_ACTIVE = 2 PROGRAM_ERROR = 3 SAVE_NOT_ALLOWED = 4 WRONG_IDENTIFICATION = 5.
KPEP_MONI_CLOSE_RECORD CALL FUNCTION 'KPEP_MONI_CLOSE_RECORD' EXPORTING LS_KEY = GS_KEY LS_SCMA_EVENT = LS_SCMA_EVENT ls_message = ls_message CHANGING LD_APLSTAT = LD_APLSTAT EXCEPTIONS NO_ID_GIVEN = 1 OTHERS = 2.
LIST_FROM_MEMORY CALL FUNCTION 'LIST_FROM_MEMORY' TABLES LISTOBJECT = lt_list EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.
WRITE_LIST CALL FUNCTION 'WRITE_LIST' TABLES LISTOBJECT = lt_list EXCEPTIONS EMPTY_LIST = 1 OTHERS = 2.
GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING REPORT = report MODE = 'BATCH' NO_DIALOG = 'X' IMPORTING OUT_PARAMETERS = PAR_PRIPA OUT_ARCHIVE_PARAMETERS = PAR_ARCPA.
JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING JOBNAME = jobname IMPORTING JOBCOUNT = ld_JNUMM EXCEPTIONS CANT_CREATE_JOB = 01 INVALID_JOB_DATA = 02 JOBNAME_MISSING = 03 OTHERS = 90.
BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING FORCEDMODE = 'X' JOBCOUNT = ld_JNUMM JOBNAME = jobname EXCEPTIONS OTHERS = 99.
GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING JOBCOUNT = SMBATCH-JOBCOUNT JOBNAME = SMBATCH-JOBNAME STEPCOUNT = SMBATCH-STEPCOUNT EXCEPTIONS NO_RUNTIME_INFO = 1.
BP_JOBCONTEXT_SELECT_BY_JOB CALL FUNCTION 'BP_JOBCONTEXT_SELECT_BY_JOB' EXPORTING JOBNAME = SMBATCH-JOBNAME JOBCOUNT = SMBATCH-JOBCOUNT TABLES JOBSELECT_JOBLIST = LT_TBTCJCNTXT EXCEPTIONS NO_JOBS_FOUND = 1 OTHERS = 2.
JOB_SUBMIT CALL FUNCTION 'JOB_SUBMIT' EXPORTING arcparams = par_arcpa authcknam = uname jobcount = ld_jnumm jobname = jobname language = sy-langu priparams = par_pripa report = report variant = variant * IMPORTING * step_number = stepnumber 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 JOBCOUNT = ld_JNUMM JOBNAME = jobname STRTIMMED = 'X' exceptions others = 1.
BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING FORCEDMODE = 'X' JOBCOUNT = ld_JNUMM JOBNAME = jobname EXCEPTIONS OTHERS = 99.
BP_JOB_READ CALL FUNCTION 'BP_JOB_READ' EXPORTING JOB_READ_JOBCOUNT = ld_JNUMM JOB_READ_JOBNAME = jobname JOB_READ_OPCODE = ld_opcode IMPORTING JOB_READ_JOBHEAD = ld_jobhead TABLES JOB_READ_STEPLIST = lt_steplist EXCEPTIONS INVALID_OPCODE = 41 JOB_DOESNT_EXIST = 42 JOB_DOESNT_HAVE_STEPS = 43 OTHERS = 92.
CALL FUNCTION 'MESSAGE_STORE' EXPORTING ARBGB = arbgb MSGTY = msgty MSGV1 = v1 MSGV2 = v2 MSGV3 = v3 MSGV4 = v4 TXTNR = txtnr EXCEPTIONS MESSAGE_TYPE_NOT_VALID = 1 NOT_ACTIVE = 2 OTHERS = 3.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' IMPORTING E_IDENTIFICATION = gd_ident.
SO_NEW_DOCUMENT_SEND_API1 CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1' EXPORTING DOCUMENT_TYPE = 'RAW' DOCUMENT_DATA = DOC_CHNG * PUT_IN_OUTBOX = 'X' TABLES OBJECT_CONTENT = OBJCONT RECEIVERS = RECLIST EXCEPTIONS TOO_MANY_RECEIVERS = 1 DOCUMENT_NOT_SENT = 2 OPERATION_NO_AUTHORIZATION = 4 OTHERS = 99.
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 SCMABOX or its description.