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: 

OOPS ALV - Deleting from OutTab Editing the OutTab

mike_mcinerney
Participant
0 Kudos

Similar to post [Editing the OutTab|; from earlier today

I want to use cl_gui_alv_grid as a pretty wide open internal table editor.

In the PBO, I


* create the custom container and grid (if they do not exist)
* call method g_grid->register_edit_event                      " < -- Thanks
     exporting 
          i_event_id = cl_gui_alv_grid=>mc_evt_enter.
* set the layout variable edit to u2018Xu2019
* populate the outputtable "myinternaltable"  and  
  call method set_table_for_first_display method, 
       Exporting
            i_structure_name =  u2018myDDICstructu2019
            Is_Layout = my_layout
       Changing
            it_outtab = myInternalTable.

When the grid comes up, I can edit the display, and changes do appear on the itab, but delete rows are not removed from the outtab.

Is there an easy way to remove the "Delete Rows" from the outtab as well (or otherwise keep track of them).

Thanks...

...Mike

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos

Hello Mike

You need to call method go_grid->check_data_changed at PAI of the dynpro to update the backend (= itab in ABAP program) with the changes on the frontend (= grid control).

For more details have a look at and the threads mentioned therein.

Regards

Uwe

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos

Hello Mike

You need to call method go_grid->check_data_changed at PAI of the dynpro to update the backend (= itab in ABAP program) with the changes on the frontend (= grid control).

For more details have a look at and the threads mentioned therein.

Regards

Uwe

0 Kudos

Thanks Ewe,

go_grid->check_data_changed

was just what I needed.

...Mike