Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Former Member
Former Member replied

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 View this answer in context
Not what you were looking for? View more on this topic or Ask a question