2006 Sep 26 12:32 PM
Dear All,
Please let me know whether I can execute a report which doesn't has a selection-screen, in background, <b>using a variant</b> ?
Alok.
Dear All,
Please let me know whether I can execute a report which doesn't has a selection-screen, in background, <b>using a variant</b> ?
Alok.
2006 Sep 26 12:35 PM
Hi,
In order to restrict the user to run it only in background , you can as well check for SY-BATCH condition.
The other way is try to remove "execute in foreground" option from the menu and this can be done with the function module .
Do reward points if useful and close the thread if the doubt is cleared
data: begin of int_exc occurs 0,
code like sy-ucomm,
end of int_exc.
data wf_repid .
initialization.
clear int_exc.
int_exc-code = 'ONLI'.
append int_exc.
int_exc-code = 'PRIN'.
append int_exc.
move: sy-repid to wf_repid .
call function 'RS_SET_SELSCREEN_STATUS'
exporting
p_status = '%_00'
p_program = 'wf_repid'
tables
p_exclude = int_exc
Regards,
Ram
Pls reward points if helpful....
2006 Sep 26 12:35 PM
Hi,
If you do not have a selection screen then you will not be having any variant also.
Thanks.