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: 

Duplicate error messages in BAPi FM BAPI_ACC_DOCUMENT_CHECK/POST

priyank_dev2
Participant
0 Kudos

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

priyank_dev2
Participant

applied OSS notes.

8 REPLIES 8

raymond_giuseppi
Active Contributor

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

priyank_dev2
Participant
0 Kudos

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

priyank_dev2
Participant

applied OSS notes.

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

Jelena
Active Contributor

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

0 Kudos

Hi Raymond,

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

Regards,

Priyank Patil

0 Kudos

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

Lakshmipathi
Active Contributor
0 Kudos

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.