2

我遇到了这个我难以理解的abap片段。

call function 'com_invoke'
   destination pv_wrkdest
   exporting
        %instid         = pv_instance
        %method         = 'FieldCountGet'
   importing
        %return         = lc_return
        fieldcount      = pv_fieldcount
   exceptions
        communication_failure = 1
        system_failure        = 2
        invalid_instance_id   = 3
        others                = 4.

%instid、%method 和 %return 参数中的百分号表示什么?

4

1 回答 1

2

它可能只是一个(过时的)命名约定吗?IE 是以 % 开头的参数是“按值传递”还是“按引用传递”?我刚刚尝试在测试 FM 中创建类似的参数,而 SAP 不允许这样做。

于 2009-10-22T01:38:51.730 回答