‎2006 Jul 17 10:45 AM
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
‎2006 Jul 17 10:49 AM
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
‎2006 Jul 17 10:53 AM
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
‎2006 Jul 17 10:55 AM
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
‎2006 Jul 17 11:48 AM
HI Vasanth,
Am going to give only one WBS Element not more than one ..
-Mohan
‎2006 Jul 17 1:34 PM
To find the next WBS element without using a function, look at DB table PRHI.
MattG.
‎2006 Jul 17 1:40 PM
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
‎2006 Jul 17 1:53 PM
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.