Application Development 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: 

BAPI_PROJECT_MAINTAIN with change

former_member376779
Participant
0 Kudos

hello,

can anyone tell how to build the structure of hierachy to change WBS element using BAPI_PROJECT_MAINTAIN.

I want to change the basic date for WBS Element....

cheers

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

If the WBS element is already created and you want to chagne some data, read the table PRHI for that Project of WBS element and then move the corresponding data to I_WBS_HIERARCHIE_TABLE in function module BAPI_PROJECT_MAINTAIN.

I am using different sets of BAPIs to create project, create / change WBS element.

I use function module from Function group CJ2001 ( Project related BAPIs ), CJ2054 ( WBS related BAPIs ) and PS_BAPI ( pre/post processing BAPIs ). There are specific order in which you need to execute these BAPIs.

For example if you want to change the WBS element, the BAPIs sequence is:

1. BAPI_PS_INITIALIZATION

2. BAPI_BUS2054_CHANGE_MULTI

3. BAPI_PS_PRECOMMIT

4. BAPI_TRANSACTION_COMMIT

Let me know if you need further information.

Regards,

RS

2 REPLIES 2

Former Member
0 Kudos

Hi,

If the WBS element is already created and you want to chagne some data, read the table PRHI for that Project of WBS element and then move the corresponding data to I_WBS_HIERARCHIE_TABLE in function module BAPI_PROJECT_MAINTAIN.

I am using different sets of BAPIs to create project, create / change WBS element.

I use function module from Function group CJ2001 ( Project related BAPIs ), CJ2054 ( WBS related BAPIs ) and PS_BAPI ( pre/post processing BAPIs ). There are specific order in which you need to execute these BAPIs.

For example if you want to change the WBS element, the BAPIs sequence is:

1. BAPI_PS_INITIALIZATION

2. BAPI_BUS2054_CHANGE_MULTI

3. BAPI_PS_PRECOMMIT

4. BAPI_TRANSACTION_COMMIT

Let me know if you need further information.

Regards,

RS

0 Kudos

Hi,

You solve my problem with this method, thanks you