Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

regarding date function module

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

Hi Nani,

Please can You tell that you wants date according to fiscal period or just simple date of months.

regard

Sarbpreet

Former Member
0 Kudos

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

Former Member
0 Kudos

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.