Skip to Content
avatar image
Former Member

Can anyone please simply this statement.

eo_field_catalog ?= cl_abap_tabledescr=>describe_by_data( p_data = it_flight ).

We write this statement in feeder class for list or search GUIBB.

Why wide casting is compulsory and don't we have to do narrow casting before doing wide casting?

Thanks in advance,

Amey

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 20, 2017 at 07:03 AM

    This is how I simplified it and its working

    DATA: lo_ref type REF TO CL_ABAP_TYPEDESCR.
    lo_ref = cl_abap_tabledescr=>describe_by_data( p_data = it_flight ).
    eo_field_catalog ?= lo_ref.

    Add comment
    10|10000 characters needed characters exceeded