2008 Jun 17 9:31 AM
Hi,
I am a java developer, coding some APIs in ABAP. I need to know is there something similar to instanceof in ABAP?
If not, how do I achive this functionality.
Regards,
Arpit.
2008 Jun 17 9:39 AM
2008 Jun 17 9:39 AM
2008 Jun 17 9:40 AM
Can I use it productively. This means adding dependency to this class you have mentioned (having the static method)?
Regards,
Arpit
2008 Jun 17 9:41 AM
Also, I am trying to do the following:
method SET_PROPERTY_VALUE.
*CALL METHOD SUPER->SET_PROPERTY_VALUE
EXPORTING
IM_PROPERTY_ATTRIBUTE =
IM_VALUE =
.
DATA: l_object TYPE REF TO CL_SRAPI_BOOLEAN.
catch SYSTEM-EXCEPTIONS move_cast_error = 4.
l_object ?= IM_VALUE.
endcatch.
if sy-subrc EQ 0.
me->SET_VALUE(
exporting
IM_VALUE = IM_VALUE
).
endif.
endmethod.
Is it okay?
2008 Jun 17 9:48 AM
Strictly, you shouldn't use it as it hasn't been documented. But you can use the code within it, as that uses the released class CL_ABAP_TYPEDESCR, which is documented.
>This means adding dependency to this class you have mentioned (having the static method)?
I've no idea what you mean by this.
matt
2008 Jun 18 9:45 AM