Application Development 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: 

how to restrict user at selection screen while executing in background mode

deepak_kumar11
Participant
0 Kudos

hi all,

how to restrict user at selection screen while executing in background mode

Regards

Deepak

5 REPLIES 5

Former Member
0 Kudos

HI,

Put a check in at selection-screen event.

if sy-batch eq 'X'.

message e000 ' Throw error message'.

ENDIF

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

start-of-selection.

if sy-batch EQ 'X'.

< throw error message>

endif.