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

Submit report repeatedly through loop

Former Member
0 Likes
2,194

Hi Experts,

I need to submit report in loop. For that i have used SUBMIT as follows

loop at itab into wa_it.

SUBMIT ('ABC') VIA SELECTION-SCREEN

WITH s_item = wa_it-item

AND RETURN.

endloop.

The above statement works fine. But i want next item no (wa_it-item) to be filled automatically as soon called report executes for current item number instead of pressing 'BACK' button.

If anybody worked on this please help me.

Thanks and regards,

Shivanand Kalagi.

7 REPLIES 7
Read only

Peter_Lintner
Participant
0 Likes
1,332

Hi!

Please use the option TO SAP-SPOOL ...

then the list (if created) is processed to the spool and no back-button would be necessary!

Kind regards

Peter

Read only

former_member191735
Active Contributor
0 Likes
1,332

> I need to submit report in loop. For that i have used SUBMIT as follows

> loop at itab into wa_it.

> SUBMIT ('ABC') VIA SELECTION-SCREEN

> WITH s_item = wa_it-item

> AND RETURN.

> endloop.

>

> The above statement works fine. But i want next item no (wa_it-item) to be filled automatically as soon called report executes for current item number instead of pressing 'BACK' button.

>

Just take out the selection-screen option since you dont want to go through the selection screen.

You can write as follows

loop at itab into wa_it.

submit abc with with s_item = wa_it-item and return. <<< This will call the program without selection screen but passes the

clear: wa_it. parameters required to the program .

endloop.

Try this.... Sure it works

Read only

0 Likes
1,332

Hi,

Thanks for your response..

But Report should be called with selection screen. Each time Item number should be filled automatically without pressing back button . After execution there is no output list. There will be only status message with selection screen as output.

Regards,

Shivanand.

Read only

0 Likes
1,332

then... pass all the item numbers at a time as in a select option...

Read only

0 Likes
1,332

Yes, you can use range to pass all the data at a time.

Use select-options instead of parameters on ABC program

Read only

Former Member
0 Likes
1,332

Hi,

You can create a range of the values and pass it through the selection-screen, instead of Looping the entire internal table.

Regards,

Subramanian

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,332

Deleted

Edited by: Suhas Saha on Oct 29, 2009 6:14 PM