TABLES参数已经过时 TABLES parameters are obsolete! 问题的解决

最近我在创建RFC时,打算创建一个TABALS参数没想到SAP给了个报警提示:TABLES参数已经过时  ( TABLES parameters are obsolete!)

我提了个Message给SAP官方,SAP官方给我发了一个note 947794.(这个note都已经是2006年的了,这个历史也太久远了)他们建议使用 IMPORTING, EXPORTING or CHANGING 参数。


我把这个note 贴在下面:

When you create TABLES parameters the system generates message FL 069 with the text 'TABLES parameters are obsolete!'.
1. This message is a warning message and you can continue editing by pressing . The long text of the message contains additional explanations.
2. The system does not generate message FL 069 for RFC function modules since the TABLES parameters are possibly more efficient here (see message FL 397 - long text).

Other Terms

SE37, Function Builder, TABLES - parameter

Reason and Prerequisites

The TABLES parameters are an obsolete parameter type. They have following disadvantages:
1) Type specification with LIKE results in a weak obsolete type check that cannot be extended from reasons of compatibility.
2) This parameter type always implies internal tables with header lines. Internal tables with header lines are obsolete and can no longer be defined with ABAP Objects.
3) The header line is also passed to the function module and changes by the function module (e.g. through a simple LOOP) are visible for the calling program.
4) For a TABLES parameter you cannot define whether it is an input, output, or input and output parameter.

Solution

You should create an IMPORTING, EXPORTING or CHANGING parameter.

See More
软件组件

你可能感兴趣的:(SAP-ABAP,SAP心得)