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

Regarding Authority Check

Former Member
0 Likes
626

Hi Experts!

Is there any way i can do

Authority-check for ranges.

like i have range that is s_vkorg.

can i do a authority check against it.

i tried it like this

AUTHORITY-CHECK OBJECT object

ID name1 FIELD in s_vkorg.

but it gives my an error.

is there anyway we can do that.

thanks in advance

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
596


select * from TVKO into i_TVKO where vkorg in s_vkorg.

loop at i_TVKO.
AUTHORITY-CHECK OBJECT object
ID name1 FIELD in i_TVKO-vkorg. 
if sy-subrc ne 0.
  move 'Y' to v_noauth
endif.
endloop.
if v_noauth eq 'Y'.
  message e999 with 'Not Authorised'.
endif.

Hi Experts!

Is there any way i can do

Authority-check for ranges.

like i have range that is s_vkorg.

can i do a authority check against it.

i tried it like this

AUTHORITY-CHECK OBJECT object

ID name1 FIELD in s_vkorg.

but it gives my an error.

is there anyway we can do that.

thanks in advance

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
597


select * from TVKO into i_TVKO where vkorg in s_vkorg.

loop at i_TVKO.
AUTHORITY-CHECK OBJECT object
ID name1 FIELD in i_TVKO-vkorg. 
if sy-subrc ne 0.
  move 'Y' to v_noauth
endif.
endloop.
if v_noauth eq 'Y'.
  message e999 with 'Not Authorised'.
endif.

Read only

0 Likes
596

Hi thanks for your reply.

just couple of question.

is i_tvko is internal table of type tvko

or is just table with one field vkorg.

and can we use same logic for other types like username and ...

thanks

Read only

0 Likes
596

thanks

got it.

just over looke the loop.

thanks for your help.