2008 Jun 20 3:51 AM
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
2008 Jun 20 4:25 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |