Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

SAP ABAP programming the last day of the month, the first day of or.

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

DATA: FIR_DATA TYPE SY-DATUM. "the first day

DATA: LAS_DATA TYPE SY-DATUM. "the last day.

FIR_DATA = SY-DATUM.

LAS_DATA = SY-DATUM.

FIR_DATA+6 (2) = '288. "make the current date 28.

LAS_DATA = LAS_DATA + 5. "the maximum number of days in a month is 31 days, and after + 5, it must be the first day of next month.

LAS_DATA+6 (2) = '01mm. "the first day of next month

LAS_DATA = LAS_DATA-1. "the last day of the month

WRITE: SY-DATUM,FIR_DATA,LAS_DATA.

* * in the end, you can find the first or last day of any month.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report