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

date comparision in select.

Former Member
0 Likes
580

I want to check date comparision using select query

DATA : IMPODAY TYPE SY-DATUM.

IMPODAY ='20050117'.

SELECT * FROM ZMW0001 INTO TABLE SDYN_ITAB WHERE IMPORTDAY = IMPODAY.

I have declared importday as DATS type in table.

how to compare.? its not working.

Chandra kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
546

I know this is a silly question, but does ZMW0001 has an entry for IMPORTDAY - '20050117'.

Is sy-subrc = 4, after executing the query ?

Regards,

Subramanian V.

I want to check date comparision using select query

DATA : IMPODAY TYPE SY-DATUM.

IMPODAY ='20050117'.

SELECT * FROM ZMW0001 INTO TABLE SDYN_ITAB WHERE IMPORTDAY = IMPODAY.

I have declared importday as DATS type in table.

how to compare.? its not working.

Chandra kumar

2 REPLIES 2
Read only

Former Member
0 Likes
547

I know this is a silly question, but does ZMW0001 has an entry for IMPORTDAY - '20050117'.

Is sy-subrc = 4, after executing the query ?

Regards,

Subramanian V.

Read only

0 Likes
546

Hai

i have solve this problem.

thanks