cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module for back date

Former Member
0 Kudos
183

Hello Everybody ,

My req is that i to fetch back date from my currrent date .

like if i mention 5 days in one variable Now my report shows 5 days back date with respect to current date .

ex : if current date is 09/12/2009 then report should give me O/p Like 04/12/2009

IF date is 01/01/2009 then it should goes to 27/12/2008 if we minus 5 days .

I am looking for the function module in SRM server please suggst me any function module for this one .

Regards,

Sandeep Jadhav

View Entire Topic
Former Member
0 Kudos

Hi,

You can create simple FM with simple logic like below:

data lv_date like sy-datum.

lv_date = (Input date) - 5.

lv_date will give the required date.

Hope this solves your problem.

Thanks

Venkatesh P