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: 

FM name...???

Former Member
0 Kudos

Hi,

can anyone tell me FM name to get the date of 182 days back from today...????

Thanks in advance...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sandeep,

Use the FM:

RP_CALC_DATE_IN_INTERVAL

Add/subtract years/months/days from a date

With luck,

Pritam.

4 REPLIES 4

Former Member
0 Kudos

Hi ,

just subtract 182 from today

data : V_date like sy-datum.

v_date = sy-datum - 182.

write : v_date.

bpawanchand
Active Contributor
0 Kudos

Hi

Well As i already said to you in the earlier post all you have to do is subtract 182 from today's date you will get the desired result

Regards

Pavan

former_member265047
Active Participant
0 Kudos

Hi ,

You can use the standard subroutine for this

PERFORM DAY_MINUS_MONTHS(SAPFP500) USING rp50d-date1 '3' data_pa.

Subroutine : DAY_MINUS_MONTHS

Program : SAPFP500

You can get date before 182 days.

Regards,

Naveen Veshala

Former Member
0 Kudos

Hi Sandeep,

Use the FM:

RP_CALC_DATE_IN_INTERVAL

Add/subtract years/months/days from a date

With luck,

Pritam.