04-18-2008 11:42 AM
hi all,
i have to compare two date for exa: ITAB - BSTDK less than or equal to 29.02.2008, can any one please tell me how can i do?
its urgent.
regards saurabh.
04-18-2008 11:46 AM
Hi,
If your ITAB-BSTDK is of type DATS, then it's simple
data : dat type sy-datum.
dat = '20080229'
if itab-bstdk < dat.
....
endif.
Regards,
Mohaiyuddin
04-18-2008 11:46 AM
Hi,
If your ITAB-BSTDK is of type DATS, then it's simple
data : dat type sy-datum.
dat = '20080229'
if itab-bstdk < dat.
....
endif.
Regards,
Mohaiyuddin
04-18-2008 11:48 AM
sorry forgot to mention =
if itab-bstdk <= dat.
...
endif.
regards,
Mohaiyuddin
04-18-2008 11:47 AM
04-18-2008 11:48 AM
do one thing
data: date type bstdk.
date = 29.02.2008.
now compare based on this date.it will work for sure.
plz reward if useful
vivek
04-18-2008 11:53 AM
hi check this...
data: begin of itab occurs 0,
date type sy-datum,
end of itab.
itab-date = sy-datum .
append itab.
if itab-date = '20080418'.
write:/ 'this is working'.
endif.
it will depends on the date format given to the system..
regards,
venkat.