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

Object oriented abap problem

Former Member
0 Likes
617

CLASS LCL_EVENT_RECEIVER DEFINITION DEFERRED.

Please let me know the meaning of the statement in declaring the class.

Reward is compulsary.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
598

hi,

if you specify it definition deffered then

You can define it and implement it later.

Regards

vijay

5 REPLIES 5
Read only

FredericGirod
Active Contributor
0 Likes
598

Hi,

that means that you will discribe the class lcl... but latter.

Rgd

Frédéric

Read only

Former Member
0 Likes
599

hi,

if you specify it definition deffered then

You can define it and implement it later.

Regards

vijay

Read only

Former Member
0 Likes
598

Hi vijay,

1. Usually the class along with the

definition, should be coded FIRST.

2. but some times,

due to some reasons,

we want to write the code

for definition,

after some lines ,ie ... below.

3. So that syntax error is not recevied,

WE HAVE TO TELL ABAP ABOUT THIS .

4. so, as the name suggests,

DEFINITION DEFERRED,

we use like this.

regards,

amit m.

Read only

Former Member
0 Likes
598

Hello Vijay,

It means u are saying to compiler that there is a class with LCL_EVENT_RECEIVER and it will be defined later on.

U better find the meaning of of deferred.then u will understand very well.

Regards,

Lisa.

Read only

Former Member
0 Likes
598

To allow the declaration of o_event_receiver before the lcl_event_receiver class is defined, declare it as deferred in the

  • start of the program

<b>CLASS lcl_event_receiver DEFINITION DEFERRED.</b>