Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8689

Re: Function module to add days to current date

$
0
0

Hi,

 

Use following function module for your requirement.

 

DATA: P_DATELIKE  SY-DATUM.

 

CALL FUNCTION'ADD_TIME_TO_DATE'

  EXPORTING

    I_IDATE  = '01.01.2010'" Your Original Date Here

    I_TIME   = 5   " Number of Days or Months or Years you want to add to original Date

    I_IPRKZ  = 'D'" Indicator D = Days M = Months Y = Years

*   I_RDMHD   =

  IMPORTING

    O_IDATE  = P_DATE      " Processed Date

.

 

in above example,

I_TIME  =5

I_IPRKZ ='D'

 

So, it will add 5daysto given date.


Thanks.


Viewing all articles
Browse latest Browse all 8689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>