Application Development and Automation 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: 
Read only

upload pdf file from application server.......

Former Member
0 Likes
743

Hi...... Experts...

I have a requirement to upload pdf file from application server and send it as attachment Via mail..

Can anyone helps me...

Thank you in advance...

3 REPLIES 3
Read only

Former Member
0 Likes
431

google your requirement. this is most common query and has many responses and code samples on SDN and also check the sample codes for mail sending using classes in SAP

Read only

bi7kiran
Active Participant
0 Likes
431

HI

Since the file (PDF or WORD) is on the application server, you need to use the OPEN DATASET and READ DATASET to process the contents into an internal table.

Hit Button F1 on DATASET to get more details.

Once the data is read on the internal table, you can use the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to maeil the contents as an atachment

Please refer to the thead below

a.

b.

Hope this may be help ful

Many thanks

Kiran

Edited by: Kirun k on Jul 8, 2009 7:37 AM

Edited by: Kirun k on Jul 8, 2009 7:39 AM

Read only

Former Member
0 Likes
431

thank you