2006 Aug 14 10:36 AM
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
2006 Aug 14 10:43 AM
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
2006 Aug 14 10:43 AM
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
2006 Aug 14 10:45 AM
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
2006 Aug 14 10:44 AM
AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'
ID 'ACTVT' FIELD '*'
ID 'VKORG' FIELD p_vkorg.pass sales org to p_vkorg.
~thomas
2006 Aug 14 10:53 AM
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
2006 Aug 14 10:59 AM
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.
2006 Aug 14 11:01 AM
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
2006 Aug 14 11:01 AM
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.
2006 Aug 14 12:37 PM
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
2006 Aug 14 1:12 PM
hi,
can u send me ur mail ID i send to u a PPT file of authorization object
chetan
2006 Aug 24 7:44 AM
hi chetan can you send me the PPT FOR authorization object
mail-id :[email protected]
2006 Aug 24 7:46 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |