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

ALV Grid control??

Former Member
0 Likes
527

hi.this is arijit.

can any one tell me...why people use alv grid control rather than alv??

which is better???

which is used in real life???

bye

i will give points..

4 REPLIES 4
Read only

Former Member
0 Likes
490

Hi,

For a better look and feel ALV grid is best and you have all the options for downloading , summing etc on the toolbar itself.

But care should be taken not to use ALV report when the report is executed in background. ALV will give an error.

In this case, check the field SY-BATCH and use simple classical reporting if execute background and ALV if execute foreground.

Regards

Subramanian

Read only

uwe_schieferstein
Active Contributor
0 Likes
490

Hello Arijit

I use ALV grid control an ALV for the same object, namely <b>OO-based</b> ALV lists. Some people may take ALV as a synonym for <i>function module</i> based ALV lists.

In any case you should <b>prefer the OO-based approach</b> which is much easier and more powerful, especially in the long-term.

Regards

Uwe

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
490

Hi. The use of the grid control vs the function module based ALV is really based on personal preference, I think. Although I think that many should learn the control based ALV as it will help to learn ABAP OO. The control is used when you have a dynpro or container in which the ALV is to reside in. You use the FM, when you want a full screen alv with the buttons on the application toolbar. If you look under the hood, of the FM, you will see that the control based ALV is implemented underneath.

Also, really you should look in the ALV object model which was introduced in Netweaver 2004. It provides one unified tool for the 2d table display, so you can use the one tool to provide the "Full screen" display which is provided by the FM ALV and the control based ALV.

http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm

You will see arguements that you shouldn't use the FM and always use the control based ALV. I'm not sure that it is 100% true either way. But I do think that you should learn and start using the ALV Object Model, if you are on a Netweaver release.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
490

Hi,

Apart from the advantages in displaying the grid, the found the following advantages with Grid Control.

<b>1.</b> The instance of the grid can be cleared during the session, this is not possible with Function module ALV. When ALV function module is called, the function group gets initialized. All the variables in the funciton group are instantiatd and occupy memory. this memory cannot be cleared in the session. Thus ALV function modules occupy more memory. Thus make them work slower than ALV grid control.

<b>2.</b> Handling of Events at runtime becomes more simpler in ALV grid control.

<b>3.</b> A page can have n number of ALV grid controls.

<b>4.</b> The runtime environment can be controlled efficiently in ALV grid control.

Regards,

Vara