Skip to Content
0
Former Member
May 02, 2014 at 01:47 PM

MOVE_CAST_ERROR: <FS> to Object ?

68 Views

Hi Experts,

I have a minor issue during my exceution program. The Cast of a reference < FS> of an object TYPE REF TO ZCL_FI_DA to an object TYPE REF TO ZCL_SC_FACTORY is not possible.

I have this code:

FIELD-SYMBOLS <fs_oclass> TYPE any .

ASSIGN (classname) TO <fs_oclass> .

CHECK <fs_oclass> IS ASSIGNED .

IF <fs_oclass> IS INITIAL .

CREATE OBJECT <fs_oclass> TYPE (classname) . " classname = ZCL_FI_DA

ENDIF .

object ?= <fs_oclass>. "==> DUMP !

And I have this issue:

Have your got any idea to solve it?

Best regards.

Attachments

Screenshot.jpg (94.5 kB)