How To Fix F7138 - Account & is not defined in company code &. Change your entry.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: F7 - Program Error Messages

  • Message number: 138

  • Message text: Account & is not defined in company code &. Change your entry.

  • Show details Hide details
  • What causes this issue?

    You want to carry out cash pooling. To do this, you have specified a
    header account which does not exist in the specified company code.

    System Response

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

    How to fix this error?

    Enter the appropriate header company code for the header
    account.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message F7138 - Account & is not defined in company code &. Change your entry. ?

    The SAP error message F7138 indicates that a specific account is not defined in the specified company code. This error typically occurs during financial transactions, such as posting a journal entry or executing a financial report, where the system expects to find a valid account in the specified company code.

    Cause:

    1. Account Not Defined: The account you are trying to use has not been created or activated in the specified company code.
    2. Incorrect Company Code: The company code you are using may not be the one where the account is defined.
    3. Account Type Issues: The account may not be of the correct type (e.g., it may be a balance sheet account when a profit and loss account is expected).
    4. Master Data Issues: There may be issues with the master data setup for the account in the Financial Accounting (FI) module.

    Solution:

    1. Check Account Definition:

      • Go to the transaction code FS00 (G/L Account Master Record) and check if the account is defined for the specified company code.
      • If it is not defined, you will need to create it.
    2. Create/Modify Account:

      • If the account does not exist, create it by entering the necessary details (account number, account type, company code, etc.).
      • If it exists but is not active, you may need to modify it to ensure it is active for the company code.
    3. Verify Company Code:

      • Ensure that you are using the correct company code in your transaction. If you are working in multiple company codes, double-check that you are in the right one.
    4. Check Account Type:

      • Ensure that the account type is appropriate for the transaction you are trying to perform. For example, if you are trying to post a revenue transaction, ensure that the account is a revenue account.
    5. Consult with Your SAP Administrator:

      • If you do not have the necessary permissions to create or modify accounts, consult with your SAP administrator or finance team to resolve the issue.

    Related Information:

    • Transaction Codes:
      • FS00: G/L Account Master Record
      • OBY6: Define Company Code
      • OBD2: Define G/L Account for Company Code
    • Documentation: Refer to SAP Help documentation for detailed steps on managing G/L accounts and company codes.
    • User Roles: Ensure that you have the appropriate roles and authorizations to create or modify G/L accounts in SAP.

    By following these steps, you should be able to resolve the F7138 error and successfully process your financial transactions.

    • 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