FKJO_CREATE_CHAIN 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 FKJO_CREATE_CHAIN 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: Scheduling a Run with Processing Steps
Text Symbol: 010 = , to indicate run as being executed
Text Symbol: 011 = Run set to incorrect
Text Symbol: 012 = Run set to executed
Text Symbol: 013 = Submit of FKJO_CREATE_CHAIN was successful
Text Symbol: 014 = Close container immedtly:
Text Symbol: 015 = Container is closed:
Text Symbol: 016 = Error when closing container
Text Symbol: 022 = Scheduling of &1 was successful
Text Symbol: 027 = For run ID
Text Symbol: 001 = Scheduling job &1(Aktyp &2) with LaufD=&3 and LaufI=&4
Text Symbol: 002 = Start job (Jtyp, Atyp):
Text Symbol: 003 = Run not set to executed - error when calling job
Text Symbol: 004 = Unique Determination of Mass Activity Type from Job Type
Text Symbol: 005 = Not Possible
Text Symbol: 006 = , to indicate run as being incorrect
Text Symbol: 007 = For container
Text Symbol: 008 = Schedule FKJO_CLOSE_RUN for ID
Text Symbol: 009 = Error during DB access when trying
Text Symbol: 038 = Error from FKJO_CNTR_START_JOB:rc=
Text Symbol: 039 = Caution: Process Chain Root not
Text Symbol: 040 = No Process Chains:
Text Symbol: 041 = Caution: Process Chain Root not
Text Symbol: 042 = Error in scheduling interval jobs for job typ
Text Symbol: 043 = Start CREATE_CHAIN
Text Symbol: 044 = "closed"
Text Symbol: 131 = Dispatch
Text Symbol: 029 = FKJO_CLOSE_RUN successfully scheduled
Text Symbol: 030 = CONTAINER Create: Parameter mssg
Text Symbol: 031 = CONTAINER Create: Container not found
Text Symbol: 032 = Schedule CLOSE for Process Chain
Text Symbol: 033 = Close job will be scheduled for ID
Text Symbol: 034 = Scheduling
Text Symbol: 035 = No Process Chain Roots Permitted
Text Symbol: 036 = No Process Chain Steps Permitted
Text Symbol: 037 = Error from FKJO_CNTR_START_JOB:rc=
INCLUDE FKJO_CNTRCHAIN.
No SAP DATABASE tables are accessed within this REPORT code!
FKJO_GET_RUN_INFO CALL FUNCTION 'FKJO_GET_RUN_INFO' EXPORTING i_runid = runid i_ignore_errors = 'X' IMPORTING e_start_date = chainsd e_start_time = chainst e_id = chainid e_isxtender = xt e_ischainchild = cc EXCEPTIONS not_found = 1 OTHERS = 2.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Processing chain with ID/Date/Time' "#EC NOTEXT i_msg2 = chainid i_msg3 = chainsd i_msg4 = chainst.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'value of cntrid is [' "#EC NOTEXT i_msg2 = cntrid i_msg3 = ']'.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Initial start'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Start within chain processing'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Last step still running'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Last step finished, go to next step'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Last step in chain already processed'. "#EC NOTEXT
FKJO_BUILD_RUNID CALL FUNCTION 'FKJO_BUILD_RUNID' EXPORTING i_id = cntrid i_start_date = t_cntrids-start_date i_start_time = t_cntrids-start_time IMPORTING e_runid = cntrrunid.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'No jobs for processing'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'No export to RFDT because no' "#EC NOTEXT i_msg2 = 'jobs have been scheduled.'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Exporting' "#EC NOTEXT i_msg2 = sy-tfill i_msg3 = 'entries in FKKDIJOB to RFDT'. "#EC NOTEXT
FKK_GET_APPLICATION CALL FUNCTION 'FKK_GET_APPLICATION' EXPORTING i_no_dialog = 'X' IMPORTING e_applk = applk EXCEPTIONS no_appl_selected = 1 OTHERS = 2.
FKK_FUNC_MODULE_DETERMINE CALL FUNCTION 'FKK_FUNC_MODULE_DETERMINE' EXPORTING i_fbeve = fbeve i_applk = applk TABLES t_fbstab = fbstab EXCEPTIONS error_message = 1.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = sy-dbcnt i_msg2 = ' Container for chain found in read_cntr'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = i i_msg2 = 'Container found in level' "#EC NOTEXT i_msg3 = lev.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = i i_msg2 = 'Container found in level' "#EC NOTEXT i_msg3 = lev.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Imported' "#EC NOTEXT i_msg2 = sy-tfill i_msg3 = 'entries from RFDT'. "#EC NOTEXT
CALL FUNCTION 'SHOW_JOBSTATE' EXPORTING jobcount = t_fkkdijobs-jobcount jobname = t_fkkdijobs-jobname IMPORTING aborted = ab finished = fi preliminary = pr ready = re running = ru scheduled = sc EXCEPTIONS job_notex = 1 " dat heißtOTHERS = 2.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Job' i_msg2 = t_fkkdijobs-jobcount i_msg3 = t_fkkdijobs-jobname i_msg4 = 'not found via SHOW_JOBSTATE'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Job' i_msg2 = t_fkkdijobs-jobcount i_msg3 = t_fkkdijobs-jobname i_msg4 = 'is still running'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'No more jobs running'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Scheduling FKJO_CREATE_CHAIN for' "#EC NOTEXT i_msg2 = 'execution in about two minutes' "#EC NOTEXT i_msg3 = 'as' "#EC NOTEXT i_msg4 = jn.
JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = jn IMPORTING jobcount = jc EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3 OTHERS = 4.
FKJO_JOBOPEN_ERR CALL FUNCTION 'FKJO_JOBOPEN_ERR' EXPORTING i_rep = 'FKJO_CREATE_CHAIN' i_rc = sy-subrc CHANGING e_msg = s e_msg_type = mt e_msg_no = mno.
FKJO_SUBMIT_ERR CALL FUNCTION 'FKJO_SUBMIT_ERR' EXPORTING i_rep = 'FKJO_CREATE_CHAIN' i_rc = sy-subrc IMPORTING e_msg = s e_msg_type = mt e_msg_no = mno.
JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = jc jobname = jn sdlstrtdt = sd sdlstrttm = st * TARGETSERVER = ' ' * IMPORTING * JOB_WAS_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.
FKJO_JOBCLOSE_ERR CALL FUNCTION 'FKJO_JOBCLOSE_ERR' EXPORTING i_rep = 'FKJO_CREATE_CHAIN' i_rc = sy-subrc IMPORTING e_msg = s e_msg_type = mt e_msg_no = mno.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = sy-tfill i_msg2 = 'lines contained in itab_runs'.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = s i_msg2 = ' and CopyD/CopyI = ' "#EC NOTEXT i_msg3 = itab_runs-copyd i_msg4 = itab_runs-copyi.
FKJO_SCHEDULE_PROC CALL FUNCTION 'FKJO_SCHEDULE_PROC' EXPORTING i_startdate = itab_cntr-start_date i_starttime = itab_cntr-start_time i_aktyp = itab_runs-aktyp i_jtype = itab_runs-jtype i_laufd = itab_runs-laufd i_laufi = itab_runs-laufi i_planned_state = space TABLES t_fkkdijob = t_fkkdi EXCEPTIONS foreign_lock = 1 schedule_failure = 2 copy_failure = 3 template_not_found = 4 parameters_not_found = 5 parameters_already_exist = 6 no_fb = 7 start_in_past = 8 failure = 9 OTHERS = 10. "#EC DOM_EQUAL
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Calling BOC'. "#EC NOTEXT
FKJO_SAMPLE_1902 CALL FUNCTION 'FKJO_SAMPLE_1902'.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Calling BOS for instance' "#EC NOTEXT i_msg2 = cntrid.
FKJO_SAMPLE_1903 CALL FUNCTION 'FKJO_SAMPLE_1903'.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Calling EOS'. "#EC NOTEXT
FKJO_SAMPLE_1904 CALL FUNCTION 'FKJO_SAMPLE_1904'.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Calling EOC'. "#EC NOTEXT
FKJO_SAMPLE_1905 CALL FUNCTION 'FKJO_SAMPLE_1905'.
FKK_GET_APPLICATION CALL FUNCTION 'FKK_GET_APPLICATION' IMPORTING e_applk = applk.
FKK_FUNC_MODULE_DETERMINE CALL FUNCTION 'FKK_FUNC_MODULE_DETERMINE' EXPORTING i_fbeve = '1906' i_applk = applk TABLES t_fbstab = st_fubas_1906.
FKJO_SAMPLE_1906 IF 1 = 2. CALL FUNCTION 'FKJO_SAMPLE_1906'. ENDIF.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = s i_msg2 = ' and CopyD/CopyI = ' "#EC NOTEXT i_msg3 = thecntr-copyd i_msg4 = thecntr-copyi.
FKJO_SCHEDULE_PROC CALL FUNCTION 'FKJO_SCHEDULE_PROC' EXPORTING i_startdate = thecntr-start_date i_starttime = thecntr-start_time i_aktyp = aktyp i_jtype = jtype i_laufd = new_laufd i_laufi = new_laufi i_planned_state = space TABLES t_fkkdijob = t_fkkdi EXCEPTIONS foreign_lock = 1 schedule_failure = 2 copy_failure = 3 template_not_found = 4 parameters_not_found = 5 parameters_already_exist = 6 no_fb = 7 start_in_past = 8 failure = 9 OTHERS = 10. "#EC DOM_EQUAL
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = sy-dbcnt i_msg2 = ' Open container for chain found '. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Chain was not found in DB'. "#EC NOTEXT
FKJO_BUILD_RUNID CALL FUNCTION 'FKJO_BUILD_RUNID' EXPORTING i_id = chainid i_start_date = chainsd i_start_time = chainst IMPORTING e_runid = id.
SHOW_JOBSTATE CALL FUNCTION 'SHOW_JOBSTATE' EXPORTING jobcount = itab-jc_close jobname = jobname IMPORTING aborted = ab finished = fi preliminary = pr ready = re running = ru scheduled = sch EXCEPTIONS OTHERS = 4.
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Closing job has a wrong state'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Closing job has finished'. "#EC NOTEXT
FKJO_DEBUG_MSG CALL FUNCTION 'FKJO_DEBUG_MSG' EXPORTING i_msg1 = 'Waiting 30 sec for a closing job'. "#EC NOTEXT
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 FKJO_CREATE_CHAIN or its description.
FKJO_CREATE_CHAIN - Scheduling a Run with Processing Steps FKJO_CREATE_CHAIN - Scheduling a Run with Processing Steps FKJO_CREATE_BATCH - Scheduling a Run with Processing Steps FKJO_CREATE_BATCH - Scheduling a Run with Processing Steps FKJO_CONTAINER - Job Container Administration FKJO_CONTAINER - Job Container Administration