Skip to Content
0
Jun 08, 2011 at 10:20 PM

How to do "read old merge new" in background ABAP

136 Views

Hi, ladies and gentlemen,

I always get some nice pieces of advise, so I ask for your help with another problem:))

I would like to do "read old, merge new" like in PFCG through my ABAP program. The goal is to to do that in mass and see how many of my roles blow up.

I found (or was advised to find - thanks gentlemen) the SUPRN_AUTH_DATA_IN_EXP_MODE function, which is cool. It does what I want to do except one tiny detail. When you check the data in 1250, 1251 tables, you spot a node number column which is then used in PFCG to format the categories, objects, fields tree. But the output of the above mentioned function module does not produce these numbers. I really don`t want to build that order by myself, don`t want to damage my system by any low level hacks.

So I cannot call that function module and then change the role tables, because I don`t have those numbers.

So can anybody suggest how to really perform the "read old merge new" so the DB gets changed? And I don`t have to do this myself? Of course the functionality must work in background without user intervention needed. I was hoping for help from SUPRN_PROFILE_GENERATOR, but it very talkative so I cannot use in in background (silent mode). Or if somebody can suggest a way, I would be so grateful.

Another thing that could solve my problem would be a function module that can build the above described node order. But I am not sure a function module which does that exist. I was able to debug some parts of the processing and some black magic is done by FORMs, which is not something well usable.

Thank you for your time and effort if you reached this point of my lengthy question:))

Have a nice day,

cheers Otto