‎2007 Aug 09 12:37 PM
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 dont 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,
‎2007 Aug 09 12:41 PM
Hi,
Look at the below function modules
DELTA_TIME_DAY_HOUR " This will give you all the details
Regards
Sudheer
‎2007 Aug 09 12:47 PM
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.
‎2007 Aug 09 1:01 PM
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...
‎2007 Aug 09 12:49 PM
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..