Skip to Content
0
May 12, 2013 at 08:42 PM

CAST with deep structure

84 Views

I'm trying to do a generic code but I'm having trouble with deep structure,

I have different class with different deep structure exporting parameters,

It is possible to do a "CASTING" with deep structure? Or have another way to solve my problem?


Here is the problem:


FIELD-SYMBOLS: <fs_output> TYPE ANY.
DATA: obj_class TYPE REF TO object.

CREATE OBJECT obj_class TYPE (str_proxy).

<fs_output> = wl_output1-mt_confirma_proc_palete_transf-num_id .

CALL METHOD obj_class->(str_method)
EXPORTING
output = <fs_output>. "--> CX_SY_DYN_CALL_ILLEGAL_TYPE