‎2007 May 25 4:40 PM
Does anyone know of a way of updating the partner information (IHPA) for WBS elements?
I am familiar with BAPI_BUS2001_PARTNER_CHANGE_M and BAPI_BUS2001_PARTNER_CREATE_M for populating Project-level partners, but I have been unable to find anything similar for WBS elements.
Thanks in advance,
Andrew
‎2007 May 25 6:15 PM
Use BAPI Function module to update WBS Elements :
BAPI_PROJECT_MAINTAIN
and see the test program :
REPORT Z_TEST_PMB .
DATA: ipd type BAPI_PROJECT_DEFINITION,
imp type table of BAPI_METHOD_PROJECT with header line,
iwbs type table of BAPI_WBS_ELEMENT with header line,
em type table of BAPI_METH_MESSAGE with header line.
ipd-project_definition = 'PS02'.
imp-refnumber = '1'.
imp-objecttype = 'WBS-ELEMENT'.
imp-method = 'CREATE'.
imp-objectkey = ' PS024'.
append imp.
clear imp.
imp-method = 'SAVE'.
append imp.
iwbs-PROJECT_DEFINITION ='PS02'.
iwbs-WBS_ELEMENT = 'PS024'.
iwbs-DESCRIPTION = 'Preparation'.
append iwbs.
break mackowskit.
CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
EXPORTING
i_project_definition = ipd
i_project_definition_upd = ''
tables
i_method_project = imp
I_WBS_ELEMENT_TABLE = iwbs
E_MESSAGE_TABLE = em.
Reward Points if it is useful
Thanks
Seshu
‎2012 Dec 06 12:02 PM
Hi Seshu
Where is it updating the partner in this code?
Thanks,
Harsh