2009 Oct 29 2:04 PM
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.
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.
2009 Oct 29 2:31 PM
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
2009 Oct 29 2:44 PM
> 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
2009 Oct 29 2:51 PM
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.
2009 Oct 29 3:16 PM
then... pass all the item numbers at a time as in a select option...
2009 Oct 29 4:18 PM
Yes, you can use range to pass all the data at a time.
Use select-options instead of parameters on ABC program
2009 Oct 29 3:09 PM
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
2009 Oct 29 5:13 PM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |