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

Performance issue with structural authorizations

0 Likes
1,902

Hi,

In our company, we have an important issue with structural authorizations... let me explain the situation...

The objects added to our structural authorizations are:

As a result, the calls to standard FM like RH_READ_INFTY_1000 or RH_STRUC_GET have a huge delay (20-30 seconds)...

Running the RHBAUS02 report we saw that most of the users have around 30k-40k authorization objects (some of them even 80k-90k)...

Is it normal? What can we do to improve performance? We can't add 5,000 users to SAP Data Memory...

Thanks!

Miguel Angel.

1 ACCEPTED SOLUTION
Read only

jbm-sceis
Explorer
1,705

My advice to you, which you may not like, is that the less you use structural authorizations the better. While in concept the structurals are a fantastic idea, in reality it is a performance killer. Try and use standard PFCG authorizations as much as possible and only use structural authorizations where organizational relationships are a necessity to define the security. I normally only use O, S and P object types, but on occasion I will use others depending on the circumstances. Unfortunately you may have to rethink your role strategy at this point. Good luck!

James Murphy

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
1,705

Could you trace where the performance issue is, please?

Read only

0 Likes
1,705

Hi Sandra,

When checking the structural authorizations... for instance, when executing the following FM: RH_STRU_AUTHORITY_CHECK.

Miguel Angel.

Read only

jbm-sceis
Explorer
1,706

My advice to you, which you may not like, is that the less you use structural authorizations the better. While in concept the structurals are a fantastic idea, in reality it is a performance killer. Try and use standard PFCG authorizations as much as possible and only use structural authorizations where organizational relationships are a necessity to define the security. I normally only use O, S and P object types, but on occasion I will use others depending on the circumstances. Unfortunately you may have to rethink your role strategy at this point. Good luck!

James Murphy

Read only

0 Likes
1,705

Yes, absolutely agree with you... I used to see O-S-P objects in structural authorizations, but the first time I see all the other objects in it! I noticed it after we developed some Fiori apps, where the performance was extremely bad... and after some analysis, we found all this mess there!

For the moment, I guess the only thing we could do with it is to use SAP Data Memory temporarily and move away as much as we can from structural authorizations... 😞

Just one more question... Is it normal than in reports created directly in SAP backend with ABAP, the performance is much better than with developments calling remote FM from external systems? All should have been checking structural authorizations (calling at the end same standard FM), but when calling them from the backend itself the performance is "acceptable"... and I don't understand the difference...

Thanks!

Miguel Angel.

Read only

jbm-sceis
Explorer
1,705

I have seen that as well. As to the exact cause of the slowdown I would ask your Basis and/or Network teams. There may be firewalls, gateways and overall network latency involved between the two systems. You would need to see how many back and forth messages are involved.

James