Question:
Hi all, I need to find out where I can find the items of hierarchy of profit centers. I use the FM G_SET_GET_ALL_VALUES and from this function I can get something like this:
BT 1112000000 1112200011
but if I use the transaction KCH3 I can see under item BT 1112000000 1112200011 another items and those items I need to get. In which tables are those another items? I need that because I use LOOP ..WHERE and for fast running I cant use WHERE rprctr IN sl but WHERE rprctr = sl.
Thanks
Betty
Answer:
Betty,
have you looked at other FMs dealing with the SETs? When we prepared for the upgrade from 3.1i to R3E, I had to find out how to change our processing so that it worked with the new way SAP stored and dealed with the SET-definitions. I just quickly looked through my notes and these are some ideas you might follow-up on:
For your case, FM G_SET_TREE_IMPORT could be a possibility or the combined FMs of G_SET_INSERT and G_INTERVAL_GET_NEXT (these two always go together). You'll have to check them out via SE37 to find out whether or not they fit your scenario.
Hope that this gives you some "food for thought"
Cheers
Baerbel
Answer:
Otherwise look at the profit centre GETLIST and GETDETAIL BAPIs, these provide enough information to build the hierarchical structures completely.
_________________
Kind Regards
Rosie Brent
Please remember to search the forum and check the FAQ before posting questions, thank you.
Tuly Idiot most of the time, part-time Guru