Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Field symbol has not been assigned yet in register_edit_event - ALV

anuradha_wijesinghe
Participant
0 Kudos

I have two ALV s in same module pool screen. These two ALV s has editable check boxes.

1st one is ok fine with clicking check boxes. But when im clicking a check box in 2nd alv, it brings the error dump with "Field symbol has not been assigned yet"

This Error Occurred with register_edit_event in 2nd alv.

Please Explain why is this Happened?? Code segment are bellow.

This is 1st ALV

_____________________________________________________________

call method p_gv_alv->set_table_for_first_display

     exporting

       i_save                        = 'U'

       is_layout                     = gv_layout

*     it_toolbar_excluding          = p_gv_excl_functions

     changing

       it_outtab                     = p_itab

       it_fieldcatalog               = p_gv_fieldcatalog

     exceptions

       invalid_parameter_combination = 1

       program_error                 = 2

       too_many_lines                = 3

       others                        = 4.

   call method p_gv_alv->set_ready_for_input

     exporting

       i_ready_for_input = 1.

   call method p_gv_alv->register_edit_event

     exporting

       i_event_id = cl_gui_alv_grid=>mc_evt_modified.

   create object event_receiver.

   set handler: event_receiver->handle_data_changed_finished for p_gv_alv.\



This is 2nd ALV

________________________________________________________________


call method q_gv_alv->set_table_for_first_display

     exporting

       i_save                        = 'U'

       is_layout                     = gv_layout_opt

*     it_toolbar_excluding          = q_gv_excl_functions

     changing

       it_outtab                     = q_itab

       it_fieldcatalog               = q_gv_fieldcatalog

     exceptions

       invalid_parameter_combination = 1

       program_error                 = 2

       too_many_lines                = 3

       others                        = 4.

   call method q_gv_alv->set_ready_for_input

     exporting

       i_ready_for_input = 1.

  call method q_gv_alv->register_edit_event

    exporting

      i_event_id = cl_gui_alv_grid=>mc_evt_modified.

   create object event_receiver.

   set handler: event_receiver->handle_data_changed_finished for q_gv_alv.

3 REPLIES 3

nikolayevstigneev
Contributor
0 Kudos

Hi, Anuradha!

I have a strong suspicion that dump actually happens in q_gv_alv->set_ready_for_input.

Please have a thorough look at your table q_itab and fieldcatalog q_gv_fieldcatalog structures (or share them). Probably something's wrong with fieldcatalog. Do you fill it manually? Or it is filled basing upon some structure?

You can make a quick debug of both methods (set_ready_for_input and register_edit_event) to be sure about the place of dump. I guess after that you'll find out the reasons of it.

former_member289261
Active Contributor
0 Kudos

Hi,

There is a problem with your field catalog.

Check it if the fieldnames that are provided are correct

and

In the event handler method, check if the field name used is correct.

Regards,

Ashish

Former Member
0 Kudos

Dump information will be pointing to the part of code which is responsible for this error.

Can you share the screenshot of that.