Application Development and Automation 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: 
Read only

Optimized way of Authorization check for select options

Former Member
0 Likes
636

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.

2 REPLIES 2
Read only

kiran_k8
Active Contributor
0 Likes
538

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.

Read only

FredericGirod
Active Contributor
538

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