‎2007 Jan 12 9:19 AM
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
‎2007 Jan 12 9:27 AM
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
‎2007 Jan 12 9:35 AM
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
‎2007 Jan 12 9:57 AM