I have created a dynamic internal tables <fs_itab> with various columns. I have also appended records to this dynamic internal table using assign component statement. Now, I want to add records to one of the field (which is a deep structure) in the internal table.
My internal table:
BEGIN OF ty_output,
slno TYPE wty_serno,
color TYPE gjhid,
cell TYPE slis_t_specialcol_alv, (Deep Structure) want to add records to this
butxt TYPE butxt,
werks TYPE persa,
Deep structure values are : CELL-Fieldname = 'XYZ'.
CELL-COLOR-COL = 6.
CELL-NOKEYCOL = 'X'.
I have used assign component to fill this internal table.
ASSIGN COMPONENT 'SLNO' OF STRUCTURE <fs_line> TO <fs_field>.
<fs_field> = slno. "Fill company code
APPEND <fs_line> TO <fs_itab>.