abapOpenChecks icon indicating copy to clipboard operation
abapOpenChecks copied to clipboard

CONV full type definition when not needed

Open larshp opened this issue 7 years ago • 0 comments

example:

    DATA(lt_plants) = zcl_factory=>get_instance( )->get_something( )->get_relevant_plants(
         it_plant_range = CONV zif_something_else=>ty_werks_range_tt( it_werks )
         it_region = CONV zif_something=>ty_region_range_tt( it_region ) ).

can be changed to

    DATA(lt_plants) = zcl_factory=>get_instance( )->get_something( )->get_relevant_plants(
         it_plant_range = CONV #( it_werks )
         it_region = CONV #( it_region ) ).

in case the importing parameters are fully typed

larshp avatar Jul 27 '18 05:07 larshp