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
736

Hi Experts,

i have created an Authorization object using SU21.

In the object say ZGE_FITEST  I included

Fields SAKNR -> G/L Account Number (value 89000)

and ACTVT  -> show

In the Transaction PFCG i included manually in the Roll of a user this Object

My intention is athat the user is only authorized to see bookings only in this Account

and change no values or see any values on any other accounts

Unfortunately the Authorization check is not working.

Can an body help.

I am very grateful for any help

King

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
669

Did you add your own authority-check(s) in some BAdI or validation rule, if no, nothing will happen.

(Some Authority check are implicitaly executed like S_TCODE when calling a transaction, but most must be coded with statement AUTHORITY-CHECK and some FMs)

So you must add your check in some BAdI, Enhancement or rules so the authority-check get performed, also you must code the reaction of the reports and programs, like ignoring or deleting some data, no pain...

Also perform some search on field BEGRU (in tables like KNA1, KNB1, LFA1, LFB1, SKB1, etc.) this field is used in some standard authorization-checks and is an attribute of account numbers.

Regards,

Raymond

Hi Experts,

i have created an Authorization object using SU21.

In the object say ZGE_FITEST  I included

Fields SAKNR -> G/L Account Number (value 89000)

and ACTVT  -> show

In the Transaction PFCG i included manually in the Roll of a user this Object

My intention is athat the user is only authorized to see bookings only in this Account

and change no values or see any values on any other accounts

Unfortunately the Authorization check is not working.

Can an body help.

I am very grateful for any help

King

2 REPLIES 2
Read only

JL23
Active Contributor
0 Likes
669

did you add this new authorization object to a transaction? how shall SAP know that this new object  is to be checked?

in SU24 you can assign it to a transaction

Read only

RaymondGiuseppi
Active Contributor
0 Likes
670

Did you add your own authority-check(s) in some BAdI or validation rule, if no, nothing will happen.

(Some Authority check are implicitaly executed like S_TCODE when calling a transaction, but most must be coded with statement AUTHORITY-CHECK and some FMs)

So you must add your check in some BAdI, Enhancement or rules so the authority-check get performed, also you must code the reaction of the reports and programs, like ignoring or deleting some data, no pain...

Also perform some search on field BEGRU (in tables like KNA1, KNB1, LFA1, LFB1, SKB1, etc.) this field is used in some standard authorization-checks and is an attribute of account numbers.

Regards,

Raymond