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

Close

How To Fix VFRR057 - Company code &1 is not valid; line cannot be created


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VFRR - SD revenue recognition

  • Message number: 057

  • Message text: Company code &1 is not valid; line cannot be created

  • 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 VFRR057 - Company code &1 is not valid; line cannot be created ?

    The SAP error message:

    VFRR057 Company code &1 is not valid; line cannot be created

    typically occurs in the context of Vendor Invoice Management (VIM) or related financial document processing scenarios where a company code specified in the document or line item is not recognized or valid in the system.


    Cause

    • The company code entered in the invoice line or document does not exist in the SAP system.
    • The company code might be incorrectly entered or mistyped.
    • The company code is not assigned or configured properly in the relevant organizational data.
    • The document or line item is referencing a company code that is not active or has been deleted.
    • In some cases, the error can occur if the company code is not maintained in the customizing settings for the relevant application (e.g., FI, MM, or VIM).

    Solution

    1. Verify Company Code:

      • Check the company code entered in the document or line item.
      • Use transaction OBY6 to verify if the company code exists and is active.
    2. Correct the Company Code:

      • If the company code is incorrect, correct it to a valid company code.
      • If the company code is missing, enter a valid company code.
    3. Check Configuration:

      • Ensure the company code is properly configured in the system.
      • Check if the company code is assigned to the relevant controlling area or purchasing organization if applicable.
    4. Check Master Data:

      • Verify vendor master data or other master data involved to ensure the company code is valid and assigned correctly.
    5. Check Integration Settings:

      • If the error occurs during interface processing (e.g., from an external system or VIM), verify the mapping and data transfer to ensure the company code is correctly passed.
    6. Reprocess the Document:

      • After correcting the company code, try to recreate or post the document again.

    Related Information

    • Transaction Codes:

      • OBY6 – Display/Change Company Code
      • OBA7 – Maintain Company Code for Document Types
      • FB03 – Display Document (to check existing documents)
      • VIM transactions if related to Vendor Invoice Management
    • Notes and Documentation:

      • Check SAP Notes related to VFRR057 for any specific patches or updates.
      • Review the configuration guides for company code setup in FI and MM modules.
    • Common Scenarios:

      • This error is common when uploading or interfacing invoices where the company code is hardcoded or incorrectly mapped.
      • Also appears if a company code is used in a document but not maintained in the customizing for the document type or transaction.

    If you provide more context (e.g., transaction, module, or process where the error occurs), I can help with more specific guidance.

    • 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
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant