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

executing a report in background,without selection scr with a variant

Former Member
0 Likes
490

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.

2 REPLIES 2
Read only

Former Member
0 Likes
458

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....

Read only

Former Member
0 Likes
458

Hi,

If you do not have a selection screen then you will not be having any variant also.

Thanks.