views:

31

answers:

1

I am currently working on an application that posts invoices to SAP using Java/JCo. I am using BAPI_INCOMINGINVOICE_CREATE for the purpose and it works perfectly fine. Now I have an additional requirement to preview the GL Account distribution of the gross amount (credits and debits) before confirming the transaction through BAPI_TRANSACTION_COMMIT. Essentially it is the same as "Simulate" option provided in MIRO transaction.

Is there a way to retrieve GLACCOUNTDATA information that SAP will populate as a result of the invoice post before actually committing the transaction? The BAPI_INCOMINGINVOICE_CREATE call does not seem to return this table by default!

Any help is greatly appreciated.

A: 

Hi,

would it be an option for you to create a salesorder first and then create an invoice from the sales order number?

Stefan Ernst