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

Close

How To Fix WRF_APC221 - Key figure &1 cannot be used with assortment &2


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WRF_APC - Messages for Operational Assortment Planning and Control

  • Message number: 221

  • Message text: Key figure &1 cannot be used with assortment &2

  • Show details Hide details
  • What causes this issue?

    Key figure &V1& cannot be used with assortment &V2&
    Possible reasons are:
    A key figure configured for putaway must be assigned to a distribution
    center assortment.
    A key figure not configured for putaway must be assigned to a global
    assortment.

    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?

    Use either a different key figure or a different assortment.

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WRF_APC221 - Key figure &1 cannot be used with assortment &2 ?

    SAP Error Message:
    WRF_APC221Key figure &1 cannot be used with assortment &2


    Cause:

    This error occurs in SAP Advanced Planning and Optimization (APO), specifically in the Demand Planning (DP) or Supply Network Planning (SNP) modules, when a key figure (such as a planning key figure or characteristic) is used in combination with an assortment that is not compatible or allowed.

    • The key figure you are trying to use is not defined or allowed for the particular assortment.
    • Assortments in SAP APO define a subset of products or locations for planning purposes.
    • Certain key figures are restricted to specific assortments or planning objects.
    • The system checks the compatibility between the key figure and the assortment and throws this error if they do not match.

    Explanation:

    • Key figure &1: This is a placeholder for the actual key figure name/code.
    • Assortment &2: This is a placeholder for the assortment ID or name.

    The system is telling you that the key figure you want to use cannot be applied to the specified assortment because the combination is invalid or not maintained in the system.


    Solution:

    1. Check Key Figure and Assortment Assignment:

      • Go to the transaction or customizing where key figures and assortments are maintained.
      • Verify if the key figure is assigned or allowed for the assortment in question.
      • In SAP APO, this is often maintained in the planning area or in the key figure master data.
    2. Adjust the Assortment or Key Figure:

      • If the key figure should be used with the assortment, update the configuration to allow this.
      • If the key figure is not relevant for the assortment, select a different key figure that is compatible.
    3. Review Planning Area Settings:

      • Check the planning area settings in transaction /SAPAPO/MC90 or relevant customizing.
      • Ensure that the key figure is included in the planning area and is valid for the assortment.
    4. Check Characteristic and Key Figure Relationships:

      • Sometimes, the error arises because the characteristic values defining the assortment do not match the key figure's allowed values.
      • Adjust the characteristic values or key figure definitions accordingly.
    5. Consult SAP Notes and Documentation:

      • Search for SAP Notes related to WRF_APC221 for any patches or known issues.
      • Review SAP APO documentation on key figure and assortment management.

    Additional Information:

    • This error is common during planning runs, data loads, or when defining planning layouts.
    • Assortments are used to filter or group planning objects; key figures must be compatible with these groups.
    • Proper master data maintenance and planning area configuration are critical to avoid this error.
    • If you recently changed assortments or key figures, verify that all dependencies and assignments are updated.

    Summary:

    Aspect Details
    Cause Key figure is not allowed or assigned for the specified assortment.
    Effect Planning or data processing fails with error WRF_APC221.
    Solution Verify and correct key figure and assortment assignments in planning area/customizing.
    Tools Planning area maintenance, key figure master data, assortment definitions, SAP Notes.

    If you provide the actual key figure and assortment names, 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