Skip to Content
author's profile photo Former Member
Former Member

Convert system date and time to user date and time.

HI.

I have system date and time for order creation.

I want to convert this into user date and time.

Is there any FM available.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on May 27, 2008 at 10:10 AM

    Hi Kiran,

    No need of FM for this. Just use WRITE TO statement.

    DATA: l_date(10) TYPE c,

    l_time(8) TYPE c.

    WRITE: sy-datum TO l_date,

    sy-uzeit TO l_time.

    Now ur l_date and l_time have date and time as per user settings(i.e Seperator, format etc)

    Thanks,

    Vinod.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2008 at 10:11 AM

    Kiran,

    Use SY-TIMLO system varient.

    please mark all helpful ans.

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Kiran,

      if the order is created in your system, you may check USR02-TZONE. If this is empty, SY-ZONLO rules.

      If SY-ZONLO differs from USR02-TZONE Then convert to UTC timestamp

      CONVERT DATE d TIME t INTO TIME STAMP tst TIME ZONE USR02-TZONE.

      and back

      CONVERT TIME STAMP tst TIME ZONE SY-ZONLOINTO DATE d TIME t .

      Regards,

      Clemens.

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2008 at 10:56 AM

    Use transaction SE11

    Database table SYST

    Search for 'date' and 'time', u get information about daylight saving time, user time, system time and system date, user date, Date and time, time difference from Greenwich Mean Time,Date and time, factory calendar weekday et cetera

    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.