Go to start of banner

# add days , weeks, months,years to date

```\*---------------------------------------------------------------------------------------\*

\*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; report name&nbsp;

\*---------------------------------------------------------------------------------------*&nbsp;

REPORT ZTEST .

\*---------------------------------------------------------------------------------------\*

\*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; data declarations

\*---------------------------------------------------------------------------------------\*

DATA :I_DATE LIKE SY-DATUM,

DATE LIKE SY-DATUM .

\*---------------------------------------------------------------------------------------\*

\*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start of selection

\*---------------------------------------------------------------------------------------\*

start-of-selection .
\\ {color:#0000ff}\*--here if I_IPRKZ = space it is in days{color}

{color:#0000ff}\* if I_IPRKZ = 1 it is in weeks{color}

{color:#0000ff}\* if I_IPRKZ = 2 it is in months{color}

{color:#0000ff}\* if I_IPRKZ = 3 it is in years{color}

{color:#0000ff}\*--here i\_ time will display the no of weeks or months or yeas{color}

{color:#0000ff}\*----Original date{color}

EXPORTING

I_IDATE = SY-DATUM

{color:#0000ff}\*--\- give the number of days or weeks or months or years to be added{color}

I_TIME = '4'

I_IPRKZ = ' '

IMPORTING

{color:#0000ff}\*---new date{color}

O_IDATE = date .

\*---------------------------------------------------------------------------------------\*

\*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output

\*---------------------------------------------------------------------------------------*&nbsp;

WRITE:/ DATE .&nbsp;
```
• No labels