‎2007 Jan 31 10:18 AM
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?
‎2007 Jan 31 10:24 AM
I hope you have checked SY-SUBRC after the AUTHORITY-CHECK statement......!
‎2007 Jan 31 10:26 AM
did u checked whether tht object exists in SU20 transaction.
If u didnt find there it wont work
check SU20 & SU21
‎2007 Jan 31 10:30 AM
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.
‎2007 Jan 31 10:32 AM
Hi,
Check the fields whether they are having the values or not
also check the sy-subrc authority check.
Thanks
Shiva
‎2007 Jan 31 10:34 AM
Hi Simmi,
Add this code after AUTHORITY-CHECK :
If sy-subrc <> 0.
Error message.
endif.
Ashvender