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: 

My own time format in smartform

Former Member
0 Kudos

Hi,

I want to add time with mentioning AM or PM and with ISD or US time like that.While tring now I am only able to enter in Hour:Minute:Second format.Can you please explain how it possible?

Regards,

Sreeja

7 REPLIES 7

Former Member
0 Kudos

Anybody please reply.........

Regards,

Sreeja

kiran_k8
Active Contributor
0 Kudos

Sreeja,

Definitely there should be some function module which converts the indian standard time to US time and displays it.We need to find it out.Regarding the AM and PM and you can take a variable and use concatenate to get the desired format.

K.Kiran.

kiran_k8
Active Contributor
0 Kudos

Sreeja,

Go to SE37 and check with the string time.Hope this may give you some lead.

K.Kiran.

Former Member
0 Kudos

Hi Good Morning!!!!

do one thing if u have time like this : 15:10:10

then move the hours to one variable and remaining into one more variable

var1 = time + 0(2).

var2 = time + 2(6).

now check var1.

if var1 > 12.

var3 = var1 - 12.

concatenate var3 var2 'PM' into v_time.

else.

concatenate var1 var2 'AM' into v_time.

endif.

I Hope this solves ur problem

reward points to all helpful answers

kiran.M

0 Kudos

Hi Kiran,

Thanks for the reply.

Can you please tell me where I should code these-in se38 or in Types of Global Definitions?

Regards,

Sreeja

0 Kudos

Sreeja,

Seems you are using Smartforms.

Then you can write the code in the smartform itself by right click on that node and

selecting creating flow logic --program lines.

or

you can write the same in the se38 and use the variables in the smartforms.Better write the code in se38 and then use them in smartforms,so that you can keep a track of changes done which you can't track in a smartform as smartforms doesn't have version management.

K.Kiran.

Message was edited by:

Kiran K

Former Member
0 Kudos

CAll function MOdule 'HRVE_CONVERT_TIME'