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

BAPI_ACC_DOCUMENT_POST / Profit Center Error When Posting.

BTP_Architect
Participant
0 Likes
2,933

Hello Experts,

I'm using BAPI BAPI_ACC_DOCUMENT_POST to post documents using an Excel file as input.

All is working fine with all table ACCOUNTRECEIVABLE / ACCOUNTPAYABLE / ACCOUNTGL / CURRENCYAMOUNT.

The problem is that when I'm importing GL Account lines without Cost Center filled, I get the following error:

Profit center XXXX/XXXX does not exist for 13.12.2010

I tried to post manually with the same data in F-05 and it's working fine.

Why this Cost Center seems to be mandatory when filling GL Account table to be used by BAPI BAPI_ACC_DOCUMENT_POST?

Am I using the right table for such posting without Cost Center filled or should I use another table?

Thank you in advance for your support.

Moez.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,075

It's saying that the profit center is incorrect, not the cost center.

Rob

Edited by: Rob Burbank on Dec 13, 2010 2:24 PM

8 REPLIES 8
Read only

BTP_Architect
Participant
0 Likes
2,075

PS:

The used accounts are customized in FS00 with status group / cost center = optional entry

Read only

Former Member
0 Likes
2,076

It's saying that the profit center is incorrect, not the cost center.

Rob

Edited by: Rob Burbank on Dec 13, 2010 2:24 PM

Read only

0 Likes
2,075

Hello Rob,

Yes, the error message is talking about a profit center / Input data: field profit center is filled but field cost center is empty.

When I fill in the cost center in addition of the profit center the error message disappear.

Additionally, the profit center exists in the system and is defined correctly in the date specified by the error message...

Regards,

Moez.

Read only

0 Likes
2,075

When you complete the profit center is it left padded with zeroes?

Rob

Read only

0 Likes
2,075

No, it's not left padded with zeros.

Read only

0 Likes
2,075

Well, try it - run it through FM CONVERSION_EXIT_ALPHA_INPUT

Rob

Read only

0 Likes
2,075

Ok Rob. I will try it and feed you back.

Thanks,

Moez.

Read only

0 Likes
2,075

Thanks Rob it's resolved.