Accessing with deep structures using Field Symbols
Please look at the code below and give me some suggestions:
I have a deep structure which contains some fields and a table which contains three fields and a table
let's say the name of my structure is my_struct and the structure of my struct is as follows
field_A type c
field_B type c
Below is the code !!!!!
field-symbols: <my_fs> type any.
field-symbols: <fs1> type any
data: my_ref type ref to data.
create data my_ref type my_struct.
assign my_ref->* to <my_fs>.
now field-symbol my_fs is pointing to my_struct. I have been able to access fields field_A and field_B using
assign component field_A of structure <my_fs> to <fs1>.
<fs1> = 'A'
assign component field_B of structure <my_fs> to <fs1>.
<fs1> = 'B'
but my issue is that I have not been able to acces table_A and it's fields
Can anyone suggest how I can access the table and it's fields and also how to populate those fields? Please keep in mind that the table does not contain any records so the following statement will not work
Loop at <table_name> assigning <wa_name>
My objective is to access this table and start adding some records.
Thanks in advance for your help.