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: 

Check access of Sale organization

Former Member
0 Kudos
291

Dear Expert,

Is it possible to check user sales organization level access when i am execute the Z report.

Thankx,

Denish Patel

4 REPLIES 4

Former Member
0 Kudos
80

AUTHORITY-CHECK OBJECT 'V_VBKA_VKO'
         ID 'VKORG' FIELD '__________'.

IF SY-SUBRC NE 0.
  MESSAGE 'No Authorisation for Sales Organization' type 'E'.
ENDIF.

Thanks

Ganesh

naimesh_patel
Active Contributor
0 Kudos
80

You can use the Authority Object V_VBAK_VKO.

Like:


      AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'    
           ID 'VKORG' FIELD VBAK-VKORG       
           ID 'VTWEG' FIELD VBAK-VTWEG       
           ID 'SPART' FIELD VBAK-SPART       
           ID 'ACTVT' FIELD DUMMY.        

Regards,

Naimesh Patel

Former Member
0 Kudos
80

Dear Experts,

Thank you for Reply. But now authority check should be on Plant level. Is it Possible on plant like Sales Organization?

Thanks in advance.

Denish Patel.

Former Member
0 Kudos
80

Req. is changed.