09-10-2007 3:21 PM
hi all,
how to restrict user at selection screen while executing in background mode
Regards
Deepak
09-10-2007 3:22 PM
HI,
Put a check in at selection-screen event.
if sy-batch eq 'X'.
message e000 ' Throw error message'.
ENDIF
09-11-2007 6:16 AM
Hi,
sy-batch is not set to X at selection screen event....its is only geting set at start-of-selection ....& i want to restrict user at selection screen only
regards
Deepak
09-10-2007 3:22 PM
Hi,
Write a logic in the event LOAD OF PROGRAM.
IF sy-uname = 'ABC'.
MESSAGE ' You have no Access to run the report'.
ELSE.
Dont don anything.
ENDIF.
Cheers
VJ
09-10-2007 3:24 PM
Hi,
We can get the Program whether this is running in background or not then we need to use SY-BATCH, if the SY-BATCH is set to X then the program is running in Background,
so in the INITIALIZATION event, you can use this SY-BATCH and check the User names, and give the error messsage which you want to restrict
Regards
Sudheer
09-10-2007 3:25 PM
start-of-selection.
if sy-batch EQ 'X'.
< throw error message>
endif.