Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get above node in Product structure

Hi All

I have a requirement to calculate Roll up weight in Product Structure.

I can get the current node selected, I need to find out the node above that (parent node)

Any idea of any method or BAPI for this ?

There is one method GET_HIERARCHY_ABOVE of assistance class /PLMU/CL_PPE_CMP_TREE_ASSIST, which I came across


CALL METHOD OBJ->GET_HIERARCHY_ABOVE

*  EXPORTING

*    IO_CONTEXT_ELEMENT = lo_context_element

*    IV_INCLUDE_ELEMENT = ABAP_TRUE

   IMPORTING

     ET_HIERARCHY       = lt_hierarchy

     .


It does't return any thing, the   IO_CONTEXT_ELEMENT is optional.

Has any body used this method, or what need to be passed in IO_CONTEXT_ELEMENT ?


I have enhanced the  webdynpro component /PLMU/WDC_CLF view V_VALUE, method ONACTIONCHECK_ENTRIES.


Any help would be highly appreciated.


Regards

Anup

Former Member
Not what you were looking for? View more on this topic or Ask a question