‎2007 Jun 23 6:10 AM
data : r type in_table-name.
data : r type ref to in_table-name.
what is the difference b/w them
‎2007 Jun 23 6:14 AM
Hi Prajwal,
REF TO is mostly used with ABAP OO.
It is used to create the reference objects for classes and methods.
Regards,
Atish
‎2007 Jun 23 6:14 AM
Hi Prajwal,
REF TO is mostly used with ABAP OO.
It is used to create the reference objects for classes and methods.
Regards,
Atish
‎2007 Jun 23 6:15 AM
Hi
type ref to used mostly for declaring classes.
You can not declare
DATA: l_grid type cl_gui_alv_grid.
you need to give it as
DATA: l_grid type ref to cl_gui_alv_grid.
Regards
Navneet
‎2007 Jun 23 6:27 AM
‎2007 Jun 23 6:17 AM
Hi Prajawal,
type ref to is to create a instance variable of a class. its into Object oriented terms.
type is used in normal abal code to declare a variable of the specified type.
regards,
Navneeth K.