on 2023 Oct 17 1:59 PM
Hi all,
I am using BAPI_INCOMINGINVOICE_CREATE to post an invoice against a purchase order. The BAPI returns a material document number but I want the accounting document number.
I tried using AC_DOCUMENT_RECORD but with no success. I might be passing the wrong information.
Can someone please guide me on what exactly I should enter or should I use another FM?
Any help would be greatly appreciated
Thanks
Help sap_beginner01
Check the note 634744 - Displaying MM and FI document number
The note basically says to set up PID IVFIDISPLAY = X in SU3 for the user that posts invoices. This way MIRO will display the FI document number long with logistics invoice number.
I hope it also work with the BAPI.
As the PID doesn't work for the BAPI, you can try getting FI document from a logistics invoice with the MRM_FI_NUMBER_DISPLAY function.
Best regards
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sap_beginner01 MRM_FI_NUMBER_DISPLAY works. It takes logistic invoice posted in MIRO and returns the corresponding FI document number. IVFIDISPLAY needs to be set to X for the function to work.
I tested this out and it works!
Thank you so much for your patience and assistance.
Really appreciate it.
Did you set the option WAIT in the BAPI_TRANSACTION_COMMIT?
Also type MKPF and BKPF are relevant for material movement and pure financial document, for received vendor invoce try BAPI_ACC_DOCUMENTS_READ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.