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: 

TO ADD 1 month

Former Member
0 Kudos
5,851

Is there any method or function module where i can directly add 1 month to existing date.eg if today is feb1 i need the date as march1.adding 30 days does not work out.

8 REPLIES 8

Former Member
0 Kudos
1,079

BKK_ADD_MONTHS_TO_DATE IS THE FUNCTION MODULE.

0 Kudos
1,079

for example u have ur date in l_date and u want to add 1 month to that, declare

l_1month type dats value '00000100' then perform l_date = l_date + l_1month

Regards

Farzan

0 Kudos
1,079

Alternatively you can use SG_PS_ADD_MONTH_TO_DATE funciton module

Regards

Farzan

Former Member
0 Kudos
1,079

Hi,

Try with the below FM

BKK_ADD_MONTH_TO_DATE

Former Member
0 Kudos
1,079
HR_PT_ADD_MONTH_TO_DATE

former_member705122
Active Contributor
0 Kudos
1,079

Hi,

check FM,

call function 'RP_CALC_DATE_IN_INTERVAL'
         exporting
              date      = sy-datum
              days      = 0
              months    = 01
              signum    = '+'
              years     = 0
         importing
              calc_date = wa_date.
 
write: / wa_date.

former_member188685
Active Contributor
0 Kudos
1,079

Check the Function RP_CALC_DATE_IN_INTERVAL

There are many posts related to this..

peter_ruiz2
Active Contributor
0 Kudos
1,079

Hi,

Just add 1 to the current month of your date variable like this.

add 1 to v_date+4(2).

regards,

Peter