Application Development 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: 

AUTHORITY_CHECK_TCODE Debugging (How)

Former Member
0 Kudos

I did a ST01 to check on authorization triggered during VL02N. Since there are changes to header output type with immediate timing (Time = 4), from the trace it is triggering several tcodes (VL31N, LT03, VL70 and VL75 to name a few).  If i check on the source it will show me FM AUTHORITY_CHECK_TCODE.

But when I put a breakpoint to that FM it is never triggered.  I even test it on SE37 but the code itself is not being triggered it goes to another code.

How do you actually debug this FM? I need this because I need to trace when is this check is being triggered on VL02N.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

That fm belongs to a system program (try to see the attribute of the main program, the status program is S).

This kind of program are usually skipped in debug, if you want to debug it you need to set SYSTEM DEBUGGING option (under voice Setting).

Max

3 REPLIES 3

TuncayKaraca
Active Contributor
0 Kudos

Hi c z,

Maybe S_TCODE authorization object is called directly by using AUTHORITY-CHECK statement.

Former Member
0 Kudos

Hi

That fm belongs to a system program (try to see the attribute of the main program, the status program is S).

This kind of program are usually skipped in debug, if you want to debug it you need to set SYSTEM DEBUGGING option (under voice Setting).

Max

0 Kudos

hello,

Please check the include 'MV50AF0C_CHECK_TCODE_AUTHORIZA' in program SAPMV50A. It has a 'AUTHORITY_CHECK_TCODE' call. Put a break point here and try to debug, it might help you.

best regards,

swanand