2009 Dec 23 6:49 AM
Dear experts,
I required a little complex input.
Material
Plant
Required qty
Every material has one to one relation with Required qty.There can be multiple materials given as input with their respective
quantities.To take this input i worked on a module pool screen.Used Table control grid to take input for two columns and
called my rport on button push as below:
module USER_COMMAND_1111 input.
if sy-ucomm = 'BSHOW'.
perform main.
endif.
endmodule.
form main.
process data and show report.
endform.
I find report coming in foreground.Now what strikes me is thatr i may be required to call same report in background.
How shall i do this ?.Am i right up to here ?
Dear experts,
I required a little complex input.
Material
Plant
Required qty
Every material has one to one relation with Required qty.There can be multiple materials given as input with their respective
quantities.To take this input i worked on a module pool screen.Used Table control grid to take input for two columns and
called my rport on button push as below:
module USER_COMMAND_1111 input.
if sy-ucomm = 'BSHOW'.
perform main.
endif.
endmodule.
form main.
process data and show report.
endform.
I find report coming in foreground.Now what strikes me is thatr i may be required to call same report in background.
How shall i do this ?.Am i right up to here ?
2009 Dec 23 7:17 AM
Hi Aditya,
1. You can display an ALV using *LEAVE TO LIST-PROCESSING" statement before the ALV code in module pool.
Alternative to run in background
2. Give a checkbox on module pool to run in background..
If that has been selected run the report/alv in background instead of foreground..
hope this helps resolving your issue
Nag
2009 Dec 23 7:21 AM
No not agreeing to you.I am little hopefule that if i bring F9 function key to my GUI status things may work.But i am not able to do so.
2009 Dec 23 7:26 AM
F9 is nothing but setting SY-BATCH flag to 'x'.
If u want to run in background just set the the flag for SY-BATCH.
instead of online o/p spool would be generated
Nag
2009 Dec 23 8:31 AM
Yea,but without using leave to list-processing i can see ALV output
2009 Dec 23 8:44 AM
Setting sy-batch to X will mean background though but what when i need to change static spool paraameters
2009 Dec 23 8:49 AM
Hi..
when u want in background you can call a llar popup and pass the paramters Print attributes of ALV
else
You can write a separate report for ALV display and via selection screen you can achieve all these..
Nag
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |