Skip to Content
avatar image
Former Member

Optimized way of Authorization check for select options

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.

Add comment
10|10000 characters needed 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.

  • Get RSS Feed

1 Answer

  • 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

    regards

    Fred

    Add comment
    10|10000 characters needed characters exceeded