2008 Jan 03 1:58 PM
Hi Experts,
Can you tell me what is the function module for getting date by passing Date and number of days. For example if i pass date as 12/24/2007(MMDDYYYY) and days as 10 then output should be 12/14/2007(MMDDYYYY) ie ten days back date. Days can be any number it can be more than 31 also.
Points will be rewarded.
Thanks In Advance.
Regards,
Praveen.
Hi Experts,
Can you tell me what is the function module for getting date by passing Date and number of days. For example if i pass date as 12/24/2007(MMDDYYYY) and days as 10 then output should be 12/14/2007(MMDDYYYY) ie ten days back date. Days can be any number it can be more than 31 also.
Points will be rewarded.
Thanks In Advance.
Regards,
Praveen.
2008 Jan 03 2:01 PM
2008 Jan 03 2:02 PM
Hi Praveen,
You don't need any function module: you can just subtract the number of days:
DATA:
zlv_date_01 TYPE d,
zlv_date_02 TYPE d,
zlv_days TYPE i.
.
.
zlv_date_02 = zlv_date_01 - zlv_days.
Regards,
John.
2008 Jan 03 2:02 PM
hi this will work
RP_CALC_DATE_IN_INTERVAL
IF pa_older = 'X'.
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = pa_end
days = '00'
months = '06'
signum = '-'
years = '00'
IMPORTING
calc_date = pa_end.
ENDIF.
2008 Jan 03 2:02 PM
Hi,
Please use the FM BKK_ADD_WORKINGDAY.
For past days input -days.
Thanks,
Sriram Ponna.
2008 Jan 03 2:05 PM
DATA : date LIKE sy-datum.
date = sy-datum.
date = date - 30. "no of days
write : date.
2008 Jan 03 2:09 PM
Hi praveen for u r requirement there is no need of any FM
Try this code
parameters:
p_date like sy-datum,
p_no type i.
data:
w_date like sy-datum.
w_date = p_date - p_no.
write: / w_date .
it is enogh for u r requirement
plzz reward if it is usefull...
for any further quiries my mail id is [email protected]
plzz dont forget to reward
2008 Jan 03 2:11 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |