cancel
Showing results for 
Search instead for 
Did you mean: 

Select-Options under if Condition.

Former Member
0 Kudos

Hi all,

I have a scenrio where depending upon the logged in user I have to decide whether to display him the parameters screen or not.

That is first I need to check who is looged on and if he's the admin then I should show him the selection screen on the parameters.

Please Guide.

Thank You

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

U need a code like this:

SELECT-OPTIONS: S1 FOR .... MODIF ID ADM.

AT SELECTION-SCREEN OUTPUT.

   IF SY-UNAME <> ........
     LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'ADM'.
           SCREEN-ACTIVE = 0.
           MODIFY SCREEN.
        ENDIF.
     ENDLOOP.
   ENDIF.

Now I can't know how you can understand if the user is the administrator, probably u can check some authorizations.

Max

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks for the replies