Application Development 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: 

Problem with PDF attachment.

0 Kudos

Hello SAPients.

I have a program that converts a SmartForm to PDF using fm 'CONVERT_OTF' and apparently it does it correctly. The program also sends the PDF as attachment in an email using fm 'SO_DOCUMENT_SEND_API1' and sends it without problems. The only problem I have is when I try to open the PDF attached to the email. The Acrobat Reader generates an error message and only shows a blank screen. Even sometimes, the reader doesn't generate any error, it just shows a tiny blank screen. I can send the output to the spool or to the printer and everything works fine. The problem occurs only when I want to send the output in an email. I have tried a lot of things but nothing seems to work. Do you have an idea of what's happening? I'm working with R/3 4.6C.

Thank you.

2 REPLIES 2

Former Member
0 Kudos

Hi Ricardo,

That means, problem with FM CONVERT_OTF. Try to debug, check whether u r getting data after this FM. Its better to use FM CONVERT_OTF_2_PDF.

I think, it solves ur problem.

regards,

Chandra.

Note: Please reward if helpful.

Former Member
0 Kudos

Hi Ricardo,

do you have the right file-size for the

PDF-Attachment. I think thats the problem.

Regards, Dieter