Application Development and Automation 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: 
Read only

general

Former Member
0 Likes
856

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

6 REPLIES 6
Read only

Former Member
0 Likes
708

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

Read only

Former Member
0 Likes
708

Have you tried

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

or something like that.

Read only

Former Member
0 Likes
708

hi Naga,


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

Hope this helps,

Sajan Joseph.

Read only

Former Member
0 Likes
708

DATA: time TYPE t VALUE '121212'.

WRITE /(30) time USING EDIT MASK

'__:__:__'.

Read only

0 Likes
708

paste this code..

data a type i value '123456'.

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

reward points if helpful..

regards,

santosh

Read only

Former Member
0 Likes
708

Dear Mrudula,

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

Chetan Shah