How To Fix PM158 - G/L account with number &1 is not maintained in the G/L account master


SAP Error Message - Details

  • Message type: E = Error

  • Message class: PM - Extended Payment Functions

  • Message number: 158

  • Message text: G/L account with number &1 is not maintained in the G/L account master

  • Show details Hide details
  • What causes this issue?

    The G/L account entered does not exist for the respective company code
    in the G/L account master record.

    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?

    Maintain the G/L account in the G/L account master record (company
    codes).
    Restart the transaction.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message PM158 - G/L account with number &1 is not maintained in the G/L account master ?

    The SAP error message PM158 indicates that a General Ledger (G/L) account specified in a transaction is not maintained in the G/L account master data. This typically occurs when you attempt to post a transaction that references a G/L account that has not been set up correctly or is missing in the system.

    Cause:

    1. Missing G/L Account: The G/L account specified in the transaction does not exist in the system.
    2. Inactive G/L Account: The G/L account may exist but is marked as inactive or not available for postings.
    3. Incorrect Account Assignment: The account may not be assigned to the correct company code or chart of accounts.
    4. Data Entry Error: There may be a typographical error in the G/L account number entered in the transaction.

    Solution:

    1. Check G/L Account Master Data:

      • Go to the transaction code FS00 (G/L Account Master Record) and check if the G/L account number exists.
      • Ensure that the account is active and properly configured for the relevant company code and chart of accounts.
    2. Create or Activate G/L Account:

      • If the G/L account does not exist, create it using transaction code FS00.
      • If it exists but is inactive, you may need to activate it or adjust its settings to allow postings.
    3. Verify Account Assignment:

      • Ensure that the G/L account is assigned to the correct company code and that it is set up for the appropriate account type (e.g., asset, expense, revenue).
    4. Correct Data Entry:

      • Double-check the G/L account number entered in the transaction for any typographical errors.
    5. Consult with Finance Team:

      • If you are unsure about the correct G/L account to use, consult with your finance or accounting team to ensure you are using the appropriate account for the transaction.

    Related Information:

    • Transaction Codes:

      • FS00: Create/Change G/L Account Master Record
      • FBL3N: Display G/L Account Line Items
      • OB52: Open and Close Posting Periods (to ensure the period is open for posting)
    • Documentation: Refer to SAP documentation or your organization's internal guidelines for managing G/L accounts and financial postings.

    • User Roles: Ensure that you have the necessary authorizations to view or modify G/L account master data.

    By following these steps, you should be able to resolve the PM158 error and successfully process 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