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

Authority Object

bhargava_dns
Participant
0 Likes
693

Hi everybody,

One of my client has requirement that....

say if we have authority object on sales organization.....he want to read the what sales organization he is authorized from the authority object and fill

the sale organization field automatically.

please let me know if any FMs are available.... i have searched the net but could get FMs that can check whether the user is having authorization or not

but couldn't get any FMs that can read the contents of the Authority Object.

Thanks

Bhargava

4 REPLIES 4
Read only

Former Member
0 Likes
638

Get the list of sales organization from the value table. Loop at each entry and find whether user is authorized using the authority check command. if yes, collect it into internal table and use it as per your need.

Read only

Former Member
0 Likes
638

Hi,

normally SPA/GPA VKO will be used for this. Each user can maintain his VKO parameter in SU3.

Regards,

Klaus

Read only

0 Likes
638

This start value can be accessed reading table USR05.

Read only

deependra_shekhawat3
Contributor
0 Likes
638

Hi Bhargava,

You can do something like this. For billing auth. object for sales org is V_VBRK_VKO.

lt_tvko TYPE STANDARD TABLE OF tvko,

       ls_tvko TYPE tvko.

       select *

         from tvko

         into TABLE lt_tvko.


loop at lt_tvko INTO ls_tvko.

AUTHORITY-CHECK OBJECT 'V_VBRK_VKO'

         ID 'VKORG' FIELD ls_tvko-vkorg

         ID 'ACTVT' FIELD '03' .

    IF sy-subrc = 0.

*      consider this sales org for further processing

    ELSE. 

*   Remove sales organization as user dont have authorization to display

    ENDIF.

endloop.

Thanks

Deependra