‎2013 Oct 15 9:18 AM
Hi,
We're using the above function module to auotmatically post Invoices. It works fine but one of the Invoices has failed with the error 'Complete at least one line of ACCOUNTINGDATA for item 000001'. From what I read on this forum it's because the PO has multiple account assignment (we had never populated this table in the BAPI)
My issue is I don't know how to populate the ACCOUNTINGDATA table in the BAPI. I've searched on here and also tried myself by guessing in SE37 but it still won't post.
The PO looks like this;
Item 1 (Account Assignment Tab);
1. Quantity 20 Percentage 50 Cost Centre 246711 GL 44555002
2. Quantity 20 Percentage 50 Cost Centre 246710 GL 44555002
So in the BAPI do I need 2 lines in the accountingdata table? I'm currently populating as follows;
INVOICE_DOC_ITEM - 1
SERIAL_NO - 1 (would item 2 be 2?)
ITEM_AMOUNT - 0.3300
QUANTITY - 40.000
PO_UNIT - EA
PO_UNIT_ISO - EA
PO_PR_UOM - EA
PO_PR_UOM_ISO - EA
GL_ACCOUNT - 44555002
COSTCENTER - 246711 (the first one?)
That is all I've populated. I think I have the minimum required fields but not sure if two lines are required....
Thanks in advance
‎2013 Oct 15 9:37 AM
Hi,
May be you have assigned account assignment category and not enter any information in the line item regarding that.
regards
Ajit
‎2024 Dec 12 11:47 AM
Hi,
Is it resolved if yes please let me know we are also facing same error