Application Development 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: 

Authorization object

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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