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

Mailing program

former_member497886
Participant
0 Likes
658

Hi All,

I have a requirement, i have to write a program which will take the file in PC as an attachment and send it to the respective mail ids.

The file will be on PC. The problem i am facing is how to take the file from PC as an attachment. This should happen in background.

Regards,

Mohammadi.

5 REPLIES 5
Read only

mvoros
Active Contributor
0 Likes
629

Hi,

obviously if you run any program in background that program does not have access to files on your desktop. You need to get that file to application server and read it from application server. You can split your process into two steps. First you will upload your file to application server and then you will run program which will attach uploaded file and send it to all required users. The first step will have to be executed foreground.

Cheers

Read only

Former Member
0 Likes
629

Hi,

Check out this wiki written by me, this will help you to send XL file as attachments.

You can send multiple attachment.

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/multiple%252battachment%252bon%252be_mai...

Thanks,

Krishna..

Read only

Former Member
0 Likes
629

Hi,

After bringing your final alv data in the final internal table,

go through this link , i also had an same requirement to send data after converting to excel file and

send it as an attachment to mail id outside Sap,

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/to%252bsend%252b2%252bint%252btables%252bdat...

Hope it helps

Regrds

Mansi

Read only

Former Member
0 Likes
629

Hello Mohammadi,

You CANNOT run a Background job to access the desktop files(Presentation Server files).

Sending e-mails is not a problem. There are lot many Wikis on this. You can refer to them.

You need to change the requirement of accessing the files from the Presentation Server.

Thanks,

Babu Kilari

Read only

former_member497886
Participant
0 Likes
629

Solved