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

how to change internal table name dynamically

0 Likes
1,488

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 ??

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,144

I don't get your question, can you show the expected result?

Read only

Nawanandana
Active Contributor
0 Likes
1,144

Hi,

Not clear your requirement ,but i share few thing with you, how to work with dynamic internal table. Try this link.

link2

another option

Read only

0 Likes
1,144

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.)...

Read only

Softwaris
Participant
0 Likes
1,144

But how would you know the needed type of your internal table?