Automate

 View Only
  • 1.  BAPI_COSTCENTERGROUP_CREATE

    Posted 02-08-2021 05:57
      |   view attached
    Does anybody have experience with creating costcenter groups with this BAPI through DIRECT? The BAPI works well in SE37 but gives me an error message 'Inconsistent set hierarchy' on the second line when running the Direct script.

    ------------------------------
    Joost Hogervorst | Master Data Specialist
    JACOBS DOUWE EGBERTS Export NL B.V. | +31627885624
    ------------------------------


  • 2.  RE: BAPI_COSTCENTERGROUP_CREATE

    Employee
    Posted 02-08-2021 11:17
    Hello Joost

    CREATE GROUP works well if you are using a LOOP, i.e. loading the entire group in one go. Otherwise for the 2nd line, it doesn't know which group to add it to.  So use controlling area as the HEADER adn the rest as LINE ITEMS, and you should be good to go.

    BAPI_COSTCENTERGROUP_ADDNODE would allow you to add nodes to an existing group.

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 3.  RE: BAPI_COSTCENTERGROUP_CREATE

    Posted 02-09-2021 02:27
    Hi Sigrid,

    Works like a charm; much, much appreciated.

    Rgrds, Joost Hogervorst (JDE/Ctac)

    ------------------------------
    Joost Hogervorst | Master Data Specialist
    JACOBS DOUWE EGBERTS Export NL B.V. | +31627885624
    ------------------------------



  • 4.  RE: BAPI_COSTCENTERGROUP_CREATE

    Employee
    Posted 02-09-2021 08:51

    Thanks for letting us know, Joost!

    😊  


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------