‎2008 Aug 17 7:52 AM
Hi,
i watch code that use method and i dont understand it.
gx_table ?= cl_abap_typedescr=>describe_by_data( itab )
1. describe_by_data is a method so why i don't use it like fm
with call Method with import and export .
2. what is this ?= sign .
Regards
‎2008 Aug 17 8:00 AM
> i watch code that use method and i dont understand it.
>
> gx_table ?= cl_abap_typedescr=>describe_by_data( itab )
>
> 1. describe_by_data is a method so why i don't use it like fm
> with call Method with import and export .
>
that is another way of calling methods.
the same method can be called like this also..
CALL METHOD cl_abap_typedescr=>describe_by_data
EXPORTING
p_data = itab
RECEIVING
p_descr_ref = gx_table.
> 2. what is this ?= sign .
>
? is used of casting.
‎2008 Aug 17 7:58 AM
‎2008 Aug 17 8:00 AM
> i watch code that use method and i dont understand it.
>
> gx_table ?= cl_abap_typedescr=>describe_by_data( itab )
>
> 1. describe_by_data is a method so why i don't use it like fm
> with call Method with import and export .
>
that is another way of calling methods.
the same method can be called like this also..
CALL METHOD cl_abap_typedescr=>describe_by_data
EXPORTING
p_data = itab
RECEIVING
p_descr_ref = gx_table.
> 2. what is this ?= sign .
>
? is used of casting.