Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: SDDL_PARSER_MSG - Message Class for DDL Parser
Message number: 028
Message text: Comparison value of LIKE condition must be a character-type literal
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
SDDL_PARSER_MSG028
- Comparison value of LIKE condition must be a character-type literal ?The SAP error message SDDL_PARSER_MSG028 indicates that there is an issue with a LIKE condition in a query or selection where the comparison value is not a character-type literal. This typically occurs in the context of SAP's data definition language (DDL) or when working with selection conditions in ABAP programs.
Cause:
The error arises when you are trying to use a LIKE condition in a query, but the value you are comparing against is not a string or character-type literal. The LIKE operator is used to compare a string to a pattern, and it expects the comparison value to be a character string.
Example of the Issue:
If you have a query like this:
SELECT * FROM table_name WHERE column_name LIKE some_variable.
If
some_variable
is not a character-type literal (for example, if it is a numeric type), you will encounter this error.Solution:
To resolve this error, ensure that the comparison value in the LIKE condition is a character-type literal. Here are some steps you can take:
Check Data Types: Verify the data type of the variable or value you are using in the LIKE condition. It should be of type
CHAR
,STRING
, or similar.Convert Data Types: If you are using a variable that is not a character type, convert it to a string type before using it in the LIKE condition. For example:
DATA(lv_variable) = 'some_value'. SELECT * FROM table_name WHERE column_name LIKE lv_variable.
Use Character Literals: If you are using a hardcoded value, ensure it is enclosed in single quotes:
SELECT * FROM table_name WHERE column_name LIKE 'some_value%'.
Debugging: If you are unsure about the data type of a variable, you can use debugging tools in SAP to inspect the variable's type and value.
Related Information:
%
(which represents zero or more characters) and _
(which represents a single character).By ensuring that the comparison value in your LIKE condition is a character-type literal, you should be able to resolve the SDDL_PARSER_MSG028 error.
Get instant SAP help. Sign up for our Free Essentials Plan.
SDDL_PARSER_MSG027
The HAVING condition can only contain columns from the GROUP BY list
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SDDL_PARSER_MSG026
The function & is unknown
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SDDL_PARSER_MSG029
GROUP BY must not contain any LOB columns
What causes this issue? The columns specified after GROUP BY cannot have the type STRING, RAWSTRING, LCHR, or LRAW. Elements with these ABAP Dictiona...
SDDL_PARSER_MSG030
UNION must not contain any LOB columns in the selection list
What causes this issue? The selection list of a UNION cannot have columns with the type STRING, RAWSTRING, LCHR, or LRAW. Elements with these ABAP Di...
Click on this link to search all SAP messages.