03-03-2008 6:48 AM
hello everyone,
plz tell me, if i declare data:go_grid type ref to cl_gui_alv_grid.
where cl_gui_alv_grid is a class.
then what does it mean?
03-03-2008 6:53 AM
hI
THAT MEANS WE ARE TRYING TO CREATE REFERENCE FOR THAT CLASS
METHODS OF A CLASS CAN'T BE ACCESSED DIRECTLY
THATS WE CREATE A REFERNCE FOR THAT CLASS AND AFTER THAT WE WILL CREATE A OBJECT FOR THAT
BY USEING THE OBJECT WE WILL ACESS THE METHODS OF A CLASS
DATA : OBJ TYPE REF TO CL_EZAMPLE
CREATE OBJECT OBJ.
AFTER THIS STATEMENT IT WILL CREATE AN INSTANCE FOR THAT CLASS
AND ACCESS THE METHODS
03-03-2008 6:54 AM
Hi Vishal,
Is the function module where we use tht when we code for a reprot using the OOalv concept. In OOalv desing we use this class such that we take a container and the objects of alv wil be placed that s the reasn we go for se51 and select alv contaner and that container will hold the objects ..
Steps we follow is first we define a container and in the conteainer we place the objects.
Hope u might be clear with this.
Regards,
Sana.
Reward points if found helpful!