Application Development and Automation 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: 
Read only

deferred classes

Former Member
0 Likes
1,186

what are deferred classes and and wat are the uses of it?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
802

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

3 REPLIES 3
Read only

Former Member
0 Likes
803

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

Read only

Former Member
0 Likes
802

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-

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90165b39-306b-2910-04b1-e3271ff1...

Read only

Former Member
0 Likes
802

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.