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

Time field in Smartforms

Former Member
0 Likes
677

How is the time field formatted in smartform.

Format that has to appeared is hh:mm.

But i'm getting hh:mm:ss.

How to quote this?

How is the time field formatted in smartform.

Format that has to appeared is hh:mm.

But i'm getting hh:mm:ss.

How to quote this?

4 REPLIES 4
Read only

Former Member
0 Likes
644

Hi,

Create a Program line in smartform and write this code :

Concatenate sy-uzeit0(2) ':' sy-uzeit2(2) into l_time.

Pass l_time in smartform.

Best regards,

Prashant

Message was edited by: Prashant Patil

Read only

Former Member
0 Likes
644

Hi Phani,

Take a local variable of 5 characters and put the time in your local variable using the concept of Split and concatenate your original time.

Use this local variable at the place where is your requirement

Read only

Former Member
0 Likes
644

Hi Phani,

In Smartform,we cannot set the format for time, if you want to display in the format you have mentioned what you have to do is.

data ws_time(6) type c.

concatenate sy-uzeit0(2) ':' sy-uzeit2(2) into ws_time.

now your time will have only hrs and mins.

Hope this solves ur issue. Reward if helpful.

Regards,

Tushar

Read only

Former Member
0 Likes
644

Hi,

use

set time = 'HH:MM'.

Regards

Amole