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: 

AUTHORITY-CHECK problem

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi,

I am using the following coding.

i_tvbuk-vkbur = '0230', '4010'.

actvt = '16'

i'm having the authorziation for '0230' only.

while i'm executing '4010' i give the output.

how to correct. ?

AUTHORITY-CHECK OBJECT 'Z.VKBUR'

ID 'ACTVT' FIELD actvt

ID 'VKBUR' FIELD i_tvbuk-vkbur.

check sy-subrc <> 0.

MESSAGE e000(su) WITH

'You do not have necessary authorisation'

'for the selection!!!'.

thanks & Regards,

Vallamuthu.M

14 REPLIES 14

GauthamV
Active Contributor
0 Kudos

You have to manintain this authorization object with those values

in role or profile in SU01 transaction.

0 Kudos

it's maintained in su01.

Thanks & Regards,

Vallamuthu.M

sujeet2918
Active Contributor
0 Kudos

Hi,

Can you check Authorization already you have created. check whether this blocks this table field or not.

Have a Nice Day,

Regards,

Sujeet

Former Member
0 Kudos

Hi,

For this you need the display authorization for '4010' also, for getting the output.

For this make the activity to display code.

Former Member
0 Kudos

Hi,

Please check your Authorization object in transaction 'SU21' . There you will come to know the appropriate authorization for your objects

0 Kudos

Already there.

Thanks & Regards,

Vallamuthu.M

0 Kudos

Hi,

Your requirement is not very clear.. Could you please elaborate your problem so that i can have a clear picture..

0 Kudos

we give authorziation for the user based on the sales office(VKBUR).

but all the user run all the sales office.

we create on object Z.VKBUR.

Basis people done his work clearly

_________________________________

Object | Field | Value (interval) => su24

__________________________________|

Z.VKBUR | ACTVT | 03 ==> Display

| | 16 ==> execute

| VKBUR | $VKBUR

_________________________________

i_tvbuk-vkbur = '0230', '4010'.

actvt = '16'

I'm having the authorization for '0230' only.

while I'm executing '4010' i give the output.

how to correct. ?

AUTHORITY-CHECK OBJECT 'Z.VKBUR'

ID 'ACTVT' FIELD actvt

ID 'VKBUR' FIELD i_tvbuk-vkbur.

check sy-subrc 0.

MESSAGE e000(su) WITH

'You do not have necessary authorisation'

'for the selection!!!'.

Former Member
0 Kudos

Hi,

Please try this ,



 AUTHORITY-CHECK OBJECT 'Z.VKBUR'
                       ID 'ACTVT' FIELD '03',    <---------Please specify the exact field value
                       ID 'VKBUR' FIELD i_tvbuk-vkbur.
check sy-subrc 0.
MESSAGE e000(su) WITH
'You do not have necessary authorisation'
'for the selection!!!'.

Please let me know if this is not working

0 Kudos

it is not working. it displays all.

Thanks & Regards.

Vallamuthu.M

0 Kudos

Hi,

Can you let me know how are you filling up 'i_tvbuk-vkbur'...

0 Kudos

i solved own

0 Kudos

HI,

Hi,

Can you let me know how are you filling up 'i_tvbuk-vkbur'...

If you have more than one in 'i_tvbuk-vkbur' it will not work...

To resolve this you have to check the authorization either inside loop so that you get single value for this field or use a rad statement...

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Solved myself

i gave actvt = '03'

Edited by: vallamuthu madheswaran on Jun 16, 2009 10:26 AM