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

error - METHOD CL_FB_FUNCTION_EDITOR

Former Member
0 Likes
387

Hello Experts,

I want to check the syntax of function by using method below.

CALL METHOD CL_FB_FUNCTION_EDITOR->ed_check

EXPORTING

funcname = 'ZTEST1'

but when i call method source_instance->get_source_tab

(in the method CL_FB_FUNCTION_EDITOR) i receive error message

Runtime errors OBJECTS_OBJREF_NOT_ASSIGNED

Exception CX_SY_REF_IS_INITIAL

What Do I have to do to resolve this problem ?

Thanks in advance

Martin

3 REPLIES 3
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
359

Hi,

If you are calling a static method of the class CL_FB_FUNCTION_EDITOR then you should be using "=>" instead of -> make sure you are using that since you have put -> symbol I am confused. Yo uare getting the exception when you call the method or for the metod you get this exception.

Regards,

Sesh

Read only

0 Likes
359

Hi,

You are getting this exception since SOURCE_INSTANCE attribute of the class is initial. This source_instance needs to populated. You need to call method create_source_object on the attribute "editor_instance" of this class.

Regards,

Sesh

Read only

0 Likes
359

Please, could you give me example

Thanks Martin