Skip to Content

ABAP instance of keyword leads to incorrect logical expressin

Hello,

I want to use instance of keyword but the compiler says it is wrong logical expression. Here is the code:

  if ( me is instance of zprt_cl_comment ).
 endif.

The code is placed in a method of an abstract class. But I tried to use instance of on objects of class zprt_cl_comment but the result was the same. What could be the problem? Thank you.

capture.png (5.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 27, 2017 at 11:16 AM

    Hi Michal,

    Are you on ABAP 7.50?

    Add comment
    10|10000 characters needed characters exceeded