Application Development and Automation 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: 
Read only

How to avoid authorization checks while debugging

Former Member
0 Likes
4,431

Hi,

Can anyone let me to know how to avoid authorization checks while debugging

for a standard transaction?

-B S B

6 REPLIES 6
Read only

Former Member
0 Likes
2,276

Hi,

I think we can't avoid those authorization checks for the Std programs, while debugging.

Have to take the help of basis People for doing so.

Regards,

Anji

Read only

Former Member
0 Likes
2,276

Hi,

While debugging try to change sy-subrc value to 0 after each authority check that returns 4

Read only

Former Member
0 Likes
2,276

After executing the AUTHORITY_CHECK function module

change the sy-subrc value to 0. By this way u can skip the authority check.

Thanking you,

JK

Read only

Former Member
0 Likes
2,276

peobabaly the best would be to create a watchpoint for sy-subrc.

whenever it changes it´s value, the debugger will stop.

Thne you can assign 0 to sy-subrc and continue.

Read only

Former Member
0 Likes
2,276

Hello BSB,

To start the debug put /hs will start the system debug.

Then place the break points aat STATEMENT -- MESSAGE and F8

So now the system will stop at the point where it throwing the error message change the value of SY-SUBRC to 0 from 4.

Regards,

Vasanth

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
2,276

Hi

By changing the fields values or sy-subrc or some conditions values realted to authorization checks you can skip that part.But this can be possible only when you have authorization to change field contents while debugging.

otherwise we can't avoid those authorization checks for the Std programs, while debugging.

In that case Have to take the help of basis People for doing so.

Regards

Kumar