‎2009 Feb 25 3:47 AM
hi,
i have a variable which contains date in the format created_date(YYYYMMDDhhmmssmmmuuun)
but i want the date in (YYYYMMDDhhmmss) format only. how can i extract first 14 characters of the date.
‎2009 Feb 25 4:01 AM
‎2009 Feb 25 3:49 AM
‎2009 Feb 25 4:01 AM
‎2009 Feb 25 4:05 AM
HI,
Try this way
DATA : L_DATE TYPE CHAR14.
l_date = date(14).
‎2009 Feb 25 4:48 AM
‎2009 Feb 25 5:00 AM
Hi,
Take a variable of required length and assign date to it.
it itself truncates the char exceeding the length.
ex:
data: w_str like sy-datum,
w_str1(5) type c.
w_str = sy-datum.
w_str1 = w_str.
write:/ w_str1.
Regards,
Mdi.Deeba
‎2009 Feb 27 3:56 AM