‎2006 Aug 31 2:29 PM
Please explain me about
cl_gui_custom_container.
cl_gui_alv_grid.
How de we implement the class & methods,
‎2006 Aug 31 2:33 PM
hi,
Goto se38->menu environment->examples->Control examples.
here you will get a list of simple examples that use custom container classes.
Regards,
Richa
‎2006 Aug 31 2:43 PM
Hi John,
these are the two classes with predefined methods used for handling ALV with the help of abap objects.
An ALV instance of the class cl_gui_alv_grid is created , with the help of which we will access the methods.we can say it as the wrapper class implemented to encapsulate ALV Grid functionality is CL_GUI_ALV_GRID.
As a control object, ALV Grid instance requires a container to be linked to the screen. Generally, an instance of the class cl_gui_custom_container is used for this purpose.
Regards,
Vidya.
‎2006 Aug 31 2:46 PM
Hi,
cl_gui_custom_container is a container for custom controls in the screen area.(or can say it is linked to the control on the dynpro)
cl_gui_alv_grid is an alv list viewer
both are global classes.
fisrt custom container object is created and grid object is assigned to it, data is allowed to display on the grid.
I have a good docu on basics of abap objects,
how to create classes and methods,
give ur mail id so that i can send
Regards,
Sowjanya.
‎2006 Aug 31 2:46 PM
Hi Johnn, these are classes which can be used to create an ALV Grid on your screen. The container class object handles the container on your dynpro(screen), you then tie the object of the class CL_GUI_ALV_GRID to the container. Please check out sample programs BCALV* for some examples.
Also, if you are on a Netweaver release, you can use the ALV Object Model which is a lot simplier. You must have at least a WebAS 6.40
Regards,
Rich Heilman
‎2006 Aug 31 3:18 PM
HI
GOOD
cl_gui_custom_container->
http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm
cl_gui_alv_grid->
http://help.sap.com/saphelp_nw04/helpdata/en/22/a3f5ecd2fe11d2b467006094192fe3/content.htm
THANKS
MRUTYUN
‎2006 Aug 31 7:37 PM
Hello John
You will always need a container in order to use any control (including ALV grid control). In terms of coding this means you use the container instance as "parent" when creating the ALV grid instance.
All containers have a very exciting method: LINK
With this method you can link your container (with the control) "on the fly" to any dynpro. Even more, the control is not firmly attached to this dynpro but you can re-link it to any other dynpro if required.
Regards
Uwe