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: 

CHECK AUTORIZATION KSB1: Controlling object K_CCA in specific report

Former Member
0 Kudos

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.

4 REPLIES 4

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

Thank you kamal for your reply.

But in the program of KSB1, we don't find the module the function AUTHORITY-CHECK .

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.