How To Fix DPR_FC014 - Make sure that condition &1 is compatible with object category &2


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DPR_FC - Field Control for Project Management

  • Message number: 014

  • Message text: Make sure that condition &1 is compatible with object category &2

  • Show details Hide details
  • What causes this issue?

    For each condition that SAP delivers in field control, an appropriate
    include exists with a schema program that the system uses to generate
    the field control class.
    Example: The include 'EVAL_CONDS_C001' exists for the condition 'C001'.
    <EX>/>EVAL_CI_C001<(><<)>/</>
    <EX>,,data: lr_<(>&<)>objectname& type ref to cl_dpr_<(>&<)>objectname&.
    </>
    <EX>,,data: ls_condition type ts_condition_per_node.</>
    <EX>,,* check if object is released</>
    <EX>,,lr_<(>&<)>objectname& ?= ir_root_object.</>
    <EX>,,if lr_<(>&<)>objectname&->is_released( ) eq cl_dpr_co=>sc_true.</>
    <EX>,, ls_condition-condition_value = cl_dpr_co=>sc_true.</>
    <EX>,,else.</>
    <EX>,, ls_condition-condition_value = cl_dpr_co=>sc_false.</>
    <EX>,,endif.</>
    <EX>,,ls_condition-node_name = iv_node_name.</>
    <EX>,,ls_condition-node = ir_object.</>
    <EX>,,ls_condition-condition_id = 'MV_C001'.</>
    <EX>,,insert ls_condition into table mt_conditions.</>
    <EX>,,/>END<(><<)>/</>
    When it generates the field control class, the system replaces the
    variable '<NP><(>&<)>objectname<(>&<)>'</> by the appropriate object
    category.
    Example: When you assign the condition 'C001' to the object category
    'DPO' (project definition), the system replaces <NP>'<(>&<)>objectname
    <(>&<)>'</> by <NP>'PROJECT_O'</> during generation. Therefore, the
    first line from this example would be:
    <EX>,,data: lr_PROJECT_O type ref to cl_dpr_PROJECT_O.</>
    The object-specific method or value assignment calls used in the
    implementation must be valid for the object category.
    Example: The following is an example of the coding generated for the
    object category 'DPO':
    <EX>,,lr_PROJECT_O ?= ir_root_object.</>
    <EX>,,if lr_PROJECT_O->is_released( ) eq cl_dpr_co=>sc_true.</>
    The corresponding method <NP>lr_PHASE_T->is_released()</> does not exist
    for the object 'PPT' (phase in template) because this would cause a
    syntax error in the generated class.

    System Response

    The system cannot automatically check whether the condition is
    compatible with the object category.
    If the assignments are incompatible, the system generates a syntax error
    or the program may terminate when the field control class or its usage
    is generated in the application.

    How to fix this error?

    Check the schema program to see if it is compatible with the object
    category.
    If the program terminates, check your field control settings and field
    control classes.
    If the selected condition is not compatible with the object category,
    create a customer-specific condition and assign it to the object
    category (see SAP Note 947936).
    For more information about setting up field control, see:
    Customizing for <LS>Project Management</> under <ZK>Global Enhancements
    to Project Elements</> -> <ZK>Set Up Field Control</>
    SAP Note 947936

    Procedure for System Administrators

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


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message DPR_FC014 - Make sure that condition &1 is compatible with object category &2 ?

    The SAP error message DPR_FC014, which states "Make sure that condition &1 is compatible with object category &2," typically occurs in the context of project management or project-related transactions in SAP, particularly when dealing with conditions that are not compatible with the specified object category.

    Cause:

    This error usually arises due to one of the following reasons:

    1. Incompatible Condition Type: The condition type you are trying to use is not valid for the specified object category. For example, if you are trying to apply a cost condition to a project that does not support that type of cost condition.

    2. Configuration Issues: There may be configuration settings in the SAP system that define which conditions are valid for which object categories. If these settings are not correctly configured, it can lead to this error.

    3. Data Entry Errors: There might be a mistake in the data entry where the wrong condition type is selected for the object category.

    Solution:

    To resolve the error, you can take the following steps:

    1. Check Condition Type: Verify that the condition type you are trying to use is indeed compatible with the object category you are working with. You can refer to the SAP documentation or configuration settings to confirm this.

    2. Review Configuration: If you have access to the configuration settings, check the settings for the object categories and the associated condition types. Ensure that the condition type is allowed for the specified object category.

    3. Correct Data Entry: If the error is due to incorrect data entry, correct the condition type in your transaction to one that is compatible with the object category.

    4. Consult Documentation: Refer to SAP Help or documentation specific to your version of SAP for detailed information on the condition types and object categories.

    5. Seek Help from SAP Support: If you are unable to resolve the issue, consider reaching out to your SAP support team or consulting SAP Notes for any known issues related to this error message.

    Related Information:

    • Transaction Codes: Familiarize yourself with relevant transaction codes that may be involved in the process where the error occurs (e.g., CJ20N for project management).
    • SAP Notes: Search for SAP Notes related to DPR_FC014 for any patches or updates that may address the issue.
    • User Roles and Authorizations: Ensure that you have the necessary authorizations to perform the actions related to the object category and condition type.

    By following these steps, you should be able to identify the cause of the error and implement a solution to resolve it.

    • 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