Skip to Content

Add new WBS element to WBSH hierarchy using ABAP

Dear Colleagues,

Hope you could help me with my request.

In our client we have developed an input-ready query which allows to create WBS element master data directly in BW: Attributes and Texts. Using ABAP.

I am now looking for how to add newly create WBS element to existing WBS element hierarchy.

In ECC I found BAPI CJ2054_BUILD_HIERARCHY which add the new WBS element to existing hierarchy, just identifying whether who is the parent node and the position: same level or as a child.

I havent been able to find anything similar in BW.

Have you ever faced this situation?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 06, 2017 at 09:19 AM

    Hi Francisco,

    in BW there exist APIs in packages RSNDI_MD (for master data) and RSNDI_SHIE (for hierarchies). But to change/create master data values and attributes as well as hierarchies in input-ready queries will lead to all kinds of buffering problems since this information is considered to be stable and is buffered in a lot of layers. This also valid e.g. for navigation attributes in reporting queries. Also BW-IP may use characteristic relationships based on master data attributes or hierarchies, what should happen if this information is changed on the fly?

    These kinds of things may be possible if you separate the process:

    1 Maintain master data, hierarchies first plus Save.

    2 Then logoff/logon (in AO possible with an API); thus no buffer has data and the input-ready query may see the new active master data, attribute and hierarchy values.



    Add comment
    10|10000 characters needed characters exceeded