abap中 is initial 和space的区别
展开全部
举个例子:
DATA: n(4) TYPE n VALUE ‘0000‘.
IF ‘‘ = ‘ ‘ AND ‘‘ = 0 AND ‘ ‘ = 0 AND ‘‘ IS INITIAL AND ‘‘ IS INITIAL AND 0 IS INITIALAND n IS INITIAL.
WRITE: ‘IS INITIAL‘. 以上条件为真
ENDIF.
但‘0000‘数字常量串不能视为初始,下面条件也为真:
IF ‘‘ <> ‘0000‘ AND ‘ ‘ <> ‘0000‘ AND ‘0000‘ IS NOT INITIAL.
DATA: n(4) TYPE n VALUE ‘0000‘.
IF ‘‘ = ‘ ‘ AND ‘‘ = 0 AND ‘ ‘ = 0 AND ‘‘ IS INITIAL AND ‘‘ IS INITIAL AND 0 IS INITIALAND n IS INITIAL.
WRITE: ‘IS INITIAL‘. 以上条件为真
ENDIF.
但‘0000‘数字常量串不能视为初始,下面条件也为真:
IF ‘‘ <> ‘0000‘ AND ‘ ‘ <> ‘0000‘ AND ‘0000‘ IS NOT INITIAL.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询