09-04-2008 7:16 AM
Hi,
I want to subtract time
eg.
Subtracting 12 hrs from date 01.01.2008 and time 05:00:00
should give date 31.12.2007 and time 17:00:00
Please, tell me is there any FM available for the same?
Thanks,
Alok
09-04-2008 7:34 AM
09-04-2008 7:18 AM
CALL FUNCTION 'SUBTRACT_TIME_FROM_DATE'
EXPORTING
i_idate = sy-datum
i_time = 2
i_iprkz = '3'
IMPORTING
o_idate = p_datef
EXCEPTIONS
invalid_period = 1
invalid_round_up_rule = 2
internal_error = 3
OTHERS = 99.
Edited by: Amit Gujargoud on Sep 4, 2008 8:19 AM
09-04-2008 7:38 AM
09-04-2008 7:19 AM
09-04-2008 7:34 AM
09-04-2008 7:39 AM