Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SQL syntax issue when selecting from edid4

walkerist
Participant
0 Kudos
3,995

Hi, I was encountering issues with this query. Not sure how to solve it.

 SELECT *
FROM edid4
WHERE segnam = 'E1EDK03'
AND docnum = '0000123'
AND segnum = '000009'
INTO @DATA(lt_edid4).

This Open SQL statement uses additions that can only be used when the

fixed point arithmetic flag is activated (such as CASE expressions or

host variables in expressions).

5 REPLIES 5

Ryan-Crosby
Active Contributor
0 Kudos
3,580

Hi Wane,

You are missing the INTO TABLE since you have not indicated that you want to select a single record.

Regards,

Ryan Crosby

0 Kudos
3,580

ryan.crosby2 same issue with the "INTO TABLE @DATA(lt_edid4)."

raymond_giuseppi
Active Contributor
3,580

Any reason not to activate the 'fixed point arithmetic flag' in program attributes.

Sandra_Rossi
Active Contributor
3,580

You can search the forum about what the "fixed point arithmetic flag" is. It's probably said at lots of places that it's highly recommended that the programs use it.

NB: it's fun that SAP forced the use of that flag when the program uses the Strict SQL Syntax, although it doesn't seem related at all.

DominikTylczyn
Active Contributor
3,580

Switch on "fixed point arithmetic" and it'll work fine. As per SAP Help https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenfixed_point_arithmetic_glosry.htm

The disabling of this program attribute is obsolete.