Script To Extract Job Chain Details - SAP Community
Script To Extract Job Chain Details - SAP Community
m
m
Products and Technology Groups Partners Topics Events What's New Get
u
ni
t
y
SAP Community Products and Technology Technology Technology Blogs by Members
Script to Extract job Chain details
Former Member
2015 Feb 19 3:47 PM
6 Kudos 3,818
Below script will help to extract all job chain parameter details .
import com.redwood.scheduler.api.model.*;
import java.util.*;
{
String P_PARAMETERS =
"SAP_SYSTEMS,CLIENT,ABAP_PROGRAM_NAME,ABAP_VARIANT_NAME,JOBNAME,N
AME,EXT_COMMAND_NAME,EXT_COMMAND_PARAMETERS,EXT_PROGRAM_NAME,
EXT_PROGRAM_PARAMETERS";
chains = new ArrayList();
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 1/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
List chains;
Partition partition;
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 2/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
}
if (paramList != null)
{
jcsOut.print(" " + paramList);
}
jcsOut.println("");
showEvents(ident, jd);
showChain(P_PARAMETERS, ident, jd);
jcsOut.println("");
jcsOut.println("");
jcsOut.println("");
}
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 3/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
return (p != null);
}
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 4/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
}
return valueParam;
}
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 5/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 6/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
}
jcsOut.println("");
showEvents(ident + indent2, ja.getJobDefinition());
showChain(P_PARAMETERS, ident + indent2, ja.getJobDefinition());
}
else
{
jcsOut.print(ident + " +- " + " *** " +
ja.getJobDefinition().getPartition().getName() + "." + ja.getJobDefinition().getName() + "
***");
if (paramList != null)
{
jcsOut.print(" " + paramList);
}
if (ja.getJobDefinition().getTimeWindow() != null) {
jcsOut.print(" [" + ja.getJobDefinition().getTimeWindow().getName() + "]");
}
jcsOut.println("");
}
}
if (it2.hasNext())
{
jcsOut.println(ident + " |");
}
}
}
}
}
Tags:
7 Comments
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 7/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
former_member212336
Explorer
2015 Feb 23 12:03 PM
0 Kudos
former_member184334
Explorer
2015 Jun 19 11:01 AM
0 Kudos
Hi gurbakhshindersingh,
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 8/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
Regards
Zameer Ahamad
former_member184334
Explorer
2015 Jun 25 12:56 PM
0 Kudos
Hi Experts,
We need to pull the report in excel or csv for the job definition which contains multiple
times in single chain and it is having parameters with different values.
Is it able to get all the details through any script or report to know all the values for the
particular job definition parameters.
former_member214642
Explorer
2016 May 22 7:33 PM
0 Kudos
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 9/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
Thanks Expert, the script is working perfectly in V9. However this is extracting whole
chain detail existing in CPS.Can this be customized as follows:
2- Can it be customized to showcase all the ABAp parameter defined for each jobs
defined inside the chain.
3- Would be great if you can provide a script to extract the forecast report from cronacle
which will include the queue, application and partition.
Former Member
2017 Jun 05 2:41 PM
0 Kudos
Hi ,
Could anyone please let us know how to run this script in CPS because we are not able
to find redwood script in definition. Also when we ran this script on shell in Scripting but
still no luck.
Thanks in Advance !!
Akash
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 10/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
former_member482590
Discoverer
2018 Jun 06 8:53 PM
0 Kudos
Hi
Reg
Sharath
former_member710483
Discoverer
2021 Aug 20 1:30 PM
0 Kudos
Hi ,
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 11/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
But is there any way we can pull independent (single) job defination other than Job
chains/step ?
Thanks,
Puneet
Comment
ABAP 7.4 2 ABAP API 1 ABAP CDS VIEW 2 ABAP CDS Views 10
ABAP CDS Views - BW Extraction 3 ABAP CDS Views - CDC (Change Data Capture) 2
ABAP DDIC CDS view 1 ABAP Development 9 ABAP Environment & RAP 2
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 12/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
ALV 1 Amazon S3 1
Related Content
TECH DETAILS - E2E Oracle to SAP HANA Cloud migration with SAP Advanced SQL
Migration & SAP HANA SDI
in Technology Blogs by SAP Thursday
SAP BTP: The Foundation for Intelligent Enterprise with SAP Business AI
in Technology Blogs by SAP Thursday
How to submit Process definition in RunMyJobs aka Redwood aka SAP CPS
in Technology Blogs by Members Thursday
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 13/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
Need help with printing of an https:// URL in background without reading the contents
in Technology Q&A Wednesday
DEMO - E2E Oracle to SAP HANA Cloud migration with SAP Advanced SQL Migration
& SAP HANA SDI
in Technology Blogs by SAP Tuesday
former_member200339
Participant
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 14/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
jeffrey_towell2
Explorer
1172750 75 335
mstitsel
Active Participant
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 15/16
10/22/24, 3:05 PM Script to Extract job Chain details - SAP Community
prashanth01 7
ManasaManu 6
MartinRaepple 5
raunak_varshney 4
vvdries 4
MichalKrawczyk 3
Bhavani_Baisani 3
sooriyasudhakar 3
Copyright Legal Disclosure
fredrik_borlie 3
Trademark Support
Cookie Preferences
FreekKeijzer 3
Follow
View all
https://community.sap.com/t5/technology-blogs-by-members/script-to-extract-job-chain-details/ba-p/13150373 16/16