Skip to Content
0
Former Member
Feb 16, 2011 at 05:25 PM

problems to update internal table in module pool .

484 Views

Hi Guys , I m trying to update the internal table that I use to drive the fields of a table control , but it doesnt modify the internal table.

some code is easier i guess

in the include to

types : begin of ty_zrc006,
         zrc_cond type  zrc_c006_c-zrc_cond,
         zrc_period_i type  zrc_c006_c-zrc_period_i,
         zrc_period_f type  zrc_c006_c-zrc_period_f,
         knumh type zrc_c006_c-knumh,
         aedat type zrc_c006_c-aedat,
         aezet type zrc_c006_c-aezet,
         aenam type zrc_c006_c-aenam,
         kostl type zrc_c006_i-kostl,
         zrc_perc type zrc_c006_i-zrc_perc,
         MARK TYPE C.
types : end of  ty_zrc006.
data: ti_zrc006 type standard table of ty_zrc006 initial size 0." with header line.

in other include

module MODIFY_LIN input.
read table ti_zrc006 into wa_zrc006 index tabc_ctocusto-CURRENT_LINE.

move:   zrc_c006_i-kostl  to  wa_zrc006-kostl,
        zrc_c006_i-zrc_perc to wa_zrc006-zrc_perc,
        'X'            to wa_zrc006-mark.
modify  ti_zrc006  INDEX  tabc_ctocusto-CURRENT_LINE  from  wa_zrc006 ."  transporting   . "


endmodule.                 " MODIFY_ITAB_REG  INPUT

But when I execute after PAI it never update ti_zrc006 even when wa_zrc006 is filled. any idea ?