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: 

PDF FILE on Application server needs to send in mail & fax

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

0 Kudos

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

abdul_hakim
Active Contributor
0 Kudos

Hi

Welcome to SCN.

Please read the rules of engagement before posting your questions.

Please Check the link inorder to find answer to your question.

Cheers,

Hakim

0 Kudos

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

0 Kudos

hi

in my previous link check the reply from Amit Mittal.He has clearly explained the PDF Process.

Cheers,

Hakim

0 Kudos

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

0 Kudos

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