Automate

 View Only
  • 1.  BAPI's to get CC and CE hierarchy results

    Posted 06-13-2023 18:25

    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
    ------------------------------


  • 2.  RE: BAPI's to get CC and CE hierarchy results

    Employee
    Posted 06-13-2023 21:35
    Edited by Sigrid Kok 06-13-2023 21:35

    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.
    ------------------------------



  • 3.  RE: BAPI's to get CC and CE hierarchy results

    Posted 06-14-2023 10:10

    Thanks Sigrid.



    ------------------------------
    Moazzam Mubarak
    De Beers Consolidated Mines
    AB
    ------------------------------