有时我们期望在abap中实现像 1+ 1 = 2, 2 + 1 = 3, 3+ 1= 4的递增功能。
即: A + 1 = B
B + 1 = C.
C + 1 = D.
原代码如下:
------------------------------------------------------------------
data: str type c LENGTH 15,
str2 type string,
str3 type string,
l_pos type i,
mydate(10).