RANGES: RG_UP FOR UPSHDR-UPSSTAT.
UPSHDR:ALE分布单位,抬头数据
UPSSTAT:ALE分配包:状态
【】RANGES rtab FOR dobj [OCCURS n].
Obsolete declaration of a Ranges-table. This statement (not allowed in classes) is a short form of the following statement sequence which is also not allowed in classes:
DATA: BEGIN OF rtab OCCURS {10|n},
sign TYPE c LENGTH 1,
option TYPE c LENGTH 2,
low LIKE dobj,
high LIKE dobj,
END OF rtab.
该定义过失了,且不允许使用在面向对象中,是下列语句(也不适用于面向对象)的简写。
【】It is not allowed to declare internal tables with header lines. Due to this, the statement RANGES is not allowed in header lines.
不允许声明再表头的内表,RANGES语句声明的不允许带表头,在面向对象中,用TYPES、DATA等声明

本文详细解析了ABAP编程语言中的RANGES语句,包括其在不同上下文中的应用限制,例如在表头内表声明中的不适用性及在面向对象编程中的替代方案。

被折叠的 条评论
为什么被折叠?



