Quantcast
Channel: SCN : Popular Discussions - ABAP in Eclipse
Viewing all articles
Browse latest Browse all 1215

Quick assist proposal: Declare local variable

$
0
0

Hello,

 

I have the following situation, I want to instantiate the variable lo_alv with the following code:

 

METHOD display_relevant_articles.

   lo_alv = NEW cl_gui_alv_grid( cl_gui_container=>screen0 ).

ENDMETHOD.

 

When I execute the quick assist proposal, I get only the following code, despite there is a clear definition with the NEW cl_gui_alv_grid code. The result is only:

DATA: lo_alv TYPE any.

 

I would expect the following code:

DATA: lo_alv TYPE REF TO cl_gui_alv_grid.

 

In case of a function module the quick assist declares the variable with the correct type.

 

Is it possible to get this also for references to classes?

 

Regards


Viewing all articles
Browse latest Browse all 1215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>