Message type: E = Error
Message class:  J3RFREGINV - Invoice Registration Journal 
Message number: 412
Message text: Annulment and Annul XML flag can be used only with Annulment delete mode
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message J3RFREGINV412 indicates that there is an issue with the configuration or usage of the annulment process in the context of the Brazilian tax reporting system (specifically for electronic invoices). This error typically arises when the system detects that the annulment and annul XML flags are being used incorrectly, particularly when the delete mode is not set to "Annulment."
Cause: The error occurs when: The system is trying to process an annulment (cancellation) of an electronic invoice (NF-e) but the delete mode is not set to "Annulment." The configuration or parameters for the electronic invoice processing are not correctly set up to handle annulments. There may be a mismatch in the flags being used in the XML file or in the processing logic.
Solution: To resolve this error, you can take the following steps: Check Delete Mode Configuration: Ensure that the delete mode is set to "Annulment" when you are trying to annul an invoice. This
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
J3RFREGINV411 Original document number is empty
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
J3RFREGINV410 Total linked VAT &1 is greater than VAT amount of invoice &2
What causes this issue?  You entered a VAT amount for linking that is greater than the outgoing invoice VAT amount.System Response  The system issues ...
J3RFVAT000 & & & &
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
J3RFVAT001 No documents found
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.