2006 Dec 13 1:17 PM
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>
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>
2006 Dec 13 1:22 PM
Hi ,
They both are equally good , but the better way would be using the OOPS way .
Regards
Arun
2006 Dec 13 1:22 PM
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>
2006 Dec 13 1:26 PM
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.
2006 Dec 13 2:16 PM
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.