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

FI/CO interface error in BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
10,442

Hello experts,

I am trying to post a DA document (customer document) with the BAPI BAPI_ACC_DOCUMENT_POST. I passed as many parameters as required, and it's just not working. Im getting this error message:

Error in document: BKPFF $ OVED01210

FI/CO interface: Line item entered several times

I have no FI consultant near me, so could you please give me a hand with this?

6 REPLIES 6
Read only

Former Member
0 Likes
4,747

You might want to put a break point at the bapi and see the line items you are passing as there must be same line item no (posnr) being passed multiple times.

Read only

0 Likes
4,747

hello Kshamatha, actually i'm passing a single item in every BAPI table, wich contain the corresponding info for G/L account, currency, tax, etc. The itemno_acc field has a 1 in these tables.

Read only

0 Likes
4,747

Hi,

The error you said comes when same line item no is passed in item tables.

accountG/L, Account receivables, account payables, account tax are different tables, shouls consists of different line items.

bu t consolidated the currency table should consists of values for all line items.

for example say account gl table u have assigned line item 1.

and filled other values in account gl.then in account receivabls should have a line item with 2.and account tax should have line item with 3 and tax_item field in account tax should refers to any of one items of AR/GL.say example case to GL line item 1 , so tax_item should have value 1.

and in currency should have items for all line items 1,2,3.

in cae of item 3, currency should be filled with amt_base field also along with amt_doc.

reward points if help full.

Read only

0 Likes
4,747

This message was moderated.

Read only

Former Member
0 Likes
4,747

so you are passing 1 line item and 1 offsetting line item to balance the currency?

Read only

Former Member
0 Likes
4,747

In the function module bapi_acc_document_post.

debug the function module

check all the parameter as a input.

accountG/L

Account receivables

account payables

account tax


should have single line item .

if there is multiple line item there delete them using DELETE ADJACENT DUPLICATE command OR DELETE it line using DELETE command.


Thanks and reward if helpful.