Application Development and Automation 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: 
Read only

Editable ALV in Oops

Former Member
0 Likes
582

i have written ALV Editable program using Oops.

how/where to write code for <b>Delete Row</b> ( - )(minus symbol button)

Regards,

Ramesh.

i have written ALV Editable program using Oops.

how/where to write code for <b>Delete Row</b> ( - )(minus symbol button)

Regards,

Ramesh.

4 REPLIES 4
Read only

Former Member
0 Likes
555

in the pai

case ok_code

when 'DELE'

...............

end case.

check which function code it returns

in the code

use method get_selected_rows of cl_gui_grid

use its return index to delete a row from your desired internal table comparing index.

iternal table which is send to grid object

Read only

Former Member
0 Likes
555

Hi,

Use get_selected_rows

which returns the index of the table which has given for output

and the you write a delete commnad on the table where index = index fretrived from get_selected_rows

and again use set_table_first_display

theis will refresh the screen with new data (i.e with out the deleted row)

Regards,

siva chalasani

Read only

0 Likes
555

ihave not added <b>delete botton</b> it is default button comming...

so if i write sy-ucomm.

un user command method.. or in PAI

it is not triggering???

Read only

Former Member
0 Likes
555

ok