‎2007 Sep 18 7:37 PM
Hi,
Label for Operands
Operands can be elementary or made up of components. Composite operands are:
1.Instances of classes (objects) [ref->comp]
2.Classes [class=>comp ]
3.Interfaces [intf~comp])
Please can anyone explain me in a simple words.
Thanks,
Medha.
‎2007 Sep 18 7:48 PM
All this is saying is that when you are calling a method or referencing an attribute of an instance of a class, you should use -> So say that the class LCL_APP has a instance method called 'TEST_THIS' and an instance attribute called 'THIS_ATTRIBUTE', you can use them like this.
data: o_ref type ref to LCL_APP.
call method o_ref->test_this( ).
* or when referencing the attrbute.
write:/ o_ref->this_attribute.In the second example, the operand => is used. This is the same as above, but the method or attribute is static and does not have an instance.
The third operance ~ is used to specify the method of the interface which is begin references, works in the same way as above, but when dealing with interfaces.
Regarsd,
Rich Heilman
‎2007 Sep 18 7:48 PM
All this is saying is that when you are calling a method or referencing an attribute of an instance of a class, you should use -> So say that the class LCL_APP has a instance method called 'TEST_THIS' and an instance attribute called 'THIS_ATTRIBUTE', you can use them like this.
data: o_ref type ref to LCL_APP.
call method o_ref->test_this( ).
* or when referencing the attrbute.
write:/ o_ref->this_attribute.In the second example, the operand => is used. This is the same as above, but the method or attribute is static and does not have an instance.
The third operance ~ is used to specify the method of the interface which is begin references, works in the same way as above, but when dealing with interfaces.
Regarsd,
Rich Heilman