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

creating the WBS using bapis

kanishakgupta1
Contributor
0 Likes
775

i am creating the WBS using thses bapis

1. BAPI_PS_INITIALIZATION

2. BAPI_BUS2001_CREATE

3. BAPI_PS_PRECOMMIT

4. BAPI_TRANSACTION_COMMIT/BAPI_TRANSACTION_ROLLBACK

but i am getting the error

Field COMPANY_CODE/Company code: Changing the contents of the field is not permitted

Field BUSINESS_AREA/Business area: Changing the contents of the field is not permitted

Field WBS_ACCOUNT_ASSIGNMENT_ELEMENT/Acct asst elem.: Changing the contents of the field is not permitted

Field OBJECTCLASS/Object Class: Changing the contents of the field is not permitted

Please help to resolve this

kanishak

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
692

Hi,

have you tried to look for corresponding OSS notes? I've never had any problems with this BAPI and according to BAPI documentation all fields from input structure can be used. It looks more like error. Or don't you have any validation for projects definitions? If you can find the reason you can still debug that code and see why it's failing.

BTW your BAPI is for Project definition creation, not WBS element. You can maintain WBS elements form any project using BAPI BAPI_PROJECT_MAINTAIN.

Cheers

1 REPLY 1
Read only

mvoros
Active Contributor
0 Likes
693

Hi,

have you tried to look for corresponding OSS notes? I've never had any problems with this BAPI and according to BAPI documentation all fields from input structure can be used. It looks more like error. Or don't you have any validation for projects definitions? If you can find the reason you can still debug that code and see why it's failing.

BTW your BAPI is for Project definition creation, not WBS element. You can maintain WBS elements form any project using BAPI BAPI_PROJECT_MAINTAIN.

Cheers