04-30-2009 1:32 AM
Hello All,
I eed to get the field ame of a structur from one of the custom tables .Now, in the program I need to assign a structure value to the
the structure-(dynamic fieldname) ,how will I do this??? I will not be able to concatenate in and assign it ..
04-30-2009 1:52 AM
Hello Shakuntala,
You can use field symbol to get to the dynamic fields of the structure.
you can also use the selection from table dd03l to get the fields of the structure.
select * from dd03l to get the lt_comp_list for your structure.
field-symbol: <fs_tab> type data,
<fs_field> type any.
.
loop at lt_comp_list into ls_comp.
ASSIGN COMPONENT ls_comp OF STRUCTURE your structure TO <fs_field>.
<fs_field> = desired value.
end loop.
Hope this helps.
-Vinita