How To Fix FG159 - Only select company codes of one chart of accounts


SAP Error Message - Details

  • Message type: E = Error

  • Message class: FG - Program Error Messages

  • Message number: 159

  • Message text: Only select company codes of one chart of accounts

  • Show details Hide details
  • What causes this issue?

    You started a program run for archiving general and company
    code-dependent G/L accounts. With this selection, no G/L accounts from
    different charts of accounts can be processed.

    System Response

    Error message

    How to fix this error?

    Only select company codes of one chart of accounts and, if necessary,
    start the archiving program several times for different charts of
    accounts.
    &NOTE&
    This restriction is valid only during the simultaneous selection of
    general and company code-dependent G/L account master data.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message FG159 - Only select company codes of one chart of accounts ?

    The SAP error message FG159 ("Only select company codes of one chart of accounts") typically occurs when you are trying to perform an operation that involves multiple company codes that are assigned to different charts of accounts. This restriction is in place because certain financial operations and reporting require consistency in the chart of accounts being used.

    Cause:

    1. Multiple Company Codes: You have selected multiple company codes that are associated with different charts of accounts.
    2. Inconsistent Configuration: The company codes may have been configured to use different charts of accounts in the system, leading to this error when trying to execute a transaction that requires a single chart of accounts.

    Solution:

    1. Check Company Code Configuration:

      • Go to the transaction code OBY6 (or navigate through the menu: SPRO > Financial Accounting > General Ledger > Master Data > G/L Accounts > Prepare for Migration > Define Chart of Accounts).
      • Verify the chart of accounts assigned to each company code you are working with.
    2. Select Company Codes with the Same Chart of Accounts:

      • When performing the operation, ensure that you only select company codes that share the same chart of accounts. This may involve filtering your selection or adjusting your criteria.
    3. Adjust Company Code Settings:

      • If necessary, you can change the chart of accounts for a company code, but this should be done with caution as it can have significant implications for financial reporting and data integrity.
    4. Consult Documentation:

      • Review SAP documentation or consult with your SAP administrator for specific guidelines on how to manage charts of accounts and company codes.

    Related Information:

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as OBY6, OBD2, and OBD3 for managing company codes and charts of accounts.
    • SAP Notes: Check SAP Notes for any updates or patches that may address specific issues related to this error.
    • User Roles and Permissions: Ensure that you have the necessary permissions to view and modify company code and chart of accounts settings.

    By following these steps, you should be able to resolve the FG159 error and proceed with your financial operations in SAP.

    • 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