How To Fix F5813 - Document header without company code


SAP Error Message - Details

  • Message type: E = Error

  • Message class: F5 - Document Editing

  • Message number: 813

  • Message text: Document header without company code

  • Show details Hide details
  • What causes this issue?

    In the interface to financial accounting, the company code is missing
    in a document header.

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    System Response

    System error in the calling application.

    How to fix this error?

    Get in touch with your consultant or with SAP directly.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message F5813 - Document header without company code ?

    The SAP error message F5813, "Document header without company code," typically occurs when you are trying to post a financial document (such as an invoice or journal entry) without specifying a valid company code in the document header. This is a critical requirement in SAP, as the company code is essential for financial reporting and accounting purposes.

    Cause:

    1. Missing Company Code: The most common cause is that the company code field in the document header is either blank or not properly filled in.
    2. Incorrect Configuration: There may be issues with the configuration of the document type or the posting area that does not allow for a company code to be assigned.
    3. User Input Error: The user may have inadvertently skipped the company code field while entering the document.
    4. Data Migration Issues: If data is being migrated from another system, the company code may not have been included or mapped correctly.

    Solution:

    1. Check Document Header: Ensure that the company code field is filled in the document header. You can do this by reviewing the document entry screen and making sure the company code is specified.
    2. Review Configuration: If the company code is correctly entered but the error persists, check the configuration settings for the document type being used. Ensure that the document type is correctly linked to the appropriate company code.
    3. User Training: Provide training to users on the importance of entering the company code and how to properly fill out the document header.
    4. Data Migration Review: If this error arises during data migration, review the migration process to ensure that all necessary fields, including the company code, are correctly populated.
    5. Transaction Codes: If you are using a specific transaction code, ensure that it is designed to handle the company code correctly. Some transaction codes may have restrictions or specific requirements.

    Related Information:

    • Transaction Codes: Common transaction codes related to financial postings include FB01 (Post Document), FB60 (Enter Incoming Invoices), and FB70 (Enter Outgoing Invoices).
    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message.
    • Documentation: Refer to SAP documentation for detailed information on financial document processing and the importance of the company code.
    • Support: If the issue persists after checking the above points, consider reaching out to your SAP support team or consulting with an SAP expert for further assistance.

    By ensuring that the company code is correctly specified and configured, you should be able to resolve the F5813 error and successfully post your financial documents.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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