Skip to content

Usage of "is instance of" in 740 #4

@marianfoo

Description

@marianfoo

It is checked whether runnable is an instance of ZIF_RUNNABLE.

o_runnable is instance of zif_runnable

This is done using "is instance of" which is only available from 7.50 onwards.
We are still on 7.4 and this displays an syntax error:
image

We´ve replaced it currently with:
rv_is_runnable = xsdbool( cl_wdy_wb_reflection_helper=>is_instance_of( object = o_runnable type_name = 'ZIF_RUNNABLE' ) and lv_name <> '\CLASS=ZCL_THREAD' ).
https://codezentrale.de/abap-funktion-instanceof/

Do we have another option here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions