on 05-01-2013 5:40 PM
Hello,
We are currently on SAP CPS Version 7.00 Build M26. (I know this is an old version.) I am in need to download a list of all background jobs which have a specific email address as spool recepient.
1) Can I query any database tables to get this information? If so, what are tables I can query?
2) Are there any other ways to create reports to generate list of jobs defined or scheduled in CPS?
Please let me know your thoughts.
Thank You.
Regards,
Venkat.
From the admin guide for M33 versions of CPS, there is a table JCS_JOBDEFPARAM0 which contains the parameters and their default expressions along with job definitions.
You can perform
Select JobDefinitionParameter.JobDefinition from JCS_JOBDEFPARAM0 where JobDefinitionParameter.DefaultExpression = 'sample@mail.com'
But i'm not sure the same table is available in M26.
You can also generate custom report using REL Job type.
Thanks
Nanda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You run the SQL command directly in the database level and export the results as a file report. (or)
you can create a New job definition of type :Redwood Script and paste the following code and save & close.
import com.redwood.scheduler.api.model.report.Reporter;
import com.redwood.scheduler.api.model.report.ReportDestination;
{
String query = "Select JobDefinitionParameter.JobDefinition from JobDefinitionParameter where JobDefinitionParameter.DefaultExpression = 'sample@mail.com'";
Reporter reporter = jcsSession.createReporter(jcsOut);
ReportDestination dest = reporter.getCSVReportDestination();
jcsSession.executeQuery(query, null, dest);
}
Then run the job, and you will get an output in CSV format.
Thanks
Nanda
HI Nanda,
Here I have some different issue, i am getting the mails but the content of the mail is coming in single line.i want it to be structured.
i have tried HTML codes,REL expressions, but every thing is coming in a single line.
is there any way out i can structure the content of my mail.
thanks ,,
Neha
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.