首页 > 其他分享 >ABAP-日期加减函数

ABAP-日期加减函数

时间:2022-12-29 09:23:18浏览次数:40  
标签:函数 t5a4a 加减 years lv ABAP signum date TYPE

 1 DATA:lv_date    TYPE p0001-begda,
 2      lv_days    TYPE t5a4a-dlydy,
 3      lv_months  TYPE t5a4a-dlymo,
 4      lv_signum  TYPE t5a4a-split,
 5      lv_years   TYPE t5a4a-dlyyr,
 6      lv_outdate TYPE p0001-begda.
 7 
 8 lv_signum = '+' .
 9 lv_date = '20221229' .
10 
11 CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
12   EXPORTING
13     date      = lv_date
14     days      = lv_days
15     months    = lv_months
16     signum    = lv_signum
17     years     = lv_years
18   IMPORTING
19     calc_date = lv_outdate.

标签:函数,t5a4a,加减,years,lv,ABAP,signum,date,TYPE
From: https://www.cnblogs.com/TigerMan/p/17011691.html

相关文章