Skip to Content
0
Jun 07, 2018 at 05:43 PM

Problem using SY-DATUM in (SQL) BETWEEN

216 Views

Hi all,

Have the following (pseudo) code:

SELECT myfile~field1 FROM myfile INTO (w_field1) WHERE sy-datum between myfile~begda and myfile~endda

I get a syntax error that states that sy-datum is unknown.

Any ideas?

Thanks,

Luis Rodríguez