‎2007 Oct 17 8:54 AM
hi all,
i have a problem in getting a date. Requirement is,
Input: No of days say for example '50'.
i need to calculate the date 50 days nefore the sy-datum.
can anyone help me in this issue ?
Thanks in advance,
Prem.
‎2007 Oct 17 8:56 AM
hi,
DATA: date1 TYPE sy-datum.
date1 = sydatum - 50.
Regards,
Raghavendra
‎2007 Oct 17 8:56 AM
hi,
DATA: date1 TYPE sy-datum.
date1 = sydatum - 50.
Regards,
Raghavendra
‎2007 Oct 17 8:59 AM
yes you ...can do as suggested by raghav...above..
a small correction in his code...
date1 = sy-datum - 50.
‎2007 Oct 17 9:09 AM
thanks for replying immdly,
i have a doubt though we have sy-datum - 50. no matter wat is the month it be subtracted right ???
‎2007 Oct 17 9:38 AM
yes...
no matter what month or year...
sy-datum - 50 will work properly...
‎2007 Oct 17 9:42 AM
Use the FM
<b>CALCULATE_DATE</b>
This will clear ur query
Reward points if it does