Application Development 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: 

alv grid

Former Member
0 Kudos

which is more better method to call grid.

by using Function Module method? like <b>REUSE_ALV_GRID_DISPLAY.</b>

or by using object oriented approach like <b>CL_GUI_ALV_GRID.</b>

4 REPLIES 4

Former Member
0 Kudos

Hi ,

They both are equally good , but the better way would be using the OOPS way .

Regards

Arun

rahulkavuri
Active Contributor
0 Kudos

The ALV Grid Control does not allow you to display block or hierarchical lists. Currently, simple lists can be displayed in single-line format only.

So thats a constraint with CL_GUI_ALV_GRID

<b>Award points if found helpful</b>

Former Member
0 Kudos

Hi Naveen,

The answer to your question basically depends whether you want to follow the procedural approach or object oriented approach for developing your programs.

Technically both the FM/Class help you display a grid. So if you just want to do the display, then you can use any of them.

But the Class offers methods which offer you functionalities which are far superior in terms of handling the data on the grid as compared to the FM.

For more details refer the documentation provided by SAP as under:

<a href="http://help.sap.com/saphelp_erp2004/helpdata/EN/bf/3bd1369f2d280ee10000009b38f889/frameset.htm">http://help.sap.com/saphelp_erp2004/helpdata/EN/bf/3bd1369f2d280ee10000009b38f889/frameset.htm</a>

Regards,

Chetan.

PS:Reward points if this helps.

former_member199581
Active Participant
0 Kudos

Check out the new class CL_SALV_TABLE.

It's much simpler to use and more powerful that the good old CL_GUI_ALV_GRID.

R.