2009 Jan 17 10:10 AM
Moderator message: please do not post subject in all capitals
Dear friends
i have created report for transfering data from one database table to another database table i.e. detail table.
after executing Master data list will appear and after clicking on master data record it shows detail data with edit fields where i can enter my own data and after clicking save button i can pass that data to database table and at the same time data goes in display mode. I want that enterd data not to delete bye delete row button please tell me how can i avoid deletion of data.
Thanks
regards
Rohan
Edited by: Matt on Jan 19, 2009 1:51 PM
2009 Jan 17 10:41 AM
where is this delete row button?
Are talking about table maintenance in sm30. or in some screen in ur report or module pool.what u can do is got o screen painter and remove or disable this button
2009 Jan 17 10:50 AM
Its my oop report
where button should be there but it should not allow to delete the row which is in display mode
2009 Jan 17 12:34 PM
Hi ,
You csn hide the Delete button so that it will not delete the line...
Please have a look at this example ...BCALV_EDIT_05. You need to append exclude table and pass in the set_table_for_first_display method like below...
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
append ls_exclude to t_exclude.
call method g_grid->set_table_for_first_display
exporting is_layout = gs_layout
it_toolbar_excluding = lt_exclude
changing it_fieldcatalog = gt_fieldcat
it_outtab = gt_outtab[].
hope this helps you,.
Raj
2009 Jan 19 12:52 PM
2009 Jan 30 11:36 AM