hour of a time zone

Logistics : SD and its sub-modules (Inquires, Quotes, Order Entry, SIS, Sales Contacts, Dist. & Billing)

Moderators: Snowy, thx4allthefish, mike_ac, Lost Identity

Post Reply
FSR
Posts: 29
Joined: Fri May 12, 2006 10:18 am

hour of a time zone

Post by FSR » Fri Jan 25, 2019 6:42 pm

Hello,

In the customizing of the sales office we can maintain the time zone (UTC-6, UTC-8).
How can get the hour of this time zone??
Are there a function in SAP to read the time zone and get the hour??
I need the hour of the time zone of the sales office when was created each invoice.

Please, help!
Thanks!! :)

Gothmog
Posts: 1952
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: hour of a time zone

Post by Gothmog » Mon Jan 28, 2019 5:58 am

Hi,
You could use function module IB_CONVERT_INTO_TIMESTAMP to convert sy-datlo, sy-timlo in time zone sy-zonlo to a time stamp, then IB_CONVERT_FROM_TIMESTAMP to convert this time stamp into the date and time in a different time zone.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

Post Reply