on 2006 Jan 19 7:14 AM
Hi,
I need to know the WBS elements hierachy in table PRHI.
Say for eg. in PRHI my WBS elements is E.00011. (just imagine it is tree structure ). I have 4 fields of UP,DOWN,RIGHT and LEFT. So for a perticular node,I need to process all the left ,right and down node and for each node i need to do some calculation.
So from parent I need to process from left to right ,up to down.
Kindly clariify,
Points will be awarded
Thanks in advance.
Hi Jayasree,
can you better explain what you need? Since you already know the table PRHI, you can read the WBS element hierachy, cant you?
Regards
René
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks RENE,
I can read the WBS element hierarchy say for eg. WBS element POSNR = E.000110
PSPHI = E.000110
UP =
DOWN = E.000110.10
LEFT =
RIGHT =
If this is the case,I will consider this node has no node to left & right but has one node in the down. So I will do some calculations for this node and the down node. like this I should process all the node from left to right and top to down.
Caution: If i move to the next node, I need to store the previous calculation also add it up to the corresponding node.
Ponits will be awarded
Thanks in advance
declare table
I_HIERARCHY STRUCTURE IFHIERIM
DATA: BEGIN OF ITAB_EXT_INT OCCURS 0,
POSID LIKE PRPS-POSID,
PSPNR LIKE PRPS-PSPNR,
END OF ITAB_EXT_INT
CALL FUNCTION 'CJDW_PRHI_CHECK_EXT'
TABLES
I_HIERARCHY = I_HIERARCHY
EXCEPTIONS
INCONSISTENT_HIER = 1
INCOMPLETE_HIER = 2
DIFFERENT_PROJECTS = 3
OTHERS = 4.
LOOP AT I_HIERARCHY.
MOVE I_HIERARCHY-POSID TO ITAB_EXT_INT-POSID.
COLLECT ITAB_EXT_INT.
MOVE I_HIERARCHY-UP TO ITAB_EXT_INT-POSID.
COLLECT ITAB_EXT_INT.
MOVE I_HIERARCHY-DOWN TO ITAB_EXT_INT-POSID.
COLLECT ITAB_EXT_INT.
MOVE I_HIERARCHY-LEFT TO ITAB_EXT_INT-POSID.
COLLECT ITAB_EXT_INT.
MOVE I_HIERARCHY-RIGHT TO ITAB_EXT_INT-POSID.
COLLECT ITAB_EXT_INT.
ENDLOOP.
the above type of code may halp u
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.