How To Fix GL313 - Assign ledger & to company code &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: GL - FI-SL Rollup

  • Message number: 313

  • Message text: Assign ledger & to company code &

  • Show details Hide details
  • What causes this issue?

    You want to post to the combination company code &V2& with ledger &V1&,
    but the assignment is missing.

    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?

    Create the company code -> ledger assignment in configuration.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message GL313 - Assign ledger & to company code & ?

    The SAP error message GL313 "Assign ledger & to company code &" typically occurs when there is a configuration issue related to the assignment of a ledger to a company code in the SAP system. This error is often encountered during the posting of financial transactions or when trying to access certain financial reports.

    Cause:

    The error arises when:

    1. A ledger (such as a general ledger or a special ledger) has not been assigned to the specified company code in the system.
    2. The configuration settings for the company code and ledger are incomplete or incorrect.
    3. The ledger being used in the transaction is not activated for the company code.

    Solution:

    To resolve the GL313 error, follow these steps:

    1. Check Ledger Assignment:

      • Go to the SAP transaction code OB22 (or navigate through the menu: Financial Accounting > General Ledger > Master Data > G/L Accounts > Preparation > Assign Ledgers to Company Codes).
      • Verify if the ledger in question is assigned to the relevant company code. If it is not, you will need to assign it.
    2. Assign Ledger to Company Code:

      • In the ledger assignment screen, you can add the necessary ledger to the company code.
      • Ensure that the ledger is activated for the company code and that all required settings are correctly configured.
    3. Check Configuration:

      • Ensure that the company code is properly configured in the system.
      • Check if the ledger is set up correctly in the system (e.g., check the settings in transaction code OB37 for ledgers).
    4. Review Document Types:

      • Ensure that the document types being used in the transactions are compatible with the ledger and company code settings.
    5. Consult Documentation:

      • If you are unsure about the configuration, refer to SAP documentation or consult with your SAP Basis or Finance team for assistance.

    Related Information:

    • Transaction Codes:

      • OB22: Assign Ledgers to Company Codes
      • OB37: Define Ledger
      • SPRO: Access the SAP Reference IMG for configuration settings.
    • SAP Notes:

      • Check for any relevant SAP Notes that might address specific issues related to ledger assignments or configurations.
    • User Roles:

      • Ensure that you have the necessary authorizations to make changes to the ledger assignments.

    By following these steps, you should be able to resolve the GL313 error and ensure that the ledger is correctly assigned to the company code in your SAP system.

    • 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