SAP ABAP RANGE OF
RANGE OF 有行数限制,如果大于一定数量sql就会Dump。
Syntax
DATA range_tab {TYPE RANGE OF type}|{LIKE RANGE OFdobj}
INITIAL SIZE n
VALUE IS INITIAL
READ-ONLY\]. Effect This statement defines a ranges table range_tab with the table type described in the section TYPES - RANGE OF. The table type defined here, however, is not a standalone type, but exists as a property of the data object range_tab. The addition VALUE IS INITIAL can be used to specify an initial start value. Hints Outside of classes, the addition WITH HEADER LINE can also be used to declare an obsolete header line. The declaration of a ranges table using the statement RANGES is obsolete. Example In this example, a ranges table is declared, filled, and evaluated in the WHERE condition of a SELECT statement. 效果 此语句定义了一个范围表range_tab,其表类型在"类型 - 范围"一节中进行了描述。然而,此处定义的表类型并非独立类型,而是作为数据对象range_tab的属性存在。 添加"VALUE IS INITIAL"可用于指定初始起始值。 提示 在类外部,还可以使用"WITH HEADER LINE"这一附加语句来声明一个已过时的标题行。 使用RANGES语句声明范围表的做法已经过时。 示例 在此示例中,我们声明了一个范围表,并在SELECT语句的WHERE条件中填充和评估该表。 ```sql DATA carrid_range TYPE RANGE OF spfli-carrid. carrid_range = VALUE #( ( sign = 'I' option = 'BT' low = 'AA' high = 'LH') ). SELECT * FROM spfli WHERE carrid IN @carrid_range INTO TABLE @DATA(spfli_tab). ``` **例子: RANGE OF 有行数限制,如果大于一定数量sql就会Dump。**  **按如下例子测试,大于 32766 行就会Dump。** 