*---1.
field-symbols: <fs> .
data: l_str type string value 'DD1'.
data: dd1(10) value 'dd1的值'.
assign (l_str) to <fs>. "<fs>指向dd1这个变量的地址,<fs>的值就是dd1的值.
write: <fs>.
*---2.
data: str1 type string,
l_knvv type knvv.
field-symbols <fs> type any.
str1 = '(SAPMF02D)KNVV'.
assign (str1) to <fs>.
l_knvv = <fs_knvv>.
*---3.
field-symbols: <f_fs1>, <f_fs2>.
assign component index1 of structure itab_out to <f_fs1>.
assign component 'LGORT' of structure <f_out_wa> to <f_fs1>.
评论