2007 Jun 26 6:18 AM
Hi.
I need FM which will SUBTRACT TIME from DATE & TIME.
Example:
Date = 05.05.2007
Time = 05:00:00
Time_subtract = 48:00:00
Return of FM:
Date = 03.05.2007
Time = 05:00:00
Do you know any FM?
Thanks!
2007 Jun 26 6:23 AM
2007 Jun 26 6:21 AM
hi
good
i dont think there is anysuch function module which ll subtract time from date&time,you have to use the stringlength and separate the date and time value from a single value,.
thanks
mrutyun^
2007 Jun 26 6:23 AM
2007 Jun 26 6:23 AM
Hi Amit,
Check the FM SUBTRACT_TIME_FROM_DATE
it might be useful..
reward points if helpful.
regards,
ravi G
2007 Jun 26 6:26 AM
Hi,
Please check this FM END_TIME_DETERMINE and use '-' (negative) to subtract with unit(HR).
(or)
SUBTRACT_TIME_FROM_DATE
<b>Reward points</b>
Regarsd
2007 Jun 26 6:52 AM
Thanx for reply,
but I would like to receive explanation regarding use of these FMs, like how do u give inputs to these FMs, cause I've tested these FMs, but didnt get expected result
Thanx!
2007 Jun 26 8:01 AM
Hi, Check these function mod's
SD_DATETIME_DIFFERENCE
HRCM_TIME_PERIOD_CALCULATE
HR_ECM_GET_PERIOD_BETW_DATES
After you execute them in SE37 give the required input and you will get a correct output.
<b>REWARD IF USEFUL</b>
thanks n regards
Dinesh
2007 Jun 26 11:37 AM
<b> START_TIME_DETERMINE</b>, FM gives correct result. Thanx fo reply.......
2016 Sep 21 8:38 AM
2020 Jun 18 7:56 AM
Best FM for subtracting time from timestamp /SCWM/RSRC_TIMESTAMP_SUBTRACT
This will give you output in timestamp