2007 Nov 28 5:11 AM
hi all
i want to give a date range to int table.
my higher value is sy-datum, lower value must be less than 2 yrs , how can i code for this.
any suggesstion
hi all
i want to give a date range to int table.
my higher value is sy-datum, lower value must be less than 2 yrs , how can i code for this.
any suggesstion
2007 Nov 28 5:14 AM
Hi,
You can use this function module this will solve your problem
RP_CALC_DATE_IN_INTERVAL
Regards,
siva chalasani.
<b>Reward poits if usefull</b>
2007 Nov 28 5:19 AM
hi siva
what r the parametrs to b given for that function module?
whther it ll satisfy my requirement
2007 Nov 28 5:18 AM
Hi,
FOr lower date use FM HR_PT_ADD_MONTH_TO_DATE
Regards,
Prashant
2007 Nov 28 5:23 AM
Hi,
Pass the date to DATE field
and give 02 in years field
and give '-' minus symbol in SIGNUM
andcheck the date you can get two years back date
2007 Nov 28 5:24 AM
Hi ,
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = '27.11.2007'
days =
months =
SIGNUM = '+'
years = '2'
IMPORTING
CALC_DATE = v_calc_date.
Rewards if useful..
kavitha
2007 Nov 28 5:36 AM
Check this code
DATA : l_date TYPE sy-datum.
DATA : l_y(4) TYPE c.
DATA : l_m(2) TYPE c.
DATA : l_d(2) TYPE c.
SELECT-OPTIONS : so_date FOR sy-datum.
INITIALIZATION.
so_date-high = sy-datum.
l_y = sy-datum+0(4).
l_y = l_y - 2.
l_m = sy-datum+4(2).
l_d = sy-datum+6(2).
CONCATENATE l_y l_m l_d INTO l_date.
so_date-low = l_date.
APPEND so_date.Regards
Gopi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |