SAP ABAP RANGE OF

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。** ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/3b06cabf52784ff09377880614e1dcd9.png) **按如下例子测试,大于 32766 行就会Dump。** ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/48726e57b6fd40b1ab0509ccc9e1ece0.png)

相关推荐
SAP小崔说事儿1 天前
SAP B1 FP 2602 Highlights & Road Map Update
sap·sap b1·business one·b1·思爱普
SAP_LO2 天前
CO11N/CO13报工系统报错“Open SQL array insert produces duplicate records”
sap·co11n·co13·工单报工异常·note 1640636·zpcon_131d·zpcon_051
HeathlX2 天前
ABAP-OO:(4)封装、继承、多态
abap
小狼Solar3 天前
SAP Business Partner WebService 使用问题大全
sap·bp·mdg·数据分发·业务合作伙伴
duangww4 天前
OPEN SQL去掉文本中间的空格
数据库·abap
HeathlX5 天前
SAP-Fiori:系列(5)Gateway ODATA (V2) CURD之Update
sap·abap
duangww5 天前
SAP订单费用报表
abap
HeathlX6 天前
SAP-Fiori:系列(3)Gateway ODATA (V2) CURD之Create
abap
HeathlX6 天前
SAP-Fiori:系列(4)Gateway ODATA (V2) CURD之Delete
sap·abap
戰皇Hermes8 天前
ABAP cl_document_bcs-用户权限不足导致正文内容变成附件txt
abap