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

RTTS advantages over class cl_alv_table_create

Former Member
0 Likes
1,122

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,048

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

6 REPLIES 6
Read only

gaursri
Active Contributor
0 Likes
1,048

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.

Read only

Former Member
0 Likes
1,048

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.

Read only

Former Member
0 Likes
1,049

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

Read only

Former Member
0 Likes
1,048

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

Read only

0 Likes
1,048

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

Read only

Clemenss
Active Contributor
0 Likes
1,048

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