READ TABLE 新语法

2018-12-07  本文已影响0人  阿努比斯1117
OLD:
READ TALBE itab INDEX idx INTO wa.
NEW:
wa = itab[idx].


OLD:
READ TABLE itab WITH KEY col1 = ... col2 = ... INTO wa.
NEW:
wa = itab[ col1 = ... col2 = ...].

OLD:
READ TABLE itab WITH KEY col1 = ... col2 = ... INTO wa.
IF SY-SUBRC = 0
...
ENDIF.
NEW:
IF LINE_EXISTS(  ITAB[ col1 = ... col2 = ... ] ).
...
ENDIF.


上一篇 下一篇

猜你喜欢

热点阅读