当前位置:网站首页>如何取得某月的最后一天
如何取得某月的最后一天
2022-08-10 04:35:00 【Harryjing2018】
1 Introduction.
This blog will demostrate how to ge the last day in the month. We only need
transform two parameters and get the last day.
2 Example
data lv_periv type t009b-periv.
data lv_poper type t009b-poper.
lv_periv = 'K4'.
lv_poper = 5.
call function 'LAST_DAY_IN_PERIOD_GET'
exporting
i_gjahr = 2021
* I_MONMIT = 00
i_periv = lv_periv
i_poper = lv_poper
importing
e_date = l_date
* EXCEPTIONS
* INPUT_FALSE = 1
* T009_NOTFOUND = 2
* T009B_NOTFOUND = 3
* OTHERS = 4
.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
if l_date is not initial.
endif.
边栏推荐
- 用 PySpark ML 构建机器学习模型
- 【无标题】
- LeetCode 301. Remove Invalid Parentheses BFS
- Ueditor编辑器任意文件上传漏洞
- Using the DatePicker date control, Prop being mutated: "placement" error occurs
- 第九章、类的生命周期
- redis basic data types
- 2022 R2 transportable pressure vessel filling operation examination question bank simulation platform
- JS获取当前时间的年、月、日、时间等
- Day14/15/16:哈夫曼树、哈弗曼编码(压缩与解压缩)
猜你喜欢
随机推荐
【LeetCode】Day111-字母异位词分组
Unity实现UI的边缘检测和拖拽拉伸功能
2022年T电梯修理考试题及模拟考试
GP如何进行数据比对?
若依系统前后台漏洞大全
用.bat文件做Airtest脚本的多设备批量运行
基于 EasyCV 复现 DETR 和 DAB-DETR,Object Query 的正确打开方式
什么是遗留代码:有效地处理遗留代码的8个小贴士
2022山东省安全员C证考试题及模拟考试
LeetCode 301. Remove Invalid Parentheses BFS
机器学习之聚类——双聚类简介及简单案例
最新开源的面试笔记,天花板级别!
今天月亮很美
125. 耍杂技的牛
阿笑家的黄桃
WAN技术-1广域网接口
goland里的异常处理
tensorflow分词深度学习——影评预测
webrtc学习--一对一通话
B+树与B树的区别、Hash索引与B+树索引的区别








