ABAP中的功能模块是否允许内联数据声明
Does function module in ABAP allow inline data declaration
功能模块的导入参数是否可以声明Inline Data。目前它正在给
The inline declaration "DATA(IT_MARA)" is not possible in this position.
不,那是不可能的。一般来说,类型检查在功能模块上真的很糟糕。以这个片段为例:
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lw_string
test = someother
banana_banana = someother
IMPORTING
output = lw_string.
它会触发运行时错误,但不会停止编译。扩展程序检查中只有一个关键注释。
无论如何,内联声明适用于方法调用。大多数旧功能模块代码已经翻译成 OOP。
功能模块的导入参数是否可以声明Inline Data。目前它正在给
The inline declaration "DATA(IT_MARA)" is not possible in this position.
不,那是不可能的。一般来说,类型检查在功能模块上真的很糟糕。以这个片段为例:
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lw_string
test = someother
banana_banana = someother
IMPORTING
output = lw_string.
它会触发运行时错误,但不会停止编译。扩展程序检查中只有一个关键注释。
无论如何,内联声明适用于方法调用。大多数旧功能模块代码已经翻译成 OOP。