09-10-2009 9:07 AM
Hi Guys,
I have a requirement in which .pdf file would be uploaded to Apllication server through CG3Z . I need to read that file from application server & convert into pdf & send in mail as attachement . Also in fax .
Any one has handled similar in past or idea which can help . Please let me know your suggestions .
Of course helpful answers would be rewarded.
Thanks and Regards
San
09-10-2009 9:15 AM
Hi,
As it will be there in the application server, just use OPEN DATASET to load it into a internal table and attach the internal table to the Mail send FM.
You can refer the following source code for sending mail with pdf as attachment;
http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm
Regards
Karthik D
09-10-2009 9:37 AM
Hi Karthik,
I have uploaded my file to Application server through CG3Z , Now when i will read it using Open Data set & Read data set in Binary mode .
It will give me some Binary code right . How i will convert it so that original contents of .pdf file can be sent in attachment . May be i am missing something . One more thing is it's not spool or Smart form print which can be converted through Convert_OTF.
Can u please tell me step or sample code if u have .
Thanks and Regards
San
09-10-2009 9:17 AM
09-10-2009 10:06 AM
Hi Hakim,
Thanks for suggestion but it would be great if u can have my requirement . It's not that much general .
I have uploaded my file to Application server through CG3Z , Now when i will read it using Open Data set & Read data set in Binary mode .
It will give me some Binary code right . How i will convert it so that original contents of .pdf file can be sent in attachment . May be i am missing something . One more thing is it's not spool or Smart form print which can be converted through Convert_OTF.
Can u please tell me step or sample code if u have .
Thanks San
09-10-2009 10:13 AM
hi
in my previous link check the reply from Amit Mittal.He has clearly explained the PDF Process.
Cheers,
Hakim
09-10-2009 11:42 AM
Hi Hakim,
I think which thread you are saying in that pdf file is at Presentation server . I m saying Application server.
If i m missing something please help me.
Thanks San
09-10-2009 6:23 PM
Hi Amit Mittal,
My File is .pdf which User will upload to Application server (CG3Z Tcode ) . I need to read this file from application server & then send as .pdf attachment .
I know there are threads floating but don't see actul solution which are talking about Appl server pdf file .
Thanks in advance .
Thanks San