Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

point to dynamical internal table

0 Likes
466

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

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
446

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

3 REPLIES 3
Read only

athavanraja
Active Contributor
0 Likes
447

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

Read only

0 Likes
446

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

Read only

0 Likes
446

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