Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

what is deferred. OOPs

Hi all,

I have seen may times the key word deferred in standatd programs . What is the meaning of deferred in OOPs. Can anybody pelase say it with example.

Thanks in Advance

Former Member
Former Member replied

Hi guys --you really should press F1 before posting these types of questions --however I'm feeling kind today as Everton football club won their UEFA cup match last night.

Definition deferred means that you can refer to objects in your program which haven't yet been defined but will be later on in your code.

You could have two classes in an abap say and data elements / types in the first class refer to the 2nd class such as obj1 type ref to zclass2 definition deferred.

The zclass2 definition will appear later in your abap.

If you don't put definition deferred then when you check the program it will give a syntax error of zclass2 not found.

Cheers

jimbo

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question