cancel
Showing results for 
Search instead for 
Did you mean: 

PDF Conversion error

Former Member
0 Kudos

Hello Everyone,

I have converted a smartform to PDF using "CONVERT_OTFSPOOLJOB_2_PDF" and wanted to email the PDF. After I converted my smartform to PDF using the above FM, I am trying to email the PDF output by using "SO_NEW_DOCUMENT_ATT_SEND_API1". It is sending the email with attached PDF. But, when I open the PDF it is only displayed half and it is giving an error message "A number is out of range". Has anyone got this error message before. I have searched on SDN but wasn't able to find any solution for this problem. Please help me in resolving this issue. I would greatly appreciate your help.

Regards,

Gopal.

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

Hello, this question has been answered many times, you should be able to find the solution easily. The best shot you have is not to use SO_NEW_DOCUMENT_ATT_SEND_API1, use BCS classes instead. You can find these through google easily as well.

Maybe this document can help you: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf806... use the part to mail the form.

Regards Otto

p.s.: /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

Do not miss: http://wiki.sdn.sap.com/wiki/display/ABAP/SendingMails-HomePage Otto