Do you have any question about this error?
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
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.
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.
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 Definitions: Review the definitions of the fields involved in the decision-making process. Ensure that they are of the same data type and length.
- Adjust Data Types: If necessary, modify the data types or lengths of the fields to ensure they match. This may involve changing the field definitions in the database or adjusting the logic in the decision-making process.
- Review Decision Logic: Examine the decision logic or rules to ensure that the comparisons being made are valid and that the fields being compared are intended to be compared.
- Testing: After making adjustments, test the decision-making process to ensure that the error no longer occurs and that the logic behaves as expected.
Related Information:
By addressing the data type and length mismatches, you should be able to resolve the error and ensure that your decision-making processes function correctly.
Get instant SAP help. Start your 7-day free trial now.
5P357
Decision operation is too long, please read the long text
What causes this issue? Internally, the decision operation is saved as follows: field+off(length)?'value', or field1+off(length)?field2+off...
5P356
Offset entered is greater than/same as total job number of field
What causes this issue? The highest possible value for the offset is the field length of the field in question minus 1. Please correct your entry.Sys...
5P359
The desired nodes/tree structure cannot be deleted
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
5P360
No insertion possible! This table can have a maximum of 36 lines
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.