Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2007 at 05:29 AM

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

    Regards,

    Sreeja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a 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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 09, 2007 at 03:49 AM

    CAll function MOdule 'HRVE_CONVERT_TIME'

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.