How to Fix SAP Error F5802: “Document Includes Already Cleared Items - Reversal Not Possible”

Let’s be honest, if you’ve worked with SAP Financial Accounting (FI) long enough, you've probably hit the roadblock called Error F5802. You try to reverse a goods receipt or cancel an invoice, and boom, SAP throws up this message: "Document includes already cleared items – reversal not possible." 

Frustrating, right? But don’t worry. This isn’t a system flaw; it’s SAP doing what it’s designed to do, protecting data integrity. The good news? There's a clean, effective way to fix it. 

Let’s break it all down, like you and I are chatting over coffee at the office pantry.

What’s Really Going On with Error F5802?

Here’s the thing: This error typically pops up in either of these two cases:
  • You’re reversing a material document using MBST
  • Or you’re cancelling a logistics invoice with MR8M, which was originally posted with MR1M
What ties both cases together? A cleared GR/IR (Goods Receipt / Invoice Receipt) account. 

SAP has already matched the goods receipt with the invoice. That means the entries are cleared. And once something’s cleared, SAP locks it down—no take-backs unless you reset that cleared status first.

Why SAP Blocks the Reversal

Think of it like this: Imagine settling a bill with a vendor, and then weeks later, trying to cancel the transaction. It’d wreak havoc on your financial reports, audits, and downstream processes. 

SAP avoids this chaos by preventing reversals on cleared line items. It’s a safeguard, not a bug.

How to Actually Fix It (Step-by-Step)

Let’s cut straight to the chase. If you want to reverse a cleared document, here’s how to do it properly.

Step 1: Use Transaction FBRA to Reset Cleared Items

  • Go to Transaction: FBRA
  • Enter the document number, fiscal year, and company code
  • Tick the checkbox for "Reset cleared items"
  • Execute
Boom, you’ve now undone the clearing, and the system treats it as an open item again.

Step 2: Proceed with Reversal

  • Use MBST to reverse a goods receipt
  • Use MR8M to reverse a logistics invoice
Problem solved.

Bonus: The SAP Note 326707 Shortcut

Now, you might be wondering, is there another way? 

Yes. If you're dealing with a more complex situation, SAP Note 326707 might save the day. It offers a system-level correction that doesn’t require manual resetting. Think of it as the shortcut, but you’ll need appropriate authorizations to implement it, and it might involve coordination with your Basis team.

⚠️ Pro Tip: Avoid the Problem in the First Place

A quick tip from the trenches: Always check if the GR/IR account has been cleared before attempting a reversal. You can do this by:
  • Reviewing the accounting document via FB03
  • Verifying clearing status via line item display (FBL3N for GL accounts)
Catching this early saves you a ton of rework later.

Final Thoughts: It’s Not a Bug - It’s a Feature

SAP can feel a bit rigid at times, but that’s by design. Error F5802 may seem like a roadblock, but it’s actually a safeguard that ensures financial accuracy and accountability. Once you know how to work with it, not against it, you’ll resolve these issues in minutes, not hours. 

So next time SAP says "Reversal not possible", you’ll know exactly what to do, and why.

Related:

Get help for your SAP MM problems
SAP MM Forums - Do you have a SAP MM Question?

SAP Material Management Books
SAP MM Books - Certification, Interview Questions and Configuration

SAP Materials Management Tips
SAP MM Configuration Tips and Materials Management Discussion Forum

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.