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

Batch Processing OO ALV

Former Member
0 Likes
483

Hello All,

I am stuck up in following problem.

Requirement is to send OO ALV output through mail in background.

In Start-of-selection

CALL SCREEN 2000.

In Screen 2000.

I'm using .. CALL METHOD gw_alvgrid->set_table_for_first_display .

perform send_mail.

I need to send the oo alv output through mail. I have written the code for sending mail inside send_mail. The problem is perform send_mail is not at all getting called.

I debugged in background mode and saw the program stops after executing

set_table_for_first_display method.

Kindly help me out..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
413

Vimal,

In case of ALV, the execution will stop after the table display.

You as such have the data even before the method call, so you should send mail before doing a table display.

Regards,

Ravi

Note - Please mark all the helpful answers

2 REPLIES 2
Read only

Former Member
0 Likes
414

Vimal,

In case of ALV, the execution will stop after the table display.

You as such have the data even before the method call, so you should send mail before doing a table display.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

0 Likes
413

Thanks For the reply..

I tried the way you mentioned but even spool doesnt get generated if I change the order.