Data references can point to any data objects or to their parts (components, rows of internal tables, or sections specified by offsets and lengths)
大意:可以参考任意的数据部份。
Example
Inline declaration of a data reference variable dref with the static type scarr on the left side of a corresponding anonymous data object created on the heap. Uses the dereferencing operator ->* to access the full data object and the object component selector -> to access a component.
DATA(dref) = NEW scarr( ).
SELECT SINGLE *
FROM scarr
WHERE carrid = ‘LH’
INTO @dref->*.
cl_demo_output=>display_data( dref->carrid ).
本文探讨了数据引用的概念,解释了其如何指向各种数据对象或其组成部分,如内部表的行或由偏移量和长度指定的节。通过示例演示了如何在ABAP中声明数据引用变量,并使用dereferencing操作符和对象组件选择器访问完整数据对象及其组件。
&spm=1001.2101.3001.5002&articleId=108019187&d=1&t=3&u=d5829f36656040a0b46902443762c30d)
391

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



