on ‎2008 Jul 23 6:34 AM
Hi Gurus,
In BSP application, we need to show users the time of business process trigger. But, that time is as per application server. After fetching that timestamp, we need to add two hours in it to convert it to CET. For e.g. the process triggered at 23:00:00 on 22 July 2008 should automatically convert to 01:00:00 and date 23/07/2008. Please give me pointer if there is any such function module where i can give offset and get my time converted. This should also take care of leap year, months with 31 days and so on.
Thanks and Regards,
Harpal
Request clarification before answering.
Hi,
Just a hint...try looking in the ABAP general forum...you might fine some more help there...as this is an ABAP related issue...
Cheers,
Tatvagna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found one function module named C14B_ADD_TIME. The code for which is
FUNCTION C14B_ADD_TIME.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_STARTTIME) TYPE T
*" VALUE(I_STARTDATE) TYPE D
*" VALUE(I_ADDTIME) TYPE T
*" EXPORTING
*" VALUE(E_ENDTIME) TYPE T
*" VALUE(E_ENDDATE) TYPE D
*"----
DATA : DIFFERENZ TYPE I.
E_ENDTIME = I_STARTTIME + I_ADDTIME.
DIFFERENZ = E_ENDTIME - I_STARTTIME.
IF DIFFERENZ < 0.
E_ENDDATE = I_STARTDATE + 1.
ELSE.
E_ENDDATE = I_STARTDATE.
ENDIF.
ENDFUNCTION.
Thanks and Regards,
Harpal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harpal,
Take a look into class CL_ABAP_TSTMP.
It was some static methods that allow you to add,subtract seconds in a timestamp, just like you want.
Kind regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.