Field Symbols

REPORT test.


TYPESBEGIN OF TY_FINAL,
         NAME TYPE CHAR10,
         NAME2 TYPE CHAR20,

     END OF    TY_FINAL.


     DATAGT_FINAL TYPE TABLE OF TY_FINAL,
           GS_FINAL TYPE          TY_FINAL.

     FIELD-SYMBOLS<STRY> TYPE ANY,
                    <STRY1> TYPE TY_FINAL,
                    <STRY_> TYPE ANY TABLE.


data lv_name type string.

lv_name 'NAME'.

APPEND INITIAL LINE TO gt_final.

LOOP AT GT_FINAL ASSIGNING <STRY1>.
  if <stry1> is ASSIGNED.
  ASSIGN COMPONENT  lv_name OF STRUCTURE <STRY1> TO <stry>.
  <stry> =  'dev'.
  endif.
ENDLOOP.

Comments

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

How to Give Dropdown in alv report in sap abap programming Language

Long Text in input and output field in module pool