cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module for back date

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

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

jason_boggans
Active Contributor
0 Kudos

Hi Sandeep,

Your query is very broad. There are many functions in the SRM and other SAP systems to determine dates/times but to fulfill a request like your one perhaps some coding within a Badi is more effective? If you are trying to achieve something like leadtime values then you can use functions like BBP_CHECK_LEAD_TIME.

Regards,

Jason