DATA: ultimo TYPE d.
"服务器当前日期
ultimo = sy-datum.
WRITE: / ultimo .
"当前月的第一天,可以采用字符偏移操作
ultimo+6(2) = \'01\'. " = first day of this month
WRITE: / ultimo .
"上月最后一天
ultimo = ultimo - 1. " = last day of last month
WRITE: / ultimo .
20110716
20110701
20110630
日期运算是以天为单位,时间运算以秒为单位。