‎2007 Mar 09 5:17 AM
Hi Every one,
I have file to upload from application server.
file name is like 'PPRICE'TIMESTAMP'.CSV'
from this file name i have to read the TIMESTAMP
I can read it like
tstamp = file+10(leng of timestamp).
now this tsamp is in character format.
i have to validate the current date with the time stamp i read into tstamp.
so here is my problem
how do i compare a character with the type timestamp.
please some one help me.
‎2007 Mar 09 5:20 AM
Declare one more variable of type CHAR , and move the TIMESTAMp to that variable , and compare that with ur char variable
data : v_char(14).
move timestamp to v_char.
compare v_char with ur char variable
‎2007 Mar 09 5:30 AM
Thing is that
the characters (time stamp) that iam reading from the file name
is a time stamp, iam reading in to character variable.
from the timestamp i have to take the date separately and check with
the current date
‎2007 Mar 09 5:27 AM
try this
data : timst(8) type c value '10:10:10',
timestamp type t.
replace all occurrences of ':' in timst with space.
condense timst.
timestamp = timst.
if sy-uzeit gt timestamp.
endif.
regards
shiba dutta