When trying to cancel an invoice, the error message M8356 - Invoice cannot be cancelled appears.
Cause and prerequisitesMR08 creates the cancellation invoice using batch input in background. If the batch input fails, then the error message M8356 is returned, rather than the actual error message from the batch input run.
SolutionFrom version 22E onwards, you can debug this easily by using special OK-codes in MR08.
Instead of using the normal POST/SAVE function, enter OK-code:
RBSA - to see the batch input in foreground
RBSE - to see the batch input in errors only mode
Prior to 22E - you need to set a breakpoint in MM08SF10, in form STORNOBELEG_ERZEUGEN and just before executing the statement CALL FUNCTION 'MR_CREATE_INVOICE...' set the value of SBKPF-STYPE to 'A' (foreground) or 'E' (errors only).
There are several corrections in this area already. Please check the following notes for a possible solution:
16416 - Error due to allocation number not ready for input
16922 - Error due to external number assignment
17412 - Error due to vendor required fields such as SCB indicator
17876 - Error due to missing payment terms, payment method, etc.
21841 - Cancellation with additional data
22413 - Error due to non-deductible input tax
22549 - Cancellation with POR data
I have included these in the related notes section.
Additional key words
SAPMM08S SAPLMRBI MR_CREATE_INVOICE
No comments:
Post a Comment