Skip to Content
Author's profile photo Caetano Almeida

How to analyze authorization issues in debug

The idea behind this document is to be a quick debug guide for functional consultants and explain how to find in debug which authorization objects are called.

There are many different transactions which are helpful when we are trying to analyze authorizations issue (SU53, SU24…).

However, in some cases it is useful to check the authorization objects in debug.

This is useful, for example, if we want to know exactly on which point of the transaction execution a given authorization object is called or which authorization objects are called for a given action.

In such cases, we can check the authorization objects in debug, using a break-point for the statement AUTHORITY-CHECK, which is used to check the authorization on ABAP.

Let’s analyze an example of how to check the authorization when releasing an order in debug.

Here, we want to know which authorization object is being called to control the release of a production order.

  • The first step is to open a production order on transaction CO02.

CO02.png

  • Before releasing the order we type ‘/H’ on the command to open debug and press enter.
  • Now click the release button and the debug should be triggered.
  • Here, select the menu ‘Breakpoints’ – ‘Breakpoint at’ – ‘Breakpoint at statement’

Debug.png

  • Now, create the breakpoint on command “AUTHORITY-CHECK” as shown on the following picture

/wp-content/uploads/2014/03/statement_414380.png

  • Press F8 and system will stop exactly on the piece of code where the authority check is called.

Debug2.png

Here, we can see that the authorization object B_USERST_T is being checked and we can also see exactly which values are being checked.

Check also the following document for a quick step-by-step to check an error message in debug:

How to analyze an error message in debug

Assigned Tags

      12 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ramagiri Srinivas Rao
      Ramagiri Srinivas Rao

      Hi Caetano,

      Good information for functional consultants. Thanks for sharing your knowledge.

      Thanks & Regards,

      Ramagiri

      Author's profile photo Former Member
      Former Member

      Hi Caetano,

      Thanks for sharing this information.

      Thanks

      Rijil

      Author's profile photo Caetano Almeida
      Caetano Almeida
      Blog Post Author

      Thank you both for the feedback!

      Author's profile photo Former Member
      Former Member

      Once again very nice document 🙂

      Author's profile photo K.Arun Prabhu
      K.Arun Prabhu

      Very useful for testing purposes.

      Thanks a lot 🙂

      Author's profile photo Caetano Almeida
      Caetano Almeida
      Blog Post Author

      Hi K.Arun Prabhu

      Thanks for the feedback!

      BR

      Caetano

      Author's profile photo Former Member
      Former Member

      Hi Caetano,

      Thanks Very useful information , lot of times we guess that error may be coming from some enhancements or user exists or some TVARV parameter not maintained it is difficult to find the root cause especially for standard transactions it would be nice if some one can also explain how to find the root cause for standard transactions

      Thanks

      Shailendra

      Author's profile photo Kashi Yadaram
      Kashi Yadaram

      Hi Caetano,

      Well explained...your posts are really well written.

      Thanks,

      Kashi

      Author's profile photo Former Member
      Former Member

      Hi Caetano.

      Thanks. Clear explanation.

      Regards.

      Author's profile photo shailesh mishra
      shailesh mishra

      Dear Caetano,

      Great post

      Best regards

      Shailesh

      Author's profile photo Dennis Sledge
      Dennis Sledge

      I realize this is untimely but: Very helpful! Thanks for the post.

      Author's profile photo Caetano Almeida
      Caetano Almeida
      Blog Post Author

      You are welcome!