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

Why should I use table control?

Former Member
0 Likes
762

Hi,

I am not expert in dialog programming so please understands why I ask this.

When I want to create a program that will have multiple items to display, I came up with 2 option.

First option is to use table control like many other SAP standard transactions.

The 2nd option that I can think of is using ALV Grid using CL_GUI_ALV_GRID class.

Is there any benefit in using table control as oppose to using ALV Grid to display or even maintain multiple items in dialog program?

I can not see any function that table control can do but ALV Grid can not.

Event handling already so advanced in ALV Grid and also editing function.

Can anyone please give me some opinion about this? Thank you.

Regards,

Abraham

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
660

Hi

Table control is old abap technic to display and manage multiple items in a screen, the ALV was created just to give a standard tool to manage the same scenario of table control.

So it's generally better to use ALV grid than table control: because it's faster to develp it and it can have a status gui with many functionalities.

In screen painter there's only a smart tool in order to generate a table control, but then it needs to implement all abap code to manage the table control by himself.

Just only in old release (like 46C) I had to use a table control instead of the grid, because it couldn't do some controls when the user inserted or changed the data of an item.

Max

Hi,

I am not expert in dialog programming so please understands why I ask this.

When I want to create a program that will have multiple items to display, I came up with 2 option.

First option is to use table control like many other SAP standard transactions.

The 2nd option that I can think of is using ALV Grid using CL_GUI_ALV_GRID class.

Is there any benefit in using table control as oppose to using ALV Grid to display or even maintain multiple items in dialog program?

I can not see any function that table control can do but ALV Grid can not.

Event handling already so advanced in ALV Grid and also editing function.

Can anyone please give me some opinion about this? Thank you.

Regards,

Abraham

4 REPLIES 4
Read only

Former Member
0 Likes
660

Hi,

Click on the below link to view the answers;

[Table Control Vs ALV|https://www.sdn.sap.com/irj/scn/advancedsearch?query=tablecontrolvs+alv&cat=sdn_all] - SCN Search Result.

Hope this will help you.

Regards

Karthik D

Read only

Former Member
0 Likes
661

Hi

Table control is old abap technic to display and manage multiple items in a screen, the ALV was created just to give a standard tool to manage the same scenario of table control.

So it's generally better to use ALV grid than table control: because it's faster to develp it and it can have a status gui with many functionalities.

In screen painter there's only a smart tool in order to generate a table control, but then it needs to implement all abap code to manage the table control by himself.

Just only in old release (like 46C) I had to use a table control instead of the grid, because it couldn't do some controls when the user inserted or changed the data of an item.

Max

Read only

Former Member
0 Likes
660

hi abraham,

SEARCH IN SCN BEFORE POSTING.

you will get your answer .

thanks

Sachin