How To Fix GG021 - Ledger & does not exist, but the assignment to company code & does exist


SAP Error Message - Details

  • Message type: E = Error

  • Message class: GG - Messages for FI-SL customizing

  • Message number: 021

  • Message text: Ledger & does not exist, but the assignment to company code & does exist

  • Show details Hide details
  • What causes this issue?

    The assignment of ledger &V1& to company code &V2& exists, but there
    is no master data for ledger &V1&.

    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?

    Incorrect data is defined in your system. Remove this incorrect data.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message GG021 - Ledger & does not exist, but the assignment to company code & does exist ?

    The SAP error message GG021 indicates that the specified ledger does not exist, even though there is an assignment to the company code. This error typically arises in the context of Financial Accounting (FI) and Controlling (CO) modules when trying to post transactions or perform operations that require a specific ledger.

    Cause of the Error:

    1. Ledger Configuration: The ledger you are trying to use may not be properly configured in the system. This could be due to it not being created or activated for the specific company code.
    2. Company Code Assignment: While the error message states that the assignment to the company code exists, it is possible that the ledger is not assigned correctly or is inactive.
    3. Missing Authorizations: The user may not have the necessary authorizations to access the specified ledger.
    4. Data Consistency Issues: There may be inconsistencies in the configuration or data that lead to the system not recognizing the ledger.

    Solution:

    1. Check Ledger Configuration:

      • Go to the transaction code OB22 (or use the path: SPRO > Financial Accounting > General Ledger > Master Data > Define Ledgers).
      • Verify that the ledger in question is defined and active for the relevant company code.
    2. Verify Company Code Assignment:

      • Ensure that the ledger is assigned to the company code correctly. You can check this in the same configuration area where you defined the ledger.
      • Make sure that the ledger is not marked as inactive.
    3. Check Authorizations:

      • Ensure that the user has the necessary authorizations to access the ledger. This can be checked in the user roles and profiles assigned to the user.
    4. Review Data Consistency:

      • Run consistency checks or reports to identify any discrepancies in the configuration that might be causing the issue.
    5. Consult SAP Notes:

      • Check for any relevant SAP Notes that might address this specific error. Sometimes, there are known issues or patches that can resolve such errors.
    6. Testing:

      • After making any changes, perform a test transaction to see if the error persists.

    Related Information:

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as OB22 (for ledger configuration), OBA7 (for company code settings), and SE11 (for data dictionary checks).
    • SAP Documentation: Refer to SAP Help documentation for detailed information on configuring ledgers and company codes.
    • Support: If the issue persists after checking the above points, consider reaching out to your SAP support team or consulting with an SAP expert for further assistance.

    By following these steps, you should be able to identify and resolve the cause of the GG021 error 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