How To Fix FB028 - Session & header record &: head.rec.does not contain a comp.code


SAP Error Message - Details

  • Message type: E = Error

  • Message class: FB - Batch Programs

  • Message number: 028

  • Message text: Session & header record &: head.rec.does not contain a comp.code

  • 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 FB028 - Session & header record &: head.rec.does not contain a comp.code ?

    The SAP error message FB028 indicates that there is an issue with the session and header record in the context of financial document processing, particularly when dealing with batch input sessions. The specific message "head.rec.does not contain a comp.code" suggests that the header record of the session does not contain a company code, which is a critical piece of information for financial transactions in SAP.

    Cause:

    1. Missing Company Code: The header record of the batch input session is missing the company code field, which is required for processing financial documents.
    2. Incorrect Session Creation: The session may have been created incorrectly, or the data being processed does not conform to the expected format.
    3. Data Upload Issues: If you are uploading data from an external source, the source data may not include the company code or may be formatted incorrectly.
    4. Configuration Issues: There may be configuration issues in the financial document processing settings that prevent the company code from being recognized.

    Solution:

    1. Check the Input Data: Ensure that the input data for the batch input session includes a valid company code. If you are using a file or a data upload, verify that the company code is present in the correct field.
    2. Review Session Creation: If you are manually creating the session, double-check the parameters and ensure that the company code is specified correctly.
    3. Correct the Header Record: If you have access to the session data, you can manually edit the header record to include the missing company code.
    4. Use Transaction Code SM35: You can use transaction code SM35 to review the batch input session and check for any errors or missing information in the header record.
    5. Consult Documentation: Review SAP documentation or help resources related to batch input sessions and financial document processing to ensure compliance with required fields.
    6. Contact SAP Support: If the issue persists and you cannot identify the cause, consider reaching out to SAP support for assistance.

    Related Information:

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as FB01 (Post Document), FB50 (G/L Account Document), and SM35 (Batch Input Monitoring).
    • Batch Input Sessions: Understand how batch input sessions work in SAP, including the structure of session and data records.
    • Company Code Configuration: Review the configuration of company codes in your SAP system to ensure they are set up correctly.
    • Error Logs: Check error logs for additional details that may provide insight into the issue.

    By addressing the missing company code in the header record, you should be able to resolve the FB028 error and successfully process 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
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker