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

error in select statement

Former Member
0 Likes
787

select kostl from csks into table incsks

where csks-datbi =< sstdate

and csks-datab => snddate

and csks-kosar in ('i','p') .

it is giving the following error.what can be the reason.

Error: Field "CSKS-DATBI" unknown.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
642

Try this. You don't need table name in WHERE clause.




select kostl from csks into table incsks
         where datbi =< sstdate
           and datab => snddate
           and kosar in ('i','p') .


Regards,

RIch Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
643

Try this. You don't need table name in WHERE clause.




select kostl from csks into table incsks
         where datbi =< sstdate
           and datab => snddate
           and kosar in ('i','p') .


Regards,

RIch Heilman

Read only

Former Member
642

select kostl 
into table incsks
from csks 
where datbi LE sstdate
and datab GE snddate
and kosar in ('i','p') .

Greetings,

Blag.

Read only

Former Member
0 Likes
642

yeah,

i realised, how could i be so dumm to do this error.

thanks a lot.