Skip to Content
avatar image
Former Member

My own time format in smartform

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Aug 17, 2007 at 05: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 05:29 AM

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

    Regards,

    Sreeja

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 05: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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • avatar image
    Former Member
    Oct 09, 2007 at 03:49 AM

    CAll function MOdule 'HRVE_CONVERT_TIME'

    Add comment
    10|10000 characters needed characters exceeded