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

FM regd Date

Former Member
0 Likes
1,164

Hi SDN's

Is there any FM to add one month to the Sy-Datum?

I need to display the date always as Current Date + 1 Month.

Regards

Pratyusha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,127

Hi usha,

pls chck th fm BKK_ADD_MONTH_TO_DATE

jus need to pas two params date and months to be added

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

Hi SDN's

Is there any FM to add one month to the Sy-Datum?

I need to display the date always as Current Date + 1 Month.

Regards

Pratyusha

8 REPLIES 8
Read only

Former Member
0 Likes
1,124

Try FM CALCULATE_DATE

in parameter DATE enter Current Date

and in MONTH enter '1'

Susanth

Read only

Former Member
0 Likes
1,128

Hi usha,

pls chck th fm BKK_ADD_MONTH_TO_DATE

jus need to pas two params date and months to be added

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

Read only

Former Member
0 Likes
1,124

if your variable

data : date like sy-datum value sy-datum.

date = date + 1.

write : / date using edit mask '__/__/____'.

it will display next day.

Read only

Former Member
0 Likes
1,124

Hi

Try

BKK_ADD_MONTH_TO_DATE

Enter value 1 for next month

pass sy-datum

RE_ADD_MONTH_TO_DATE

HR_HCP_ADD_MONTH_TO_DATE

HR_JP_ADD_MONTH_TO_DATE

Regards

Shiva

Read only

Former Member
0 Likes
1,127

Hi,

Try this one

<b>DATE_IN_FUTURE </b> Import: date in current external format for user; number of days.

Export: calculated date in future in external format mm/dd/yyyy

Also see this

<b>HR_PT_ADD_MONTH_TO_DATE</b> HR-PT: Add or subtract months to a date DMM_OPER can be '+', '-' or '='. if '=', then

DMM_POS = 'BEG' - return 1st day of the DMM_COUNT month of the same year. Use MM format (e.g. 02) otherwise you can get date like '2 /12/2002' for February L.

DMM_POS = 'END' - returns the (DMM_COUNT month + 1), (day - 1) for the input date DMM_DATIN.

Bug: try DMM_DATIN = MM/31/YYYY, DMM_COUNT = 1 L.

<b>RE_ADD_MONTH_TO_DATE</b> This module really can add/subtract months to/from date.

Read only

anversha_s
Active Contributor
0 Likes
1,127

hi,

just execute this..

data: wa_date like sy-datum.

call function 'RP_CALC_DATE_IN_INTERVAL'
exportingdate = sy-datum
days = 0
months = 1
signum = '+'
years = 0
importing
calc_date = wa_date.

write wa_date.

rgds

Anver

Read only

Former Member
0 Likes
1,127

Hi,

use FM

HR_JP_ADD_MONTH_TO_DATE

reward points if useful

Read only

Former Member
0 Likes
1,127

Hi Usha,

Run the below code to get u r result

Report zex33.

parameter : date like sy-datum,

p_months like T5A4A-DLYMO default 1.

data :v_dates like sy-datum.

call function 'RP_CALC_DATE_IN_INTERVAL'

exporting

date = date

days = 0

months = p_months

signum = '+'

years = 0

importing

calc_date = v_dates.

write : / v_dates.