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

Converting date with timezone

Hi all,

In Function Module SHP_BAPI_DELIVERY_CONFIRM_DEC a date conversion is performed

CONVERT DATE IS_LIKP-WADAT_IST INTO TIME STAMP CT_BAPIDLVDEADLN-TIMESTAMP_UTC

TIME ZONE IS_LIKP-TZONIS.

before executing command the values are:

IS_LIKP-WADAT-IST = 20070918

CT_BAPIDLVDEADLN-TIMESTAMP_UTC = SPACE

IS_LIKP-TZONIS = CET

My systems' timezone is SYST-ZONLO = CET

after executing the command the result is

CT_BAPIDLVDEADLN-TIMESTAMP_UTC = 20070917220000

I expected the same date as I put into the command (because target zone and system zone are the same.

Can somebody explain?

Thanks Ron

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2007 at 01:15 PM

    Conversion to UTC timestamp!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2007 at 01:31 PM

    It's not necessarily going to give you the same date because it converts it to UTC reference time. Per SAP, here is the definition of UTC:

    UTC

    Abbreviation for Coordinated Universal Time. Basis for expressing worldwide time specifications. The UTC reference time is not a local time zone, but a general reference time based on atomic time standards , from which the times of all local time zones are derived. UTC is defined in such a way that it corresponds to Greenwich Mean Time (GMT). The UTC reference time differs slightly from Universal Time (UT1), which is linked to the rotation of the earth and where the mean solar day consists of 86400 seconds. By means of leap seconds, this difference is kept down to less than 0.9 seconds a year. In ABAP, UTC time specifications occur in conjunction with time stamps.

    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.