Skip to Content
0
Former Member
Jul 19, 2005 at 10:14 PM

Numerical manipulation with system date SY-DATUM

540 Views

Hi all,

I have the requirement wherein I need to do numerical manipulation on year, month, and date of SY-DATUM. For that, I extracted the date, month, and year parts from SY-DATUM as below.

data: year(4) type c,

month(2) type c,

date(2) type c.

year = sy-datum(4).

month = sy-datum+4(2).

date = sy-datum+6(2).

write: / year , " 2005

/ month , " 07

/ date. " 19

How do I add numerical values to above year, month and date values? As they are in character format, I could not add numerical values directly.

Thanks in advance.

Cheers,

Vicky.