cancel
Showing results for 
Search instead for 
Did you mean: 

Call function BAPI_INCOMINGINVOICE_CREATE1 tips error M8_2(124)

Former Member
0 Kudos

Hi!

When call function BAPI_INCOMINGINVOICE_CREATE1 , system tips error message M8_2(124).

However, I can create document number via T-code MIRO, with the same data.

Google this error message, and get the reference answer https://www.se80.co.uk/sapmessages/m/m8_2/m8_2-124.htm

In Customizing for Materials Management, under Logistics Invoice Verification -> Incoming Invoice -> Differential Invoicing -> Define Differential Invoicing Process, select the two-step differential invoicing proces that consists of the transactions 
Provisional/Differential Invoice and Final Invoice. 

But the catalog Differential Invoicing is not found.

The attachment is my program code, could you please review my code and teach me how to solve this problem?

Best Regards!

zljj-incominginvoice-create.txt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for the best answer from the follow link:

https://answers.sap.com/questions/11137421/error-in-bapi-while-creating-incoming-invoice.html

Issue is Solved by unchecking the filed INV_TRAN.

The attachment is my new code.

1702544-zljj-incominginvoice-create.txt

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, Narasimhulu.

I'm unable to access the note 2399306, would you mind share with me?

BTW, could you point out the modification in my code directly?

narasimhulu_konnipati
Active Contributor
0 Kudos

When you fill the amounts in the company code currency, make sure that the amounts in the document currency are also filled.

Refer the below OSS Note.

2399306 - BAPI: Control fields in company code currency