‎2009 Dec 16 10:24 AM
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
‎2009 Dec 16 10:30 AM
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.
‎2009 Dec 16 12:15 PM
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.?
‎2009 Dec 16 12:20 PM
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).
‎2009 Dec 16 10:33 AM
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