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

Problem with BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
522

Hello,

I am using BAPI_ACC_DOCUMENT_POST to post accounting document. I am passing Cost center at item level.

The document gets posted well but the Cost Center is coming correctly but it is getting copied into Profit Center field as well.

I checked that it is happening in Standard Code in fucntions CO_DOCUMENT_CHECK

and COPCA_DOCUMENT_CHECK.

Any Idea as why this is happening.

Your help is appriciated.

2 REPLIES 2
Read only

rejish_balakrishnan
Contributor
0 Likes
432

Hi,

Try using the profit center field also in BAPI .item field .

Use Update flag and try not to update this particular field ..

Read only

0 Likes
432

Actually you can not do like what you suggested with this BAPI