Hi All,
I have a table with table maintenance. A transaction code is attached to it. I want to have an Authority-Check for a Company Code for the said table maintenance. So I created EVENT 25 for my custom table, and added the authority check. However, during debug mode, the authority check is giving a return code of 0, which mean my authority check is successful. The test ID that I am using is not assigned for the company code, which means that the authority check should fail, but this is not the case.
AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
ID 'ACTVT' FIELD '03'.
IF sy-subrc NE 0.
MESSAGE e000 WITH text-001.
ENDIF.
There is no field for BUKRS in the table. Is my code correct? How should authority check proceed when there is no field Company Code for it?
Thanks,
Louisse