How To Fix WS161 - Account key not maintained for settlement document type &1


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 161

  • Message text: Account key not maintained for settlement document type &1

  • Show details Hide details
  • What causes this issue?

    The Customizing settings for settlement process type &V2& and settlement
    document type &V1& are inconsistent.
    You have entered <AB>X</> <LS>Net</> or <AB>B</> <LS>Gross</> in the
    <DS:DE.WVOLP>Post Business Volume in Accounting</> field for the
    settlement process type. However, you have not entered a value in the
    <DS:DE.KTOSL_VE>Account Key for Clearing Line</> field in the
    settlement document type and this is required in this case.

    System Response

    INCLUDE ISR_VERARBEITUNG OBJECT DOKU ID TX

    How to fix this error?


    Enter the required account key for settlement document type &V1& or
    change the setting for the business volume posting for settlement
    process type &V2&.


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS161 - Account key not maintained for settlement document type &1 ?

    Certainly! Here's a detailed explanation for the SAP error message:


    SAP Error Message:

    WS161 - Account key not maintained for settlement document type &1


    Cause:

    This error occurs because the system is trying to post or settle a document using a settlement document type for which the account key has not been maintained in the configuration. The account key is essential for determining the G/L account to be posted during settlement.

    In SAP, settlement document types require an account key to link the settlement transaction to the correct G/L accounts. If this link is missing, the system cannot determine the correct accounts and throws this error.


    Where it occurs:

    • During settlement of internal orders, WBS elements, or other objects.
    • When posting settlement documents.
    • In transaction codes related to settlement like KO88, CJ88, or during automatic settlement runs.

    Solution:

    1. Maintain Account Key for Settlement Document Type:

      • Go to the IMG path:

        SPRO -> Controlling -> Internal Orders -> Settle Internal Orders -> Define Settlement Profile -> Assign Account Key to Settlement Document Type

        or for Project System:

        SPRO -> Project System -> Costs -> Settlement -> Define Settlement Profile -> Assign Account Key to Settlement Document Type
      • Find the settlement document type mentioned in the error message (replace &1 with the actual document type).

      • Assign the appropriate account key to this settlement document type.

    2. Check Settlement Profile:

      • Verify the settlement profile assigned to the order or WBS element.

      • Ensure that the settlement profile is correctly configured and linked to the settlement document type.

    3. Verify Account Key Configuration:

      • The account key must be maintained in:
        SPRO -> Financial Accounting -> General Ledger Accounting -> Business Transactions -> Closing -> Document Types -> Define Account Keys
      • Ensure the account key is valid and correctly configured.
    4. Re-run the Settlement:

      • After maintaining the account key, re-run the settlement process.

    Additional Information:

    • The account key controls the posting to G/L accounts during settlement and is linked to the document type to ensure correct accounting entries.

    • If you are unsure which account key to assign, consult your FI/CO consultant or check the configuration of similar settlement document types.

    • Sometimes, this error can also occur if a custom settlement document type was created but not fully configured.


    Summary:

    Aspect Details
    Error Message WS161 - Account key not maintained for settlement document type &1
    Cause Missing account key assignment for settlement document type
    Solution Assign account key to settlement document type in IMG configuration
    Transaction Codes KO88, CJ88 (Settlement transactions)
    IMG Path Controlling -> Internal Orders/Project System -> Settlement Profile -> Assign Account Key to Settlement Document Type

    If you need, I can guide you step-by-step through the configuration screens. Just let me know!

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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