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

Need to pass database Table Name dynamically in Modify command

Former Member
0 Likes
427

Hi,

I am having about 50 database tables. I want to update those tables according to certain criteria. For that I need to give the database table name dynamically. Because if I want to give statically means i need to give 50 modify commands. Please sugeest me. Thanks in advance.

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
365

try this:

1) put your tablenames into itab

2) loop itab and

create data dyn_tab type standard table of (itab-tabn).

assign dyn_tab->* to <dyn_tab>.

modify (itab-TABN) from <dyn_tab>.

hope that helps

Andreas

Read only

Former Member
0 Likes
365

Hi,

Thank you. It is working.