Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

remote enabled FunctionModule to convert Timestamps

Former Member
0 Likes
525

Hello,

I need your help. I am searching for an SAP-FunctionModule that convert Timestamps from UTC to other time zones. The FunctionModule should be remote enabled and SAP standard (similar to FunctionModule = “TZ_GLOBAL_TO_LOCAL”).

Perhaps you can help me.

2 REPLIES 2
Read only

Former Member
0 Likes
491

Hi Holger,

Perhaps you can write a remote enabled Z-function including the syntax below.

The input parameter maybe from_ts&from_tz.The output parameter maybe to_ts&to_tz.

CONVERT TIME STAMP time_stamp TIME ZONE tz

        INTO [DATE dat]

             [TIME tim] [DAYLIGHT SAVING TIME dst].

CONVERT DATE dat
        [TIME tim [DAYLIGHT SAVING TIME dst]]
        INTO TIME STAMP time_stamp TIME ZONE tz.
 

Thanks,

Sam

Read only

0 Likes
491

Hi Sam,

thank you very much for your answer. But we don´t like to build up a custom Z-function. We need a SAP-Standard remote enabled functionality (BAPI or Function).

I there really no standard functionality.


Holger