Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix F5804 - Internal document no.in G/L acct table not in document header table


SAP Error Message - Details

  • Message type: E = Error

  • Message class: F5 - Document Editing

  • Message number: 804

  • Message text: Internal document no.in G/L acct table not in document header table

  • Show details Hide details
  • What causes this issue?

    While scanning the FI interface table for G/L accounts, the system
    found (in an item) an internal document number which is not in the
    document header.

    System Response

    Data cannot be processed.

    How to fix this error?

    This is a system error in the calling application.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message F5804 - Internal document no.in G/L acct table not in document header table ?

    The SAP error message F5804, which states "Internal document no. in G/L acct table not in document header table," typically occurs when there is a mismatch between the General Ledger (G/L) account entries and the document header entries in the SAP system. This can happen due to various reasons, such as data inconsistencies, incomplete postings, or issues during data migration.

    Causes:

    1. Data Inconsistency: The internal document number exists in the G/L account table (e.g., BSEG) but does not have a corresponding entry in the document header table (e.g., BKPF).
    2. Incomplete Postings: A transaction may have been partially posted, leading to missing entries in the document header.
    3. Data Migration Issues: If data was migrated from another system, there may have been errors in the migration process that resulted in missing or inconsistent data.
    4. Database Corruption: In rare cases, database corruption can lead to missing entries.

    Solutions:

    1. Check Document Existence: Use transaction codes like SE16 or SE11 to check the entries in the BKPF (document header) and BSEG (document line items) tables. Verify if the internal document number exists in both tables.
    2. Repost Transactions: If the document is incomplete, you may need to repost the transaction to ensure that both the header and line items are correctly recorded.
    3. Data Consistency Check: Run the SAP program RFSEPA00 or RFBLG00 to check for inconsistencies in the financial documents and correct them.
    4. Consult SAP Notes: Check the SAP Support Portal for any relevant SAP Notes that may address this specific error or provide guidance on how to resolve it.
    5. Database Repair: If you suspect database corruption, consult your database administrator or SAP support for assistance in repairing the database.
    6. Custom Programs: If the issue persists, consider developing a custom ABAP program to identify and rectify the inconsistencies between the tables.

    Related Information:

    • Transaction Codes:
      • SE16 or SE11 for table browsing.
      • FB03 to display documents.
      • FBRA for document reversal.
    • Tables Involved:
      • BKPF: Document Header Table
      • BSEG: Document Segment Table
    • SAP Notes: Always check for relevant SAP Notes that may provide specific fixes or patches related to this error.

    If the issue continues after trying the above solutions, it may be necessary to engage with SAP support or a qualified SAP consultant for further investigation and resolution.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author