‎2005 Nov 10 12:37 PM
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
‎2005 Nov 10 12:41 PM
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
‎2005 Nov 10 12:41 PM
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
‎2005 Nov 10 12:44 PM
Hi,
and have a look to this weblog:
/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table
Andreas
‎2005 Nov 10 12:47 PM
or look at this weblog.
/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
Svetlin
‎2005 Nov 10 12:48 PM
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.