Page 1 of 1

hour of a time zone

Posted: Fri Jan 25, 2019 6:42 pm
by FSR

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!! :)

Re: hour of a time zone

Posted: Mon Jan 28, 2019 5:58 am
by Gothmog
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.