‎2008 Feb 25 7:18 PM
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?
‎2008 Feb 25 8:26 PM
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.
‎2008 Feb 25 8:34 PM
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.
‎2008 Mar 07 1:41 PM
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.
‎2016 Apr 15 10:19 AM
‎2008 Feb 26 12:08 AM
so you are passing 1 line item and 1 offsetting line item to balance the currency?
‎2015 May 20 1:52 PM
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.