Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM for finding Lower level WBS ELEMENTS

Former Member
0 Likes
2,819

Hi,

Am supposed to find the sub ordinate WBS(lower level towards downwards) list for the WBS Element am giving.

Is there any Function module for the same.

Thnx in advance.

-Mohan

7 REPLIES 7
Read only

Former Member
0 Likes
1,528

Hello Mohan,

To get the subordinate element.

Use the pRPS Table where STUFE NE 1.

IF STUFE = 1 then First level WBS element

IF STUFE ne 1 then SUb WBS element

Please use this code.

DATA: LV_PSPID TYPE PS_POSID.

CLEAR: G_T_PRPS.

REFRESH: G_T_PRPS.

LOOP AT S_WBS.

CONCATENATE S_WBS-LOW '*' INTO S_WBS-LOW.

S_WBS-OPTION = 'CP'.

MODIFY S_WBS.

ENDLOOP.

SELECT * FROM PRPS INTO CORRESPONDING FIELDS OF TABLE G_T_PRPS

WHERE POSID IN S_WBS.

If useful please reward the points.

Vasanth

Read only

Former Member
0 Likes
1,528

Mohan,

check,

MAP_BAPI_WBS_ELEMENT_2_PRPS

MAP_BAPI_WBS_ELEMENT_2_PRPS_UP

MAP_BAPI_WBS_ELEMENT_2_VSPRPS

MAP_PRPS_2_BAPI_WBS_ELEMENT_EX

rgds,

TM

Read only

Former Member
0 Likes
1,528

Use the bapi function module 'BAPI_PROJECT_GETINFO' In that there is a table parameter 'e_wbs_hierarchie_table' ans this gives the entire hierarchy of WBS elements.

regrds,

Dinu

Read only

Former Member
0 Likes
1,528

HI Vasanth,

Am going to give only one WBS Element not more than one ..

-Mohan

Read only

0 Likes
1,528

To find the next WBS element without using a function, look at DB table PRHI.

MattG.

Read only

Former Member
0 Likes
1,528

Use BAPI_PROJECT_GETINFO.

Pass the PROJECT_DEFINITION and X in the import parameter WITH_SUBTREE and you will get the hierarchy data in the table EWBSHIERARCHIETABLE.

-Kiran

Read only

saikat_pal2
Explorer
0 Likes
1,528

Say for example

ur 1st level WBS is DH/535/4001650

ur 2nd level WBS element is DH/535/4001650/04

Now look in table PRHI with posnr = DH/535/4001650/04

u can see two fields UP = DH/535/4001650

if anything below its showing in down.