cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms time field on smartforms

Former Member
0 Kudos

Hello

i wan't show on the SmartForms a field with time format.

when i give this out, i see 100000, not 10:00:00..

how can i do that?

thx anu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This is the command....

WRITE: / c1 USING EDIT MASK '__:__'. You can use this and change the format of the field.

Have u declared the time field with data type as SY-UZEIT.

Thanks,

Nit,

Answers (7)

Answers (7)

Former Member
0 Kudos

Thx for answer

Former Member
0 Kudos

Hi,

It is better to work with Concatinate statement at this moment of time.

take that 100000 into one variable.

Then Write Concatinate :

Concatinate var+0(2) var2(2) var 4(2) into Var1 separated by ':'.

If you have any date field and you want to change its format then you can go for SET TIME MASK.

SET TIME MASK = 'HH:MM:SS'

Former Member
0 Kudos

Hi,

If you declare a field with type SY-UZEIT, it should print 10:00:00

If its not printing, do the below

data: wvl_time1(2), wvl_time2(2), wvl_time3(2),

wvg_time type sy-uzeit, wvg_time1(5).

wvl_time1 = wvg_time+0(2).

wvl_time2 = wvg_time+2(2).

CONCATENATE wvl_time1 ':' wvl_time2 INTO wvg_time1.

Rgds,

nit.

Edited by: Nitesh Babu on May 11, 2009 3:03 PM

Former Member
0 Kudos

i define in smartforms that

gv_time type SY-UZEIT

and became the time on smartforms in this format 10:00:00

now i want change the view in 10:00. How can i do that...

Former Member
0 Kudos

Hi,

Take two variables.


 w_time type sy-uzeit.
 w_time1 type char6.

w_time = sy-uzeit.
concatenate w_time+(2) ':' w_time+2(2) into w_time1.

Thanks,

Nithya

Edited by: Nithya Murugesan on May 12, 2009 6:44 AM

Former Member
0 Kudos

Hi,

Declare as below.

data: v1 type sy-uxeit,

v2 type i.

v1 = v2.

pass this v1 variable to smartform it will store the value as XX:XX:XX.

Thanks,

Suma

Former Member
0 Kudos

EDIT TIME MASK is it a command?

Former Member
0 Kudos

Hi,

You can use EDIT TIME MASK command and set the time. IF not declare the field which shows the time output as SY-UZEIT.

Thanks,

Nit.