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

Creating Internal Table Dynamically(at Run Time)

Former Member
0 Likes
698

Hi,

First I will execute a query,from which i may get some records.

I want to create an internal table at run time with columns = record count of above query.

how can i achive this.

Thanks in advance.

Arun

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
556

Hi,

Please look at the program BCALV_TABLE_CREATE.

It will give you some info to create dynamic table.

Ana also you can use dynamic subroutine or dynamic program to do that.

Hope this will help you. Let me know if you want more info.

Thanks & Regards,

Siri.

Message was edited by: Srilatha T

4 REPLIES 4
Read only

Former Member
0 Likes
557

Hi,

Please look at the program BCALV_TABLE_CREATE.

It will give you some info to create dynamic table.

Ana also you can use dynamic subroutine or dynamic program to do that.

Hope this will help you. Let me know if you want more info.

Thanks & Regards,

Siri.

Message was edited by: Srilatha T

Read only

0 Likes
556

Hi,

and have a look to this weblog:

/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table

Andreas

Read only

Former Member
0 Likes
556

or look at this weblog.

/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap

Svetlin

Read only

Former Member
0 Likes
556

Arun,

Welcome to SDN !!!!!

Use <b>Select count(*) into vCount from employee where ...</b>

Now vCount will have no of records hit.

With the help of Class <b>cl_alv_table_create</b>

and the method <b>create_dynamic_table</b> , you can create Dynamic Internal Tables.

Thanks

Kam

Note: Allot points if the answer was helpful.