Skip to Content
avatar image
Former Member

OOPS ALV - Deleting from OutTab Editing the OutTab

Similar to post [Editing the OutTab|OOPS ALV - 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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 03, 2008 at 07:04 PM

    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

    Add comment
    10|10000 characters needed characters exceeded