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: 

regarding Function Module

Former Member
0 Kudos

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?

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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!