Skip to Content
0
Former Member
Jul 20, 2008 at 06:23 AM

field symbols quistion

26 Views

Hi,

i have 3 tables that one of them is type field symbols (<col_a>)

and i wont to append (not modify) if sy-subrc ne 0 the data from the tables no_tab (field - wa_no_tab-znodename) and table

ti_date_a (field - wa_ti-date ) to table <col_a>

how i can do that?

i try but its always do modify and i wont append.

in <col_a> table i have 2 Colman child & month

Regards

DO  l_lt TIMES.
 READ TABLE ti_date_a INTO wa_ti INDEX cnt.
    LOOP AT no_tab INTO wa_no_tab.
      READ TABLE <col_a>  ASSIGNING  <t_a> WITH KEY ('CHILD') = wa_no_tab-znodename ('MONTH') = wa_ti-date.
      IF sy-subrc <> 0.

        ASSIGN COMPONENT:  'CHILD' OF STRUCTURE <t_a> TO <fs_data3>,
                           'MONTH' OF STRUCTURE <t_a> TO <fs_data4>.