‎2007 Jun 20 8:59 AM
hi friends,
i have a dynamic internal table A holding some data based on an ddic-structure.
now i have a second table B - self defined - that should in one column hold kind of a pointer ( or better the row data ) to a row of table A. how to achieve this ?
i know this is quite special, but if anyone has some hint for me to go for i will reward generously!
Regards,
Clemens
‎2007 Jun 20 9:18 AM
one approach would be declare a column of type string in table B and then concatenate row data from table A and update it in table B string column.
other approach would be to declare table B also at runtime and have a column which is a deep structure of type table A line.
Raja
‎2007 Jun 20 9:18 AM
one approach would be declare a column of type string in table B and then concatenate row data from table A and update it in table B string column.
other approach would be to declare table B also at runtime and have a column which is a deep structure of type table A line.
Raja
‎2007 Jun 20 9:26 AM
hi & thanks, that sound good...but how can i do that if i do not know the name/structure of table A before runtime ?
could you give me some sample code for that ? i would appreciate it very much!
clemens
‎2007 Jun 20 9:44 AM
i guess you are talking about the first option (of have a string column in table B)
you have to use field symbols to read dynamic itabs.
if you search the forum for reading dynamic itab or updating dynamic itab you will get lot of code samples.
Raja