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

problem with authority check

Former Member
0 Likes
707

in the USEREXIT_NUMBER_RANGE program RV60AFZZ, we have an authority check

AUTHORITY-CHECK object 'F_BKPF_BUP'

id 'BRGRU' field t001b-brgru.

This check is not working in the user exit. however when i created a test program to test the syntax for the authority check, it is working fine.

Can anyone let me know what the problem can be?

5 REPLIES 5
Read only

Former Member
0 Likes
594

I hope you have checked SY-SUBRC after the AUTHORITY-CHECK statement......!

Read only

Former Member
0 Likes
594

did u checked whether tht object exists in SU20 transaction.

If u didnt find there it wont work

check SU20 & SU21

Read only

Former Member
0 Likes
594

yes of course I am checking the sy-subrc at the end of the authority check statement . also the authorization object in SU21, SU20. The problem is sy-subrc returns correct value in a test program and not in the user exist.

Read only

Former Member
0 Likes
594

Hi,

Check the fields whether they are having the values or not

also check the sy-subrc authority check.

Thanks

Shiva

Read only

Former Member
0 Likes
594

Hi Simmi,

Add this code after AUTHORITY-CHECK :

If sy-subrc <> 0.

Error message.

endif.

Ashvender