cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPS - Send jobs status report by mail NOT as attachment

former_member265210
Active Participant
0 Kudos

Hello,

We have a requirement to send a report (jobs run status) via mail that are executed in CPS.

I have configured this way...

job chain

  step1 : call the report to collect the jobs status in "report.html" file

  step 2:  job System_Mail_Send that sends the report generated by the first step 1

          RelativeJob: Step 1, Job 1

          Jobfile : report.html

now the issue is that, I am getting the "repot.html" as a mail attachment.  I have a requirement to collect this repot.html data in mail itself( not as attachment),  how to achieve this?

Regards

Shridhar Gowda

Accepted Solutions (1)

Accepted Solutions (1)

h_carpenter
Active Contributor
0 Kudos

Hi Shridhar Gowda,

You need to create a Mail type job definition and use the following syntax:

${inline_html}

[Attachments]

inline_html=Step 1, Job 1:report.html

So, you create a job definition of type mail, with the above source, and you specify the adressee in the Mail_To parameter. Optionally, you can set a subject.

Regards,

HP

Answers (0)