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

Enhancement Point INCLUDE BOUND

Former Member
0 Likes
645

Hi,

What is the usage for the keywords INCLUDE BOUND in enhancement declaration?? I have read the help file but i don't understand the compilation unit. Anyone can explain more on it?

Regards,

Kit

Hi,

What is the usage for the keywords INCLUDE BOUND in enhancement declaration?? I have read the help file but i don't understand the compilation unit. Anyone can explain more on it?

Regards,

Kit

1 REPLY 1
Read only

Former Member
0 Likes
446

Hi,

The keyword IS BOUND checks whether a reference variable is valid, which means that the reference points to an existing object. The keyword IS NOT BOUND returns true if IS BOUND returns false.

DATA lr_my_object TYPE REF TO cl_my_class.

IF lr_my_object IS BOUND.

WRITE 'this text will NOT be written because the variable is not bound'.

ENDIF.

CREATE OBJECT lr_my_object.

IF lr_my_object IS BOUND.

WRITE 'this text will be written because the variable is (now) bound'.

ENDIF.

Reward if found helpful.

Regards,

Boobalan Suburaj