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

autharization chek

Former Member
0 Likes
274

hi,

how to chek autharization chek in sales order change va02.? how to idenify the authraization group? plz give me sample.

by

jai.

1 REPLY 1
Read only

Former Member
0 Likes
253

Hi,

If you want to restrict user access in VA02 based on sales org / sales office etc, then you need not do anything. Normally it is done at security level using auth group and roles.

If you want to check something programtically then you can use the command

<b>AUTHORITY-CHECK</b>. Let's say you want to check the authorization for sales organization programatically then you would write.

   AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'
         ID 'ACTVT' FIELD '*'             
         ID 'VKORG' FIELD p_vkorg.
   IF sy-subrc <> 0.
      MESSAGE exxx(zxx).
   ENDIF.

Here p_vkorg is the sales org value which you want to check the authorization.

Let me know if you have any question.

Regards,

RS