I have declared a field symbol and I am trying to use AT END OF command. But it says <fs_h_vbrp> is not defined as field-symbol. I can use this filed symbol for any other assignment, problem comes only using at end of,
Any changes needs to be done?
TYPES: BEGIN OF typ_h_vbrp,
vbeln LIKE vbrp-vbeln,
posnr LIKE vbrp-posnr,
END OF typ_h_vbrp.
FIELD-SYMBOLS: <fs_h_vbrp> TYPE typ_h_vbrp.
LOOP AT gt_h_vbrp ASSIGNING <fs_h_vbrp> casting.
AT END of <fs_h_vbrp>-vbeln .