Below is example of how you want to extract current date/date to manipulate the value for processing.
Example executable program.
REPORT ZFZ0002 .
DATA: date TYPE d,
day TYPE d,
month TYPE d,
year TYPE d.
date = sy-datum. "current system date.
day = date+6(2).
month = date+4(2).
year = date+0(4).
WRITE:/ 'Current date', date.
WRITE:/ 'Today date:', day.
WRITE:/ 'Month', month.
WRITE:/ 'Year', year.
Wednesday, April 9, 2008
How to exract current date.
Labels:
ABAP How To
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment