on 11-22-2010 6:50 AM
Hi all,
My requirment is that i want to convert SAPScript into PDF and send the mail to the user, for that I have used the function module CONVERT_OTF and I had declared all the data declarationfor that .for sending the mail I have used the FM SO_NEW_DOCUMENT_ATT_SEND_API1. As it is sending the mail as PDF successfully but SAPScript is not converting into PDF file. when we open the attached PDF file in the mail is showing the message Format not Supported.
Moderator Message: As you can see, some of the answers psoted here, were copy-pasted from elsewhere. Meaning, it is easily searchable.
Edited by: kishan P on Nov 22, 2010 6:40 PM
Hi,
I guess you do not use the BIN_FILE parameter when calling CONVERT_OTF so therefore the PDF data is returned via table LINES. There can be problems with this in a Unicode system.
e.g. TRANSLATE commands can destroy the PDF data when it is returned this way.
Use parameter BIN_FILE when calling CONVERT_OTF so the PDF data is returned as type XSTRING and use the the example BCS_EXAMPLE_8, which is contained in SAP Note #1324547 to handle the PDF data returned.
Regards,
Aidan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try with 'CONVERT_OTF_2_PDF' function module.
Regards,
karthikeyan . k s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had tried for that function module but it is giving error OTF data missing ,and another thing is that it is converting into PDF file by using both function module i.e. 'CONVERT_OTF_2_PDF' and 'CONVERT_OTF' when I load to local system but when I am sending as email attachment it is showing the error 'format not supported' whole opening the attachment.
<<copy-paste from http://wiki.sdn.sap.com/wiki/display/Snippets/mailsendthroughoutputcontrols removed by moderator>>
Edited by: kishan P on Nov 22, 2010 5:47 PM
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.