How To Fix FB160 - Doc. &: No company code was transferred in the header record


SAP Error Message - Details

  • Message type: E = Error

  • Message class: FB - Batch Programs

  • Message number: 160

  • Message text: Doc. &: No company code was transferred in the header record

  • Show details Hide details


  • Self-Explanatory Message

    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.



    What else can you do?

    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.


Smart SAP Assistant

  • What is the cause and solution for SAP error message FB160 - Doc. &: No company code was transferred in the header record ?

    The SAP error message FB160, which states "Doc. &: No company code was transferred in the header record," typically occurs during the posting of financial documents in SAP. This error indicates that the system did not receive a valid company code in the header of the document being processed. Here’s a breakdown of the cause, potential solutions, and related information:

    Cause:

    1. Missing Company Code: The most common reason for this error is that the company code field in the document header is either blank or not populated correctly.
    2. Incorrect Configuration: There may be issues with the configuration of the document type or the posting process that prevents the company code from being recognized.
    3. Data Transfer Issues: If you are using an interface or a batch input session to upload data, the mapping of fields may not be set up correctly, leading to the omission of the company code.
    4. User Authorization: In some cases, user roles and authorizations may restrict access to certain company codes, leading to this error.

    Solution:

    1. Check Document Header: Ensure that the company code is correctly entered in the document header. If you are manually entering the data, verify that the field is not left blank.
    2. Review Configuration: Check the configuration settings for the document type you are using. Ensure that the company code is set up correctly in the relevant configuration settings (e.g., in Financial Accounting).
    3. Data Upload Process: If you are using a data upload method (like LSMW or BAPIs), review the mapping of fields to ensure that the company code is included and correctly mapped.
    4. User Authorizations: Verify that the user has the necessary authorizations to post documents for the specified company code. If not, you may need to adjust the user roles or permissions.
    5. Debugging: If the issue persists, consider using the SAP debugger to trace the document posting process and identify where the company code is being lost or not transferred.

    Related Information:

    • Transaction Codes: You may want to check the transaction codes related to document posting, such as FB01 (Post Document), FB50 (G/L Account Document), or FB60 (Vendor Invoice).
    • SAP Notes: Look for relevant SAP Notes that may address this specific error or provide additional troubleshooting steps.
    • Documentation: Review SAP documentation for Financial Accounting (FI) to understand the requirements for document postings and the role of company codes.

    By following these steps, you should be able to identify and resolve the issue causing the FB160 error message in SAP.

    • 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