Thanks Sigrid.
Original Message:
Sent: 06-13-2023 21:34
From: Sigrid Kok
Subject: BAPI's to get CC and CE hierarchy results
Hi Moazzam
No such BAPI exists that I'm aware of.
BAPI_COSTCENTERGROUP_GETDETAIL has a reasonable-ish return of groups and levels
but the cost centers are completely separate in another table.
You can record the tcode and do a save as text and get something like this in a text file
Some have extracted into a SQL tables and rolled their own report, as well.
I know this isn't the answer you wanted, but it's what SAP has available.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 06-13-2023 16:19
From: Moazzam Mubarak
Subject: BAPI's to get CC and CE hierarchy results
Hi all, wondering if anyone has created BAPI based scripts to get cost center hierachy (similar to the results provided by t-code OKENN) and cost element hierarchy (similar to the results provided by t-code KAH3)? Just need a sample of each to understand how to make those BAPI's work via the direct method and get the results identifying each item against the relevant hierarchy node.
Thanks,
Moazzam
------------------------------
Moazzam Mubarak
De Beers Consolidated Mines
AB
------------------------------