ABAP FM中非空判断IS NOT INITIAL和IS SUPPLIED

You can use the logical expression IS SUPPLIED within a function module to see if an actual parameter was set for a formal parameter during a call.

The expression IS REQUESTED checked only the output parameter, whereas the logical expression IS SUPPLIED can be used with all optional parameters. The expression IS INITIAL should not be used because it does not take into account that a default value was used.

IS SUPPLIED可在函数、静态方法(类方法)和实例方法中使用,由于Subroutine的参数无optional选项,故Subroutine中无法使用IS SUPPLIED判断。

使用IS INITIAL判断时

ABAP FM中非空判断IS NOT INITIAL和IS SUPPLIED
ABAP FM中非空判断IS NOT INITIAL和IS SUPPLIED
ABAP FM中非空判断IS NOT INITIAL和IS SUPPLIED
ABAP FM中非空判断IS NOT INITIAL和IS SUPPLIED

使用IS SUPPLIED判断时

ABAP FM中非空判断IS NOT INITIAL和IS SUPPLIED
ABAP FM中非空判断IS NOT INITIAL和IS SUPPLIED
ABAP FM中非空判断IS NOT INITIAL和IS SUPPLIED

本文作者: GavinDong

版权属于: GavinDong博客

文章链接: https://www.gavindong.com/8094.html

如果使用过程中遇到问题,可 **点击此处** 交流沟通。

版权所有,转载时必须以链接形式注明作者和原始出处及本声明。

email