11-16-2011 9:03 PM
Hello,
We have different specific program controlling the field "COST CENTER".
We want controlling in these programs the authorization object "K_CCA" with the famous field "RESPAREA". The goal is to implement the same controlling used by the program of KSB1. I search the function Module used by this program to controlling all authorization hierarchies managed by this field using the authorization object "K_CCA".
In advance thank you.
11-17-2011 12:22 AM
Not sure what exactly do you want to accomplish, but you could use an authorization trace (via transaction ST01) to see how KSB1 performs checks against the object K_CCA, then program your own checks similar to that.
11-17-2011 9:00 AM
Hi ,
Use this code in your program with proper events.
AT SELECTION-SCREEN.
AUTHORITY-CHECK OBJECT 'K_CCA'
ID <field>' FIELD <field>
ID 'ACTVT' FIELD '03'.
This is helpfull in your authorization issue. And properly debug your program.
Reagrds
kamal kishore
11-17-2011 2:36 PM
Thank you kamal for your reply.
But in the program of KSB1, we don't find the module the function AUTHORITY-CHECK .
11-17-2011 6:52 PM
That's because the authorization checks are performed by some other function module(s) called by main program RKAEP000 (which is the report started by transaction KSB1).
The suggested authorization trace does show the actual checks against object K_CCA and what parameters are used for it. You'll have to do some debugging to find exactly where these AUTHORITY-CHECK commands are.