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 name...???

Former Member
0 Likes
716

Hi,

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

Thanks in advance...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
691

Hi Sandeep,

Use the FM:

RP_CALC_DATE_IN_INTERVAL

Add/subtract years/months/days from a date

With luck,

Pritam.

Hi,

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

Thanks in advance...

4 REPLIES 4
Read only

Former Member
0 Likes
691

Hi ,

just subtract 182 from today

data : V_date like sy-datum.

v_date = sy-datum - 182.

write : v_date.

Read only

bpawanchand
Active Contributor
0 Likes
691

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

Read only

former_member265047
Active Participant
0 Likes
691

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

Read only

Former Member
0 Likes
692

Hi Sandeep,

Use the FM:

RP_CALC_DATE_IN_INTERVAL

Add/subtract years/months/days from a date

With luck,

Pritam.