Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

general

Former Member
0 Kudos

how to write a program for avalue '123456' as 12:34:56 using edit-mask.plz reply to me

6 REPLIES 6

Former Member
0 Kudos

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

Former Member
0 Kudos

Have you tried

move '123456' to w_time using edit mask '__:__:__'.

or something like that.

Former Member
0 Kudos

hi Naga,


data lv_val(8).
lv_val = '123456'.
write: lv_val using edit mask '__:__:__' .

Hope this helps,

Sajan Joseph.

Former Member
0 Kudos

DATA: time TYPE t VALUE '121212'.

WRITE /(30) time USING EDIT MASK

'__:__:__'.

0 Kudos

paste this code..

data a type i value '123456'.

write a using edit mask '__:__:__'.

reward points if helpful..

regards,

santosh

Former Member
0 Kudos

Dear Mrudula,

U need to display(Output) or Take as input??

Chetan Shah