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: 

BAPI_INCOMINGINVOICE_CREATE multiple account assignment

0 Kudos
209

Dear(s),

Context:
We develop a tool to post incoming invoices (like MIRO).
We prepare the import table of the BAPI: BAPI_INCOMINGINVOICE_CREATE1

Our issue:
PO-item is defined as multi account assignment.
We don't know how to prepare the ITEMDATA[] table expected by the BAPI.

Based on ITEMDATA[] table, is there a function module or a class/method that suggests the account assignment table ACCOUNTINGDATA[] ?
If it does not exist, how can I handle the distribution of the quantity/amount ?

In advance, thanks for your comment !

Best regards.

2 REPLIES 2

RaymondGiuseppi
Active Contributor
0 Kudos
169

AFAIK you have to calculate it in your code (*), handle case of distribution (DISTRIB/VRTKZ) 'by amount', 'by percentage' or 'by quantity', just make sure the sum of the ACCOUNTDATA[] amounts and quantities is equal to the relevant values in the ITEMDATA[].

(*) But feel free to take a look at FMs such as MRM_AMOUNT_QUANTITY_PROPOSE*.

0 Kudos
151

Thanks a lot for the relevant information.
Following our SAP version, we must call MRM_AMOUNT_QUANTITY_PROPOSE_N