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

Class & methods

Former Member
0 Likes
950

Please explain me about

cl_gui_custom_container.

cl_gui_alv_grid.

How de we implement the class & methods,

6 REPLIES 6
Read only

Former Member
0 Likes
856

hi,

Goto se38->menu environment->examples->Control examples.

here you will get a list of simple examples that use custom container classes.

Regards,

Richa

Read only

Former Member
0 Likes
856

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.

Read only

Former Member
0 Likes
856

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.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
856

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

Read only

Former Member
Read only

uwe_schieferstein
Active Contributor
0 Likes
856

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