cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on enchancing the Project system datasource.

former_member184624
Participant
0 Kudos
89

Hi BW Experts,

I need a help on enhancing the standard Data source, 0PROJECT_ATTR. I am trying to add WBS Element (POSID) and network (AUFNR).As per Project Systems, each project will have more than 1 WBS and Networks. I have written the enchancement code but it is picking the first record for WBS and Network. I donu2019t know how to pick the second WBS Element for a particular project.

I have attached the code that I have tried.

When '0PROJECT_ATTR'. "Project System Datasource

Data : L_S_BIW_PROJ like BIW_PROJ,

l_tabix2 type sy-tabix.

LOOP AT i_T_DATA into L_S_BIW_PROJ.

l_tabix2 = sy-tabix.

select single PSPNR from PROJ into V_PSPNR where PSPID EQ L_S_BIW_PROJ-PSPID.

select single POSID from PRPS into L_S_BIW_PROJ-POSID where PSPHI EQ V_PSPNR.

select single AUFNR from AFKO into L_S_BIW_PROJ-AUFNR where PRONR EQ V_PSPNR.

MODIFY i_t_data from L_S_BIW_PROJ index l_tabix2.

ENDLOOP.

Can you please help on this issue.

Thanks,

Jelina.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Just use the attribute of 0wbs_element, you are approaching the problem from the wrong side.

Answers (0)