声明:原创作品,转载时请注明文章来自SAP师太技术博客:www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将追究法律责任!原文链接:http://www.cnblogs.com/jiangzhengjun/p/4292921.html
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
日期运算是以天为单位,时间运算以秒为单位。
时间: 2024-10-05 05:18:18