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: 

DISPLAY AND DELETE ROW ISSUE

former_member659396
Participant
0 Kudos
125

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

5 REPLIES 5

Former Member
0 Kudos
88

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

0 Kudos
88

Its my oop report

where button should be there but it should not allow to delete the row which is in display mode

0 Kudos
88

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

matt
Active Contributor
0 Kudos
88

Please do not post subject in all capitals

former_member659396
Participant
0 Kudos
88

wd