Former Member

### Determine the immediate child WBS element of a WBS element

Hi,

I would like to know how to determine on how to know all the immediate childs of 1 parent (example: how can i kno all level 3 elements under level 2 b?) The usage of PRPS-STUFE is not enough since it only indicates levels. I also noticed we do not have entries in PRHIS table, is it because of we are not using the standard WBS?

Level 1

Level 2 a

Level 2 b

Level 3 a (of level 2 b)

Level 3 a (of level 2 b)

Level 2 c

Level 3 a (of level 2 c)

Thanks!

Regards,

Vivian

10|10000 characters needed characters exceeded

Former Member
Oct 25, 2008 at 11:07 AM

Hi,

The project hierarchy is data is available in PRHI table.

PRHI'S' is for standard structures. S stands for standard.

PRHI is for operative structure.

If you want to know the WBSE immediately under a WBSE say A. Then go to PRHI table enter A in POSNR field. The WBSE under it will be available in PRHI-DOWN field.

If u have more than one WBSEs under A and you are looking to get all of them. Then u may have to rite a Z function module. Logic can be as under.

Assume WBS structure is as below

Level 1 = A

Level 2 = B,C,D.

When u give A as input u want BCD as output.

Then

Take input as 'A'.

1) Go to PRHI and enter A in POSNR. Collect PRHI-DOWN and Store.

2) Again go to PRHI and enter PRHI-DOWN (collected above) in POSNR. Collect PRHI-RIGHT and Store.

3) Again go to PRHI and enter PRHI-RIGHT (Collected above) in POSNR. Colect PRHI-RIGHT and Store.

4) Repeat step 3. untill PRHI-RIGHT = Initial or Zero.

This Function module will give u all the WBSEs assigned in immediate one level less than the input WBSE.

Please post ur findings after u try this.

Thanks

Saikishore Ganga.

10|10000 characters needed characters exceeded
• Former Member
Oct 24, 2008 at 04:44 AM

Use BAPI "BAPI_PROJECT_GETINFO". Input WBS element in "I_WBS_ELEMENT_TABLE". It will provide the list child WBS elements for given WBS elements.

Venkat