Application Development and Automation 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: 
Read only

SQL syntax issue when selecting from edid4

walkerist79
Participant
0 Likes
9,982

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
Read only

Ryan-Crosby
Active Contributor
0 Likes
9,567

Hi Wane,

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

Regards,

Ryan Crosby

Read only

0 Likes
9,567

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

Read only

RaymondGiuseppi
Active Contributor
9,567

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

Read only

Sandra_Rossi
Active Contributor
9,567

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.

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
9,567

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.