cancel
Showing results for 
Search instead for 
Did you mean: 

Edit a selected row in an ALV

Former Member
0 Kudos

Hi everyone,

How to edit a particular row in an ALV based on a lead selection??

lo_el_sflight = lo_nd_sflight->get_lead_selection( ).

Thanks and regards,

Vijay vikram.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

steps to do this.

1. on wddoinit method get all column by using

 

if_salv_wd_column_settings~get_columns it will return all column

2. loop at all column make then input field by using class cl_salv_wd_uie_input_field

3. once you make column inputfield then use method

 

       use method  set_read_only_fieldname pass a flag type attribute

4. now  editibilty of column bind with this attribute.

5. on lead select event of alv you can change this attribute value as per your need

award point if helpful

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Hi Vijay,

See if this document helps you How to edit conditionally row of a ALV table in Web Dynpro for ABAP

Cheers,

Amy