Skip to Content

Optimized way of Authorization check for select options

Nov 09, 2017 at 08:36 AM


avatar image
Former Member

I have two select options fields for plant and I need to write the authorization check.

One way is to loop at the select options and write the authorization check.please suggest more optimized way.

10 |10000 characters needed characters left characters exceeded


I doubt if we have any other atlernative way to check the authoristion check for multiple plants.

Also alternatively explore,if we have any FM to get the list of authorised Plants from User ID.

Let's await experts replies.


* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Nov 09, 2017 at 09:23 AM

make a SELECT statement on the table T001W with your SELECT-OPTIONS.

Control each return value WERKS with your AUTHORIZATION-CHECK, exclude the result with SY-SUBRC <> 0

and put the result in a RANGES (I think we should not used anymore RANGES ..) (control the number of entries)

After this in the program you use the RANGES and not the SELECT-OPTIONS



10 |10000 characters needed characters left characters exceeded