‎2017 Nov 09 8:36 AM
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.
‎2017 Nov 09 9:18 AM
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.
‎2017 Nov 09 9: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
regards
Fred