cancel
Showing results for 
Search instead for 
Did you mean: 

Reporting in SAP CPS

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

nanda_kumar21
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hello Nanda,

Thank you for the response. Where do we run this query? Is it in Oracle database of CPS? Please let me know. Thank You.

Regards,

Venkat.

nanda_kumar21
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

nanda_kumar21
Active Contributor
0 Kudos

Hi Neha,

Your question is not related to this discussion, please open a new discussion and provide more information like your cps build version, how are you sending email out, screenshots, etc..

thanks

Nanda

Former Member
0 Kudos


HI Nanda,

thanks for the reply, my issue has been resolved now.

Regards,
neha

former_member697310
Discoverer
0 Kudos

Hi Nanda, Can you help me is there any way that I can pull a report with only job names with all respective spool list recipients in redwood?