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

Time Conversion

Former Member
0 Likes
625

HI..

All daily reports a region should consider the timings for their time zone. In order to achieve this, i have to write a function module that will get a date and will return the Start date, start time, End date and End time in the local time zone.

All the reports that are using date as a parameter should call this function module so that they don’t miss any data.

i can write a FM..But i don't know from where the function module will call? So please let me know how all the standard daily reports will call this function module.. Shell i use user exits for that...?..

Thanks,

4 REPLIES 4
Read only

Former Member
0 Likes
557

Hi,

Look at the below function modules

DELTA_TIME_DAY_HOUR " This will give you all the details

Regards

Sudheer

Read only

Former Member
0 Likes
557

DATA:

s_tst TYPE timestamp,

l_tst TYPE timestamp,

tzone TYPE timezone,

tzone1 TYPE timezone.

GET TIME STAMP FIELD s_tst. "Short form

GET TIME STAMP FIELD l_tst. "Long form

tzone1 = 'EET '. "Time zone "European time zone

tzone = 'INDIA '. "Time zone "Indian time zone

WRITE: / s_tst TIME ZONE tzone1,

/ l_tst TIME ZONE tzone.

Please check table TTZZ for time zones. Add same logic to get the time zone.

Read only

0 Likes
557

HI,

Thanks for ur answer...and i need to call this FM from the standard daily report program like va05...This transaction will give sales order list based on the intervals which we given in that transaction....So before displaying the list i have to change the date/time into local date/time using that FM... So please let me know how i use this FM...?

i think it ll give some more information to u...

thanks...

Read only

Former Member
0 Likes
557

In case of std prog / transaction.

You will have to User Exit or BADI.

if it is Z prog / rep/ tcode..

then u can write it in ur code.

Reward if useful

Regards

Pradeep..