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

Updating WBS element partners with BAPI/function module

afordham
Participant
0 Likes
1,157

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

2 REPLIES 2
Read only

Former Member
0 Likes
708

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

Read only

0 Likes
708

Hi Seshu

Where is it updating the partner in this code?

Thanks,

Harsh