Suppose you want to change the data of two internal, you wish to change the data of a field dynamically.
ASSIGN COMPONENT lv_field
OF STRUCTURE ls_output TO <fs_field>.
IF <fs_field> IS ASSIGNED.
<fs_field> = lv_name. “This line will update the LS_OUTPUT-Field as well see the magic
LV_FIELD is the name of fields who’s data you want to read from structure ls_output….. Now this data will be available in <fs_field>….. Now your requirement is to change the internal table data or structure data dynamically you can do by passing the new value to <fs_field> .. It will replace in the structure as well..