on 2011 Aug 10 9:53 AM
Hello Guru's!
My client has a BSP application that the purchasers are using to approve and post vendor invoices.
When the user is approving the invoice, we have a WF setup to automatically post the invoice to FI.
We're using standard SAP functionality. BUS2081, method PreliminaryPost.
First, this method is reading the preliminary invoice using method MRM_INVOIC_READ, then it goes on to try to post the invoice, using MRM_PARKED_INVOICE_POST.
In about 50% of the approvals, the invoice is posted to FI but the other 50% kicks out with a message M8 534 - Balance not zero: & debits: & credits: &.
Then the system is setup to generate a new WI in order to post the invoice manually.
The issue, is that before the method PreliminaryPost is carried out, there is a check online to make sure the document ís OK.
So, i know that there is no balance on the document, and it should be ok to post.
This issue arised recently after my client went through an upgrade from ECC 5 to ECC 6.
I have seearched OSS for notes, adn related notes are implemented.
Any thoughts on this
Thank you for sharing your wisdom.
Lars
Adding the FM 'MRM_DBTAB_REFRESH' did the trick.
thank you everyone that shared their input 😃
//Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lars,
These errors "Balance not 0... credit & debit &" usually arise when the code does not consider taxes in items or when you forget to pass flag 'X' to function for "Calculate Tax" check...
I guess the function module used above are not supported by SAP and are subject to change so please do not use then in your code unless ...
The information is insufficient for us to determine the exact cause of error, please provide more details in terms of code and design and business flow...
Regards
Gautam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The functions that i'm using are SAP developed functions and used by the bapi 'BAPI_INCOMING_INVOICE'
However, i found out from SAP that these functions are only supported from SAP using 3 standard workflows.
WS20000397 Release of invoice blocked due to price
WS20001003 Parking: Complete invoice
WS20001004 Parking: Release complete invoice documents
They hinted that i should try the function MRM_DBTAB_REFRESH.
Havent had time to try this yet, but will do, soon.
Regards
/lars
Hi Lars,
I don't have access to a system right now, but have you tried using the BAPI_INCOMING_INVOICE* instead? Is there anything which distinguishes those that post from those that do not? For example, by the user who executes the approval?
Interesting. Wish I could shed more light on it.
Good luck,
Sue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sue,
Thankg you for your reply on this issue.
I have been reviewing the BAPI_INCOMING_INVOICE_POST and it is doing/using the above mentinoned functions as well.
So unfortunately its not working.
I have been trying to examine the invoices to see if there is something different with them, but no. no luck there either.
Best,
Lars
User | Count |
---|---|
68 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.