当前位置:网站首页>如何取得某月的最后一天
如何取得某月的最后一天
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.
边栏推荐
猜你喜欢
随机推荐
ORA-16018 异常处理记录
如何成为一名合格的 DBA?看看“老油条”们怎么说
ZZULIOJ:1020: 两整数排序
X书6.89版本shield-unidbg调用方式
富媒体在客服IM消息通信中的秒发实践
pdd.order.information.get拼多多订单详情接口代码对接教程
LeetCode 6138. 最长理想子序列 动态规划
JS获取简单当前时间的年、月、日、时间等
处理一些数据
MySQL事务的保证机制
电流探头如何设置示波器参数
原型和原型链
ZZULIOJ:1022: 三整数排序
什么是遗留代码:有效地处理遗留代码的8个小贴士
若依系统前后台漏洞大全
微信公众号开发
兴盛优选监控场景的时序数据库选型与落地实践
Unity Shader 积雪效果
开发智能硬件过程中需要掌握的方法之经典
域名DNS解析工具ping/nslookup/dig/host









