Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WS886 - Posting keys are allowed only with certain posting types


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 886

  • Message text: Posting keys are allowed only with certain posting types

  • Show details Hide details
  • The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    Posting keys can be used for the posting types listed below:
    Standard
    3 With Special General Ledger Indicator
    4 Against Special General Ledger
    5 Partner to Partner

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS886 - Posting keys are allowed only with certain posting types ?

    Certainly! Here's a detailed explanation of the SAP error message WS886: "Posting keys are allowed only with certain posting types" including its cause, solution, and related information.


    SAP Error Message: WS886

    Text: Posting keys are allowed only with certain posting types


    Cause

    This error occurs during document posting in Financial Accounting (FI) or related modules when the posting key used in the transaction is not valid for the posting type specified.

    • Posting keys in SAP define the type of line item (debit or credit) and control the field status during document entry.
    • Posting types define the nature of the posting (e.g., invoice, payment, credit memo).
    • The system checks if the posting key is allowed for the posting type being processed.
    • If the posting key is not configured or allowed for the posting type, the system throws WS886.

    Typical scenarios:

    • Customizing mismatch: The posting key is not assigned to the posting type in configuration.
    • User tries to post a document with an incorrect or invalid posting key for the transaction.
    • Integration or interface issues where posting keys are incorrectly passed.

    Solution

    1. Check Posting Key and Posting Type Configuration

    • Go to SPRO ? Financial Accounting (New) ? Financial Accounting Global Settings ? Document ? Line Item ? Define Posting Keys.
    • Verify the posting key used in the transaction.
    • Then check the assignment of posting keys to posting types:
      • Navigate to SPRO ? Financial Accounting (New) ? Accounts Receivable and Accounts Payable ? Business Transactions ? Incoming Invoices/Credit Memos or Outgoing Invoices/Credit Memos ? Assign Posting Keys to Posting Types.
    • Ensure the posting key is assigned to the posting type you are trying to use.

    2. Correct the Posting Key in the Transaction

    • If the posting key is incorrect, correct it in the transaction.
    • For example, if you are posting an invoice, use the posting key assigned for invoice debit or credit.
    • Check the document entry screen or interface to ensure the correct posting key is used.

    3. Adjust Customizing if Needed

    • If the business process requires a posting key that is not assigned to the posting type, update the customizing to allow it.
    • Be cautious and ensure that the posting key is valid for the business process.

    4. Check User Exits or BAdIs

    • Sometimes, user exits or BAdIs may modify posting keys dynamically.
    • Check if any custom code is changing posting keys incorrectly.

    5. Review Interface or Data Upload Programs

    • If the posting is done via interface or batch input, verify the data being passed.
    • Correct the posting key in the source data or mapping.

    Related Information

    • Posting Key (T-code: OB41) — Define and maintain posting keys.
    • Posting Type Configuration — Depends on the module and transaction (e.g., FI-AR, FI-AP).
    • Document Types and Posting Keys — Document types also influence allowed posting keys.
    • Field Status Groups — Posting keys control field status during entry.
    • Error Message Class: WS (Financial Accounting)

    Summary

    Aspect Details
    Error WS886: Posting keys are allowed only with certain posting types
    Cause Posting key used is not allowed for the posting type in configuration
    Solution Check and correct posting key assignment in customizing and transaction
    Where to Check SPRO ? Financial Accounting ? Document ? Line Item ? Posting Keys and Posting Types
    Additional Review custom code and interface data if applicable

    If you provide the exact transaction or scenario where this error occurs, I can help you with more specific steps.

    • 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 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