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 file from application server & send it through mail

Former Member
0 Likes
695

I have to upload two files from application server. the file name will be provided by user in the selection screen. Do i hav to use file_get_name & use parameter as exporting? and i hav to mail that two files in attachment.how to attach two files? it would be better if one example can be provided.

I have to upload two files from application server. the file name will be provided by user in the selection screen. Do i hav to use file_get_name & use parameter as exporting? and i hav to mail that two files in attachment.how to attach two files? it would be better if one example can be provided.

2 REPLIES 2
Read only

Former Member
0 Likes
439

Hi,

If in the selection screen is entering the logical name...Then you have to use the FM FILE_GET_NAME

Check the link for attaching a file to an EMAIL.

http://www.sap-img.com/abap/sending-mail-with-attachment-report-in-background.htm

Thanks,

Naren

Read only

Former Member
0 Likes
439

from application sever means u have to use Open dataset...Read dataset....Close dataset...Now, u read data into 2 internal tables....There is standard FM in sap which can be used to send email...The fm like "SODocument*"...Search for it...