Skip to Content
0
Former Member
Mar 05, 2011 at 11:01 AM

How to add records to deep structures of dynamic int table(field symbols)

330 Views

Hi all,

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>.

Please help...