Application Development and Automation 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: 
Read only

Function Module for getting periods of a given range

Former Member
0 Likes
2,447

Hello,

Is there any Function Module for getting date periods based on my given input.

inputs:

1. From date

2. End date

3. time unit ( day, monthly or yearly )

Based on time unit give date periods should generate

'CSCP_PARA1_GET_PERIODS' This FM is working.

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
2,346

First of all, STOP with Function Module, it is outdated, now there is Object

Second point, why do you need FM or anything else for thing so simple ?

Read only

Former Member
0 Likes
2,346

Hello Frederic Girod

Any object it can be, just i'm simply searching for is there any FM.

If there is any other Please let me know the object it's also better, not a problem.

Read only

matt
Active Contributor
2,346

FORMs are obsolete. Function Modules aren't. Although classes are better.

Read only

matt
Active Contributor
0 Likes
2,346

In standard SAP there isn't one to my knowledge. Nor a class method.

I'm sure this has been asked before, but if not, the programming required isn't hard. You could write a blog about your experiences, together with the source code for others to use.

Read only

Former Member
2,346

'CSCP_PARA1_GET_PERIODS' This FM is working.

Read only

matt
Active Contributor
0 Likes
2,346

OK, fair enough.

Not released and only an ERP FM - not available for example on a BW system. Funnily enough though it uses FM in group STS2 which is a part of the standard ABAP stack.