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 Check

Former Member
0 Likes
3,029

Hi ,

I need to check if the user is authorized to read from the specified sales organisation via an authority check...

How do i go about it..please help...

Thanx and regards,

Srestha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,572

Hi Srestha,

try using Authorization object

M_IS_VKORG - LIS Standard Analysis: Info Structure / Sales Organization

This is mostly used in Sales LIS reports to check the users access.

Cheers

VJ

Hi Srestha,

try using Authorization object

M_IS_VKORG - LIS Standard Analysis: Info Structure / Sales Organization

This is mostly used in Sales LIS reports to check the users access.

Cheers

VJ

11 REPLIES 11
Read only

Former Member
0 Likes
2,573

Hi Srestha,

try using Authorization object

M_IS_VKORG - LIS Standard Analysis: Info Structure / Sales Organization

This is mostly used in Sales LIS reports to check the users access.

Cheers

VJ

Read only

0 Likes
2,572

Hi,

try using the following code snipet:

authority-check object 'V_VBRK_VKO'

id 'VKORG' field s_vkorg-low

id 'ACTVT' field '03'.

if sy-subrc ne 0.

message exxx.

endif.

regards

Olaf

Read only

Former Member
0 Likes
2,572

    AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'
         ID 'ACTVT' FIELD '*'             
         ID 'VKORG' FIELD p_vkorg.

pass sales org to p_vkorg.

~thomas

Read only

0 Likes
2,572

Hi ,

Can u please tell me why the ACTVT field is used and how do i get the obj name..''V_VBAK_VKO'..

Thnx and regards,

Srestha

Read only

0 Likes
2,572

1) You could find it from SUIM==>Authorizations ==> Authorization object ==>

ACTVT normaly defines the authorization level parameter

in which * means it will check all

1 for create

2 for change

3 for display

hope this helps you

~thomas.

Read only

0 Likes
2,572

Hi Srestha,

ACTVT field defines what activity access the user has got.

01 - create

02 - Change

03 - Display

To answer your question on how to get the authorization object

just goto SU24 tcode. Select the first radio button option and enter VA01 and execute. The sysetm will display a list double click on the VA01 tcode to see all the authorization objects being called by the transaction. If you browse through the details u will find the object.

Cheers

VJ

Read only

0 Likes
2,572

Hi srestha,

1. Can u please tell me why the ACTVT

Any document in the system,

can either be

displayed,

edited,

inserted,

deleted etc.

2. To check whether the user has

such authorisations for such different

ACTIVITES, the authotirsation object,

(apart from the sales organisation,

contains field ACTVT also)

3. the codes are

01 Create or generate

02 Change

03 Display

04 Print, edit messages

05 Lock

06 Delete

regards,

amit m.

Read only

Former Member
0 Likes
2,572

Hi,

U will find the list of authorization objects in the transaction SU21, under SD(Obj. Class).

From the list u can pick appropriate obj. based on ur program requirement.

For a straight forward authorization on Sales Org., use this.

AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'

ID 'VKORG' FIELD p_vkorg

  • ID VTWEG FIELD p_vtweg

  • ID SPART FIELD p_spart

ID 'ACTVT' FIELD '03'.

Where p_vkorg is selection-screen parameter for sales org

and p_vtweg for Disc. Channel (commented)

and p_spart for Division. (commented)

Activity (ACTVT) = '03' (for Display)

= '02' (for Change)

= '01' (for Creation)

select as per ur requirement.

Try to perform this authority check object activity under AT SELECTION-SCREEN event.

Feel free to allocate points, if u feel better.

Regards,

Chandhan

Read only

Former Member
0 Likes
2,572

hi,

can u send me ur mail ID i send to u a PPT file of authorization object

chetan

Read only

0 Likes
2,572

hi chetan can you send me the PPT FOR authorization object

mail-id :[email protected]

Read only

0 Likes
2,572

can you send me PPT for authorization object

mail-d: [email protected]

with regards

reddy