‎2005 Jun 17 8:48 PM
subtract 30 sec to the existing date and time.
i need the new output in date and time format.
is there any function module.
‎2005 Jun 18 6:46 AM
check out this FM for adding seconds to date time
C14Z_CALC_DATE_TIME
you copy it and modify to do subtraction.
Regards
Raja
‎2005 Jun 20 8:56 PM
i am getting the write output after modifying the FM
C14Z_CALC_DATE_TIME
‎2005 Jun 21 5:44 AM
Try this out
C14B_ADD_TIME
*" 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.
U try to change for subtraction.
Also reward points and close the thread if answered.
Thanks & Regards,
Judith.