gpt4 book ai didi

abap - 如何将多个参数传递给子程序?

转载 作者:行者123 更新时间:2023-12-04 21:18:58 24 4
gpt4 key购买 nike

我试图将多个参数传递给一个子例程,但出现以下错误:

Incorrect nesting: before the statement "FORM", the structure introduced by "FORM" must be concluded with "ENDFORM"

这是我的代码:

CASE p_choose.
WHEN 'UMK'.
PERFORM umk USING: p_modul,
p_e_pal,
p_vbeln,
p_e_umk.
"some other cases
ENDCASE.

FORM umk USING: p_modul,
p_e_pal,
p_vbeln,
p_e_umk.
ENDFORM.

我的错误在哪里?如何传递多个参数?或者根本不可能?谢谢!

最佳答案

我自己已经找到了解决方案。错误是每个参数后面的“,”。

正确的代码是:

CASE p_choose.
WHEN 'UMK'.
PERFORM umk USING p_modul
p_e_pal
p_vbeln
p_e_umk.
"some other cases
ENDCASE.

FORM umk USING p_modul
p_e_pal
p_vbeln
p_e_umk.
ENDFORM.

关于abap - 如何将多个参数传递给子程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59086102/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com