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

Duplicate error messages in BAPi FM BAPI_ACC_DOCUMENT_CHECK/POST

priyank_dev2
Participant
0 Likes
3,419

Hi,

We are getting duplicate error messages while posting the entries using the BAPI FM's BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST.The duplicate error messages is returned in both FM's.Please let me know if any OSS notes needs to be applied.The error messages for TYPE, ID Message Number and Message are similar(duplicate entries) .

Example:

TYPE ID Number Message

E KI 222 order number 123 does not exists

E KI 222 order number 123 does not exists

E KI 507 costcenter 345 doesnt exits

E KI 507 costcenter 345 doesnt exits

I have tried to find OSS Notes which could not yield any results.

Regards

Priyank Patil

1 ACCEPTED SOLUTION
Read only

priyank_dev2
Participant
2,523

applied OSS notes.

8 REPLIES 8
Read only

RaymondGiuseppi
Active Contributor
2,523

BAPI_ACC_DOCUMENT_CHECK checks are already performed by BAPI_ACC_DOCUMENT_POST, if you call both in sequence errors will be duplicated, so don't call POST BAPI if CHECK BAPI returned an error.

Regards,
Raymond

Read only

priyank_dev2
Participant
0 Likes
2,523

Hello Raymond,

We are not calling the above FM's suquentially. However we have applied OSS notes on the same and thank you for your help here.

Regards,

Priyank Patil

Read only

priyank_dev2
Participant
2,524

applied OSS notes.

Read only

2,523

Can you confirm it it was solved by 2136137 - BAPI: Duplicate error messages or another note for people who would get same issue?

Read only

2,523

Also if there is no further response needed please pick a best answer and/or close the question. Thank you.

Read only

0 Likes
2,523

Hi Raymond,

It was applied some other note and it is working fine now.sorry for the delay responce.

Regards,

Priyank Patil

Read only

0 Likes
2,523

Hi Priyank,

We are facing the same issue. Could you please share the SAP Note number which was applied for resolving this issue?

Best Regards,

Lucy

Read only

Lakshmipathi
SAP Champion
SAP Champion
0 Likes
2,523

Through that FMs, what entry you were trying to post. Whenever you post any query expecting technical inputs, see that you also add the functionality and detail what is the business process. In most of the cases, through standard configuration, we can solve the issue. If you check for the detailed SAP explanation for KI222, it clearly says "Cost Center in Controlling Area is missing" which is self-explanatory.