2019 Jul 18 2:10 PM
Hi,
I need to change my internal table name dynamically.
I am fetching records from one table which have 2 fields table name and its relative fields.
table name fields entity
X 7 fields
Y 3 fields
Z 2 fields
when I am storing the records from X-table I am storing into one internal table....(my_tabX (say)).
the movement when I moved to Y-table I want to store into the different internal table but don't want to change the basic name of the internal table and it should something ....like (my_tabY). dynamically
one more issue is that the number of table name could be changed on the basis of input...(ie, the table name is not fixed, varies on the input)
(input = entity) it could be anything.. not important)
Could you guys help me out ??
Hi,
I need to change my internal table name dynamically.
I am fetching records from one table which have 2 fields table name and its relative fields.
table name fields entity
X 7 fields
Y 3 fields
Z 2 fields
when I am storing the records from X-table I am storing into one internal table....(my_tabX (say)).
the movement when I moved to Y-table I want to store into the different internal table but don't want to change the basic name of the internal table and it should something ....like (my_tabY). dynamically
one more issue is that the number of table name could be changed on the basis of input...(ie, the table name is not fixed, varies on the input)
(input = entity) it could be anything.. not important)
Could you guys help me out ??
2019 Jul 18 2:20 PM
I don't get your question, can you show the expected result?
2019 Jul 18 2:29 PM
Hi,
Not clear your requirement ,but i share few thing with you, how to work with dynamic internal table. Try this link.
2019 Jul 18 2:35 PM
the moment when I am getting the 7 fields from X table I stored into the internal table say as
my_tabX and the next time when I reached to the second table Y, I want to store its 3 fields into another internal table say my_tabY... (means the internal table name keep would changes based on the table name.)...
2019 Jul 18 3:22 PM
But how would you know the needed type of your internal table?