2009 Sep 01 5:56 AM
Hi,
Can you please give me the advantages of using RTTS services over class cl_alv_table_create for creating dynamic internal table.
Thanks in advance..
2009 Sep 01 7:07 AM
Hi,
Using RTTS you can create more than 36 dynamic tables wherein, using cl_alv_table_create you can only create 36 dynamic internal tables...
Regards,
Siddarth
2009 Sep 01 6:41 AM
Hi Vineeth,
SAP always tried to provide better service to the SAP users.In this run they provided RTTS services introduced in version 6 and enhanced in 6.4 further.Now definately this is going to be better perfomer than class which you were asking about as it is inbuild ABAP tool.
Hope your query resolves quickly.
Have a best day ahead.
2009 Sep 01 7:03 AM
Hi Srivastava,
If you can substantiate its performance with a example,it will help me to better understand its use over class cl_alv_table_create.
2009 Sep 01 7:07 AM
Hi,
Using RTTS you can create more than 36 dynamic tables wherein, using cl_alv_table_create you can only create 36 dynamic internal tables...
Regards,
Siddarth
2009 Sep 01 7:15 AM
Hi,
The class cl_alv_table_create is limited to creating only internal tables dynamically, however the RTTS classes gives you a flexibility to create any kind of variables and references dynamically at runtime. This is the most basic difference and advantage.
Refer to the wiki [here|https://wiki.sdn.sap.com/wiki/display/ABAP/RuntimeTypeServices+(RTTS)] to understand more on RTTS.
BR,
Advait
2009 Sep 01 8:21 AM
Also, in case you are curious to know more about RTTS, this [article|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae] further demonstrates the power of generic programming using RTTS.
Happy reading
BR,
Advait
2009 Sep 01 8:46 AM
Hi vineeth,
cl_alv_table_create creates source code for the field catalog supplied. It uses statement generate subroutine pool to generate the coding on runtime. Except from reduced performance this also will commit all unsaved data of the current work process to the database, (almost) the same as writing COMMIT WORK.
This is usually not wanted but it was necessary before the RTTS was available.
Kind regards,
Clemens
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |