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

how to run batch mode

Former Member
0 Likes
820

how can we run a report in batch mode.

my requirement is i have to email my output when i run the report in batch mode.

pls help me out with this..

how can we run a report in batch mode.

my requirement is i have to email my output when i run the report in batch mode.

pls help me out with this..

5 REPLIES 5
Read only

Former Member
0 Likes
737

Check for SY-BATCH = 'X'.

If so send a mail else show that in the ALV.

Regards,

Prakash.

Read only

0 Likes
737

how can u send it to email i have field called email in my selection screen.how can we maintain in batch mode

Read only

Former Member
0 Likes
737

Hi,

In you code check if sy-batch eq 'X'.

then use standard FM to send the output as attachment via email.

Rgds,

HR

Read only

Former Member
0 Likes
737

hi,

try transaction sm36.

as step your programm, as spool list recipient!

yours michael

Read only

Former Member
0 Likes
737

Hi,

use if sy-batch = 'X'.

call function 'CONVERT_OTFSPOOLJOB_2_PDF'

'RS_SEND_MAIL_FOR_SPOOLLIST'

call fnction 'SO_SEND_MAIL'.

SO_NEW_DOCUMENT_ATT_SEND_API1'

endif.

Regards

Amole