Automate

 View Only
  • 1.  t/code KCH2 Link a Profit Centre to a Alternate Hierarchy node

    Posted 2 days ago

    Morning. Seems that t/code KCH2 is only supported via GUI scripting but I need something that I can convert to xml format for Evolve. Any BAPIs available that will allow me to select the hierarchy node and add or remove a Profit Centre?

    image

     



    ------------------------------
    Renette Nienaber
    Mrd
    VIVO ENERGY SOUTH AFRICA (PTY) LTD
    ------------------------------


  • 2.  RE: t/code KCH2 Link a Profit Centre to a Alternate Hierarchy node

    Employee
    Posted 2 days ago
    Edited by Sigrid Kok 2 days ago

    Hi Renette

    This is much like cost center hierarchy.  You can set accessibility mode and will have tables you can  navigate instead of the graphical hierarchy.

    On the first screen choose Extras, Default Settings, Format and check the box.

    You can use binoculars to find a row and there are insert and delete options. Set the accessiblity off afterwards so the end user who goes into the GUI won't have an issue with the display. For me this was 3 scripts - turn on accessibility - do your updates - turn off accessibility.

    Note my screen shot is for cost center hierarchy because I can't edit the PC one - but the look and options are the same. :)

    give it a try. I used this for an Evolve form solution to maintain both cost centers and their placement in the hierarchy - and another one to maintain the hierarchy itself. SAP doesn't make it easy, but it's possible.

    I think there may be BAPIs but they're limited in what they do/how they do it. I only used one to get the hierarchy at a specific node in my solutions.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------



  • 3.  RE: t/code KCH2 Link a Profit Centre to a Alternate Hierarchy node

    Posted 22 hours ago

    Thank you Sigrid! this work so well. Simplified task :-)

    image



    ------------------------------
    Renette Nienaber
    Mrd
    VIVO ENERGY SOUTH AFRICA (PTY) LTD
    ------------------------------



  • 4.  RE: t/code KCH2 Link a Profit Centre to a Alternate Hierarchy node

    Employee
    Posted 22 hours ago

    Glad to hear it works for you, too, Renette!

    I can't take credit for the original tip - that was wonderful sleuthing by someone prior to me - but I did take advantage of it.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------