‎2007 Jul 30 1:57 PM
Hi abapers,
We have one requirement in selection screen validation.
From date is Day 1 of the next period(month).
To date is Day 1 of the next period*(month) + (next) 3 months.
which function module we can use.
how we can pass the selection screen of this date.
Thanks
Nani.
‎2007 Jul 30 2:18 PM
There are lot of function modules available under the function groups acal, scal, ncal, fcal. So you go to se80, select any of the function group and under each and every function group you will find lot FMs. You can use any of them as per your reqirement.
Please reward the helpful entries.
Regards,
Raman.
‎2007 Jul 30 2:03 PM
Hi Nani,
Please can You tell that you wants date according to fiscal period or just simple date of months.
regard
Sarbpreet
‎2007 Jul 30 2:04 PM
Hi
Why we need the fun module
Just write the code as
select-options : s_date for sy-datum no display.
data: date like sy-datum, fdate like sy-datum, tdate is like sy-daum, mon(2),
mon1(2), mon2(2), year(4).
date = sy-datum.
year = date+0(4).
mon = date+4(2).
mon1 = mon + 1.
mon2 = mon + 3.
concatenate year mon1 '01' into fdate.
concatenate year mon2 '01' to tdate.
use the fdate and tdate and write the code
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 30 2:18 PM
There are lot of function modules available under the function groups acal, scal, ncal, fcal. So you go to se80, select any of the function group and under each and every function group you will find lot FMs. You can use any of them as per your reqirement.
Please reward the helpful entries.
Regards,
Raman.