How To Fix 5P358 - Decision field and comparative value or field are not of the same length


5P358 - Overview

  • Message type: E = Error

  • Message class: 5P - Error Messages for Schema, Pers.Calc.Rule and Feature Checks

  • Message number: 358

  • Message text: Decision field and comparative value or field are not of the same length

  • Show details Hide details
  • What causes this issue?

    You have formulated a comparison for a field within a decision
    operation as follows:
    field+off(length)?'value' or field1+off(length)?field2+off(length)
    The lengths of field+off(length) and 'value' and/or field1+off(length)
    and field2+off(length) are not identical. Please correct the lengths
    accordingly.

    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?


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 5P358 - Decision field and comparative value or field are not of the same length ?
    The SAP error message 5P358, which states "Decision field and comparative value or field are not of the same length," typically occurs in the context of decision-making processes within SAP, such as in the use of decision tables, rules, or conditions in workflows or business processes. This error indicates that there is a mismatch in the data types or lengths of the fields being compared in a decision-making context.
    
    Cause: Data Type Mismatch: The fields being compared may have different data types (e.g., one is a character field while the other is a numeric field). Length Mismatch: The lengths of the fields being compared are not the same. For example, if one field is defined as a CHAR(10) and the other as CHAR(5), this will lead to the error. Incorrect Configuration: The configuration of decision tables or rules may not align with the expected data structure, leading to comparisons that are not valid.
    Solution: Check Field

    Already have an account? Login here!




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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author