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 model

Former Member
0 Likes
547

Hi,

I am working on ALV functional model. I have a confusion over is it good to use still ALV functional model or update my self to Object Oriented model?

Awaiting for your suggestions.

Thanks and Regards

Mahesh.

5 REPLIES 5
Read only

rahulkavuri
Active Contributor
0 Likes
522

hi check this post on a similar issue where it speaks about the advantages of an ALV GRID CONTROL

https://forums.sdn.sap.com/click.jspa?searchID=1050185&messageID=2993168

check the reply of varaprasad and rich in above link

dont forget to award points if found helpful

Read only

0 Likes
522

Hi Rahul,

Thanks for ur reply but no theread has been found from ur link. Can u suggest me anathor one please ?

Thanks and Regards

Mahesh.

Read only

0 Likes
522

hi the link is working fine, anyways let me paste that info for u

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

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

2. Handling of Events at runtime becomes more simpler in ALV grid control.

3. A page can have n number of ALV grid controls.

4. The runtime environment can be controlled efficiently in ALV grid control.

this is another reply

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.

another one

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.

Read only

0 Likes
522

Hi Rahul,

Small clarification Rahul....you mentioned ALV grid control in the sense of Object Oriented model or functional model? it is not clear to me.

Thanks and Regards

Mahesh.

Read only

Former Member
0 Likes
522

Thanks...

Thanks for ur valuable replies...

Thanks and Regards

Mahesh.