‎2008 Aug 26 8:05 AM
‎2008 Aug 26 8:08 AM
Hi Bheeshmaraj nagarajan,
The DEFERRED addition makes a class known provisionally in the program.
Please check this link
http://help.sap.com/saphelp_nw70/helpdata/en/c3/225b6554f411d194a60000e8353423/content.htm
Best regards,
raam
‎2008 Aug 26 8:08 AM
Hi Bheeshmaraj nagarajan,
The DEFERRED addition makes a class known provisionally in the program.
Please check this link
http://help.sap.com/saphelp_nw70/helpdata/en/c3/225b6554f411d194a60000e8353423/content.htm
Best regards,
raam
‎2008 Aug 26 8:17 AM
Hi,
The deferred addition in the class definition makes the class known to the program before it is declared.
Check this link for Example and details-
‎2008 Aug 26 1:08 PM
Hi,
CLASS class DEFINITION DEFERRED.
Used to refer to a class at some point in a code and the class is not defined before the line.
CLASS C2 DEFINITION DEFERRED.
CLASS C1 DEFINITION.
PUBLIC SECTION.
DATA O2 TYPE REF TO C2.
ENDCLASS.
CLASS C2 DEFINITION.
public section.
data : num type i value 5.
ENDCLASS.
start-of-selection.
data : obj1 type ref to C1.
CREATE OBJECT obj1.
create object obj1->o2.
write:/5 obj1->o2->num .
In the above example in class C1 we r refering class C2 ,but class c2 it was defined after c1 . So refering to a class before it is defind. then we use defered keyword.
Regards,
Vijetha.