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: 

help in sending email with attachment

Former Member
0 Kudos

Hi Experts,

I have developed a code which takes a pc file and change gets its binary content. later I am using the email send from class CL_BCS to send the mail.Its working very fine when I am executing it my Id, however it fails when I am using it as a background step in the workflow.Can anyone pls tell the reason

Thanks

Papiya

4 REPLIES 4

Former Member
0 Kudos

Hi,

Are you using any GUI related Upload classes?! Because, they never work in the background.

V

0 Kudos

Hi,

Yes I am using Gui_Upload , any updates you can give on this.

Thanks

Papiya

0 Kudos

Hi Papiya,

GUI_UPLOAD doesn't work in background since it involves the presentation server. You can only use the Application server in Background.

Do the following instead.

1. Create a file in AL11 ( By using CG3Y / CF3Z Transaction )

2. You can find the file in AL11 home. (Application server)

3. Open this file in your code using OPEN DATASET, READ DATASET, and CLOSE DATASET.

This will resolve your problem hopefully.

Vijay

Former Member
0 Kudos

Hi,

/message/1091285#1091285 [original link is broken]

Regards,

Flavya