12-12-2008 5:37 AM
hello evrybdy,
i have a problem regarding date substraction, actually i have two date field in selection-screen and
first field is mandatory but second is optional, so my requirement is that if user dont give the date in second field then it must take the date before one month but problem is that how wud i subtract the date for different moths like days are of 28, 29, 30, and 31?
regards saurabh.
12-12-2008 5:53 AM
Hi,
Check out this FM.
HR_HK_DIFF_BT_2_DATES
Also see this link if its useful to you.
[https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/timedifferencebetweentwodatesinhoursorminutes].
Regards,
Raj
12-12-2008 5:53 AM
Hi,
Check out this FM.
HR_HK_DIFF_BT_2_DATES
Also see this link if its useful to you.
[https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/timedifferencebetweentwodatesinhoursorminutes].
Regards,
Raj