09-19-2007 10:52 AM
Hi friends,
i have an abap report that needs to run in background because it runs longer than profile timeout parameter allows to. now my question is:
if this report uses dynpro with parameters, how do i have to modify it to run in background and to pass those parameters to ? ( SUBMIT ? ).
Thanks for your help!
Clemens
09-19-2007 11:00 AM
Hi,
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
load each personnel number accessed from the structure into
parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
Reward points if useful....
09-19-2007 10:57 AM
hi,
use the sample code and change it according to ur req..
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
<b>Reward points if useful</b>
09-19-2007 11:00 AM
Hi,
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
load each personnel number accessed from the structure into
parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
Reward points if useful....
09-19-2007 11:04 AM
Thank you so far, helped me a lot!
But how can i tell the report it has to run in background ?
thank you,
clemens