04-12-2007 10:50 AM
how to write a program for avalue '123456' as 12:34:56 using edit-mask.plz reply to me
04-12-2007 10:52 AM
hi naga
Use Edit mask
FORMAT
write char8 using edit mask '____/__/__'.
write char6 using edit mask '__:__:__'
EXAMPLE
DATA : date1 TYPE CHAR8,
time TYPE CHAR6.
DATE1 = SY-DATUM.
TIME = SY-TIMLO.
WRITE (10) date1 USING EDIT MASK '____/__/__'.
write 😕 ' '.
WRITE (8) time USING EDIT MASK '__:__:__'.
regards
navjot
reward if helpfull
04-12-2007 10:53 AM
Have you tried
move '123456' to w_time using edit mask '__:__:__'.
or something like that.
04-12-2007 10:53 AM
hi Naga,
data lv_val(8).
lv_val = '123456'.
write: lv_val using edit mask '__:__:__' .
Hope this helps,
Sajan Joseph.
04-12-2007 10:54 AM
DATA: time TYPE t VALUE '121212'.
WRITE /(30) time USING EDIT MASK
'__:__:__'.
04-12-2007 10:56 AM
paste this code..
data a type i value '123456'.
write a using edit mask '__:__:__'.
reward points if helpful..
regards,
santosh
04-12-2007 10:59 AM
Dear Mrudula,
U need to display(Output) or Take as input??
Chetan Shah