How to specify a decimal filter in 'select into table where' in ABAP?

1k views Asked by At

I need a query like this in ABAP, but this doesn't work.

SELECT * FROM table
INTO i_tab
WHERE amount = 100,15

I've tried: WHERE amount = '100,15' but that doesn't work either.

How to specify the decimal in my where syntax?

2

There are 2 answers

1
Marsha On BEST ANSWER

I outsmarted it by changing the logic into

WHERE amount > 100 AND amount < 101
3
Vincenzo Cappello On

The correct syntax is:

SELECT * 
FROM table
INTO i_tab
WHERE amount = '100.15'