12-12-2008 6:02 AM
Hi all,
I have an authorization object 'YTEST_VOL1',and would like to know why it is not getting accessed even though I am an authorized user.
Can any one let me know how to debug the code inside the following code..?
authority-check object 'YTEST_VOL1'
id 'Y_APPL' field lv_application_id
id 'Y_ENDPOINT' field lv_endpoint_name
id 'Y_BYTE_CNT' field lv_byte_count.
if sy-subrc eq 0.
rvv_flag = 'X'.
endif.
Thanks,
Ram
12-12-2008 9:24 AM
What happens if rvv_flag = 'X'?
What is rvv_flag before the authority check?
A possibly better option would be to check sy-subrc NE 0... then rvv_flag = ' '.
That way, all users are authorized, unless they fail the authority check.
You need to post the rest of your code relating to rvv_flag...
Cheers,
Julius
12-12-2008 9:24 AM
What happens if rvv_flag = 'X'?
What is rvv_flag before the authority check?
A possibly better option would be to check sy-subrc NE 0... then rvv_flag = ' '.
That way, all users are authorized, unless they fail the authority check.
You need to post the rest of your code relating to rvv_flag...
Cheers,
Julius