Skip to Content
author's profile photo Former Member
Former Member

User Exit used in CAT2 tcode for Authorization check of a user

Hi,

I need a User Exit for checking the Authorization check of a User. kindly provide me related exits or Badi.

My requirement is, I need to check whether the company code written by a user/employee is belonging to same Company code,else I need to throw an Error message or restrict the user not to allow him to save it.

I already tried using the enhancement CNEX0002, but my code is not getting triggered, allowing the user to Save.

Kindly provide your valuable inputs.

Regards,

Karthikeyan G.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2014 at 10:25 AM

    Hi,

    Please try FM "EXIT_SAPLCATS_003". You can validate in "FIELDS-BURKS" and export the error messages into "I_MESSAGES" table.

    Regards,

    K.Srikanth Reddy.

    Add a comment
    10|10000 characters needed characters exceeded

    • Did you activate your project thru CMOD ?

      • CATS0002 / EXIT_SAPLCATS_002 allows to "Supplement recorded data" seems not be the good one (is not intended to return error)
      • CATS0003 / EXIT_SAPLCATS_003 (as Srikanth Reddy already wrote) allows to perform your checks, it will only be called if duration is not initial (so if some CATSDB record will be written to database) so "Validate recorded data"

      Else to find an authorization related to company code, use SU20 to find BUKRS, then display the list of authorization objects that use it and cross it with your user roles.

      Regards,

      Raymond

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.