2023 Jul 28 11:30 AM
Hi ABAP experts,
What is the issue here? How do I use Open SQL functions without this error?
Message 249 ( is invalid here (due to grammar).
2023 Jul 28 1:56 PM
LENGTH( ... ) is only supported since ABAP 7.50
Anything not supported can probably be done with Native SQL (SQL sent directly to the database, by using e.g. ADBC, deprecated EXEC SQL, etc.) but of course .
You can also try workarounds. I don't know your exact context, maybe you can replace LENGTH( ZZZ ) = 1 with ZZZ LIKE '_' (first character = any character an rest of characters = blank)
2023 Jul 28 12:16 PM
2023 Jul 28 12:17 PM
Thanks sandra.rossi , are there any functions we can use below 7.5?
2023 Jul 28 1:49 PM
Please use the COMMENT button for comments, asking for complements, adding details, replying to a comment or a proposed solution or to the OP question, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
2023 Jul 28 1:56 PM
LENGTH( ... ) is only supported since ABAP 7.50
Anything not supported can probably be done with Native SQL (SQL sent directly to the database, by using e.g. ADBC, deprecated EXEC SQL, etc.) but of course .
You can also try workarounds. I don't know your exact context, maybe you can replace LENGTH( ZZZ ) = 1 with ZZZ LIKE '_' (first character = any character an rest of characters = blank)