‎2006 Aug 30 5:02 PM
Hi,
Does any function module exist for time validation?
Also, i've to check the latest available data of table depending upon the date and time. SO is there any FM also for this ?
Regards,
Jyoti Shankar
‎2006 Aug 30 5:04 PM
Use the fm; TIME_CHECK_PLAUSIBILITY to check if time is valid.
to get the latest record based on date and time, do as follows:
select field1
date1
time1
from <table> into itab
where <some condition>.
sort itab by date1 time1 descending.
read table itab index 1.
Now, itab's header will have the latest record.
Regards,
Ravi
Message was edited by: Ravi Kanth Talagana
‎2006 Aug 30 5:05 PM
‎2006 Aug 30 5:06 PM
‎2006 Aug 30 7:44 PM
Hi,
i found a simple code in the book "ABAP Objects" from SAPPress without any FM
DATA time TYPE t.
DATA: test1 TYPE i,
test2 TYPE t.
time = 'ABCXYZ'.
test1 = time.
test2 = test1.
IF time <> test2.
write 'Error'.
ENDIF.Regards,
Stefan