ABAP裏不用賦值操做,只用位操做實現兩個整數值的交換

DATA: lv1 TYPE int4 value 30, lv2 TYPE int4 value 21. FIELD-SYMBOLS: <lv1> TYPE x. FIELD-SYMBOLS: <lv2> TYPE x. ASSIGN lv1 TO <lv1> CASTING. ASSIGN lv2 TO <lv2> CASTING. <lv1> = <lv1> BIT-XOR
相關文章
相關標籤/搜索