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

BAPI_INCOMINGINVOICE_CREATE Multiple Account Assignment

Former Member
0 Likes
3,225

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,704

Hi,

May be you have assigned account assignment category and not enter any information in the line item regarding that.

regards

Ajit

Read only

akshayc0574_065
Explorer
0 Likes
1,142

Hi,

Is it resolved if yes please let me know we are also facing same error