Skip to Content
0
Former Member
Dec 04, 2008 at 06:54 AM

Modify Dynamic Internal table content ?

1012 Views

Dear All,

I want to modify the dynamic table content .

i.e. I have a Date value in the dyn. int. table and I want to modify it to the Year value.


fied-symbol : <fs_year>    TYPE ANY.
  DATA: lv_string TYPE char20,
            lv_year   TYPE char04.

    LOOP AT <fs_t_son> ASSIGNING <wa_son>.
* Get the Field and Value for the Date/Year
      ASSIGN COMPONENT 'BUDAT'  OF STRUCTURE <wa_son> TO <fs_year>.
      IF sy-subrc = 0.
        CLEAR lv_string.
        MOVE <fs_year> TO lv_string.
        CLEAR lv_year.
        lv_year = lv_string.
      <fs_year> = lv_year.

" How to modify my dyn. int. table with this value of <fs_year>  now ????
      ENDIF.  " if sy-subrc = 0.  "Assign
endloop.

Any clues ???

Regards,

Deepu.K