abap:field symbols

简单的理解field symbols,可简单的理解为abap的指针。

 REPORT  ZTEST_FIELD_SYMBOLS.

DATA:NAME(10) TYPE C,
       ADDRESS(10) TYPE C.

FIELD-SYMBOLS <FS1>.

NAME = 'ADDRESS'.

ASSIGN (NAME) TO <FS1>.

DATA TMP(20) TYPE C.
 TMP = 'FSTEST'.

 MOVE TMP TO <FS1>.

 WRITE:/ , ADDRESS. 

 <!--StartFragment -->

你可能感兴趣的:(C++,c,C#)