08-16-2007 11:04 AM
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
08-17-2007 6:29 AM
08-17-2007 6:38 AM
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.
08-17-2007 6:40 AM
Sreeja,
Go to SE37 and check with the string time.Hope this may give you some lead.
K.Kiran.
08-17-2007 6:45 AM
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
08-17-2007 7:39 AM
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
08-17-2007 7:51 AM
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
10-09-2007 4:49 AM