How To Fix PM154 - You must enter a company code for G/L account &1


SAP Error Message - Details

  • Message type: E = Error

  • Message class: PM - Extended Payment Functions

  • Message number: 154

  • Message text: You must enter a company code for G/L account &1

  • Show details Hide details
  • What causes this issue?

    You have not yet made an entry in all required-entry fields.

    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?

    If you entered a G/L account, you must also enter the corresponding
    company code.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message PM154 - You must enter a company code for G/L account &1 ?

    The SAP error message PM154, which states "You must enter a company code for G/L account &1," typically occurs when you are trying to perform an operation that requires a General Ledger (G/L) account, but the system cannot find a valid company code associated with that account. This can happen in various scenarios, such as when creating or modifying a financial document, or when trying to post a transaction.

    Cause:

    1. Missing Company Code: The G/L account you are trying to use does not have an associated company code in the system.
    2. Incorrect Configuration: The G/L account may not be properly configured in the system, or the company code may not be assigned to the account.
    3. Data Entry Error: There may be a mistake in the data entry where the company code was not specified or was entered incorrectly.

    Solution:

    1. Check G/L Account Configuration:

      • Go to the transaction code FS00 (G/L Account Master Record) and enter the G/L account number that is causing the error.
      • Ensure that the account is set up correctly and that it has a valid company code assigned to it.
    2. Assign Company Code:

      • If the company code is missing, you will need to create or modify the G/L account to include the appropriate company code.
      • Make sure to save the changes after assigning the company code.
    3. Verify Transaction Data:

      • If you are entering a transaction, double-check that you have entered the correct company code in the relevant fields.
      • Ensure that the company code you are using is active and valid in the system.
    4. Consult with Your SAP Administrator:

      • If you do not have the necessary permissions to make changes, contact your SAP administrator or finance team to resolve the issue.

    Related Information:

    • Transaction Codes:
      • FS00: G/L Account Master Record
      • OBY6: Define Company Code
    • Documentation: Refer to SAP Help documentation for more details on G/L account configuration and company code settings.
    • User Roles: Ensure that the user has the appropriate roles and authorizations to access and modify G/L accounts.

    By following these steps, you should be able to resolve the PM154 error and successfully proceed with your transaction.

    • 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 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