Skip to Content
0
Feb 27, 2009 at 03:33 PM

Change the Value of column of the internal table at run time

78 Views

Hello Experts,

With the below code i am able to determine the value hold

by internal table at run time for a sepcific column but i am not getting the way

of how to update the internal if one of the value is changed,

lr_desc_table ?= cl_abap_typedescr=>describe_by_data( itab ).

lr_desc_struc ?= lr_desc_table->get_table_line_type( ).

loop at itab assigning <fs_data>.

loop at lr_desc_struc->components ASSIGNING <fs_comp_wa>.

assign component <fs_comp_wa>-name of structure <fs_data> to <fs_field>.

lv_excel_row = <fs_field>.

CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'

EXPORTING

INTEXT = lv_excel_row

IMPORTING

OUTTEXT = lv_excel_row.

assign lv_excel_row to <fs_field>. "this is not changing the value actually hold in internal table

endloop.

endloop.