Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Batch Job Email Problem

Former Member
0 Likes
700

Hi..

We have daily scheduled batch job running and the result is emailed to client.

Currently they are recieving the Report in HTML format. But now, they wanted

to recieve in PDF format.

I searced in SCN and found that, in a Transaction called SCOT, we can make the

setting in SMTP->Internet->Abap list -> to PDF (Currently it is HTML, so i thought that is the issue.!)

So, if we change the settings to PDF this issue will be resolved.!

But Basis has declined this request that, this will affect all the batch job users and will be applied

to all batch jobs.

Is there any way to achieve that, whenever we schedule a batch job in sm36/37, the output

should go as email in PDF ? any changes possible from technical team's end ? any conditions can

be given to send it as PDF instead of HTML ?

thanks,

Padma

4 REPLIES 4
Read only

Former Member
0 Likes
619

Hi,

The basis team is right for SCOT - it may affect other things.

1. If this is a Z report which is run in background, then we can write code

to get the output and convert it to PDF via function modules. then we can write code

to email and attach the pdf.

regards,

amit m.

Read only

0 Likes
619

thanks for quick reply.

Yes all are Zreports only.

they are running many programs in that job.

so how to achieve programatically to get the output of

all in pdf.?

Read only

0 Likes
619

Please have a look at the standard SAP program RSTXPDFT4. This program takes a Spool number as input and converts into a PDF file ( in the location specfied).

Read only

Former Member
0 Likes
619

Hi,

You can develop a program which can run in background and then convert the output into pdf.

You can use "CONVERT_ABAPSPOOLJOB_2_PDF" function module to convert it into pdf.

Regards,

Sunny