cancel
Showing results for 
Search instead for 
Did you mean: 

Get above node in Product structure

anupam_srivastava2
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anup,

You could also try FM PVSHI_PNCMP_READ.

Add the Node_ID to table componentnodedata. The table componentrelation will give you all the relationships (downward and upward).

Regards, Frans