on 12-08-2008 6:48 PM
Hello,
I have three Similar forms which are triggered from Sales Order, Delivery & Shipment respectively. Now, the requirement is to send the Form Output as PDF Attachment in a mail. But the Problem I am facing is that the Shipment Output goes as PDF attachment and when opened, it is displayed correctly. However, when the Sales Order & Delivery PDFs are sent as attachments, then the Adobe Reader says
"The File is Corrupted or damaged hence cannot be opened". This is the Message I get when processed from the Delivery. For the Sales Order, the Mail Output triggers with an error in SOST.
We have the Mail Ports open during Testing and I am using the latest version of Adobe Reader. Can someone give me any resolution to handle the Damaged PDF File?
Thanks and Regards,
Venkat Phani Prasad Konduri
Hi check this wiki on form to pdf conversion
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe your code is wrong. I have the same problem. This article help me
https://mysapnuts.blogspot.com/2016/09/send-adobe-form-as-email-attachment.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Read the blog posted at the following web-link http://pdfutility.blogspot.com/2013/11/perform-pdf-repair-when-issues-bother-you-while-viewing-data....and know easy solution about PDF files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know if the solution was provided to the one who put this query or not, but i would rather recommend a solution i found this morning while finding a solution to repair my PDF file.
I've download SysInfoTools PDF Recovery tool. But because i downloaded a demo version, i wasn't able to save the repaired file. But i think i'll surely get a license for this. This is wonderful friends, you may prefer this in future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Query Resolved. Used the CL_BCS class to send mail and its working fine.
Thanks and Regards,
Venkat Phani Prasad Konduri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Konduri,
check the function module 'CONVERT_OTF' have you passed to the other forms.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = V_LEN_IN ---> bin_filesize
TABLES
OTF = I_OTF
LINES = I_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use FM CALL FUNCTION 'CONVERT_OTF' instead of CALL FUNCTION 'CONVERT_OTF_2_PDF'.
if you are using CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' to convert internal table obtaining to convert binary to string from CALL FUNCTION 'CONVERT_OTF_2_PDF' FM then comment CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' FM.
Thanks,
Sree.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.