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 displaying next 12 periods

Former Member
0 Likes
852

Hello,

Is there a function module that helps display next 12 periods based on the period entered by user? Kindly inform.

thnx.

Regards,

KS

Hello,

Is there a function module that helps display next 12 periods based on the period entered by user? Kindly inform.

thnx.

Regards,

KS

5 REPLIES 5
Read only

Former Member
0 Likes
789

Hi

Check the following fun modules

HR_E_GET_DATES_PLUS_N_PERIODS

<b>HR_E_GET_PERIODS_FOR_INTERVAL</b>

HR_E_GET_PERIOD_DATES_FOR_DATE

HR_E_GET_PERIOD_FOR_DATE

CACS_GET_NEXT_PERIOD

CKML_F_GET_NEXT_PERIOD

CKMS_GET_DYNAMIC_PERIODS

CSCP_PARA1_GET_PERIODS

FCOM_GET_PERIOD_FROM_TIMERANGE

Goto SE37 enter getperiod*

and check the different fun modules

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

0 Likes
789

Hello Anji,

Thanks for the reply. But I tried all of them. But I couldnt find which one gives all 12 periods?Can you please help me with the same.

Regards,

KS

Read only

0 Likes
789

Hello,

Please give me some Function modules that are available in BW...

Thanks

Regards,

Ks

Read only

0 Likes
789

Hi,

Try CALL FUNCTION 'MONTH_PLUS_DETERMINE'

FM MONTH_PLUS_DETERMINE

Refer

https://forums.sdn.sap.com/click.jspa?searchID=4396786&messageID=3591177

Regards

Read only

Former Member
0 Likes
789

*the program below shows next 12 periods from date entered by user

REPORT ZTRIP_TEST .

parameters date like sy-datum.

data:

month type i value 0,

new_date like sy-datum.

do 12 times.

month = month + 1.

CALL FUNCTION 'MONTH_PLUS_DETERMINE'

EXPORTING

MONTHS = month

OLDDATE = date

IMPORTING

NEWDATE = new_date

.

write:/ new_date.

enddo.

*Reward points if found useful, revert back in case of query