Skip to Content
0

Optimized way of Authorization check for select options

Nov 09, 2017 at 08:36 AM

46

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

Javed,

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.

K.Kiran.

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

1 Answer

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

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

regards

Fred

Share
10 |10000 characters needed characters left characters exceeded