Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Problem when pressing ENTER key in a editable field ALV

$
0
0

Hi expertes,

 

I'm having a problem in the moment that I try to validate the information inserted into  the editable field in my ALV, the dump is the next one

 

ategoría              Error de programación ABAP

rr.tmpo.ejec.         GETWA_NOT_ASSIGNED

rograma ABAP          CL_GUI_ALV_GRID===============CP

pplication Component  BC-SRV-ALV

echa y hora           22.12.2015 19:02:36

Texto breve

    Field symbol has not yet been assigned.

¿Qué ha sucedido?

    Error in the ABAP Application Program

    The current ABAP program "CL_GUI_ALV_GRID===============CP" had to be

     terminated because it has

    come across a statement that unfortunately cannot be executed.

Anál.errores

    You attempted to access an unassigned field symbol

    (data segment "-1").

    This error may occur if

    - You address a typed field symbol before it has been set with

      ASSIGN

    - You address a field symbol that pointed to the line of an

      internal table that was deleted

    - You address a field symbol that was previously reset using

      UNASSIGN or that pointed to a local field that no

longer exists

You address a global function interface,

respective function module is not active

not in the list of active calls. The lis

can be taken from this short dump.

 

I do not why, I checked a lot of time my fieldcat and is ok because I can display my ALV.

 

I notice that this dump is showed when I inserted this method

 

 

CALL METHOD go_grid->register_edit_event

           EXPORTING

             i_event_id = cl_gui_alv_grid=>mc_evt_enter.


If I do not insert this method there is no problem, but the enter key does not work.


this is my code


class lcl_event_receiver definition FINAL.

 

     public section.

       methods:

 

         handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid

                 IMPORTING er_data_changed.

   endclass.


CALL METHOD go_grid->set_table_for_first_display

           EXPORTING

             is_layout       = sa_layout

           CHANGING

             it_outtab       = it_avanfis

             it_fieldcatalog = lt_fieldcatlog.

 

 

         CALL METHOD go_grid->set_ready_for_input

           EXPORTING

             i_ready_for_input = 1.

 

         CALL METHOD go_grid->register_edit_event

           EXPORTING

             i_event_id = cl_gui_alv_grid=>mc_evt_enter.

 

         CREATE OBJECT go_event.

         SET HANDLER go_event->handle_data_changed FOR go_grid.



METHOD handle_data_changed.

     BREAK-POINT.

   ENDMETHOD.



Does anyone can tell me what's going on please??


Kind regards.


Gibram Habib.


Viewing all articles
Browse latest Browse all 3363

Trending Articles



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