Skip to Content
avatar image
Former Member

Authorization check for plant


I need to creat an authorization object with field Plant

In my user exit I need to check for that particular plant , if authorized proceed else exit.

how can achive this.

Please provide me the Step by step procedure.

Appropriate answers willb e rewarded.

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 16, 2008 at 11:21 AM


    Create an authorisation object in su21.

    Then in the code use it like:


    ID 'ACTVT' FIELD <activity type> "what sort of activity like display, change etc

    ID 'BEGRU' FIELD <mara-begru>. "here specify the field name

    Add comment
    10|10000 characters needed characters exceeded

    • created one field in su20(ZWERKS)

      Not ZWERKS it should be WERKS .here save your efforts.

      in aurthorization tab>change aurthorization data>selected sap_all
      saved generated

      selected sap_all

      saved generated this is wrong also from change aurthorization data here you must select all plant values except 3AA0.

      and make sure in aurthorization tab green light should be there after generate.cause in this process this screen bit buggy.

      Update:from SU21 you must create both Authorization object and class from create button(drop down).and make sure in Authorization object you assing the both class and field(werks which you already created in su20)