cancel
Showing results for 
Search instead for 
Did you mean: 

Disable ALV

Former Member
0 Kudos

Hi,

I had a ALV disabled and I can not select any line.

How can I "undo" this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Set the attribute enabled (layout of the web dynpro component) for the view ui container of the ALV.

Regards.

Answers (2)

Answers (2)

Former Member
0 Kudos

hi luiz,

you can use a method to delete the selected row, which is

lr_model->if_salv_wd_std_functions~set_edit_delete_row_allowed(value = abap_true).

where lr_model is the reference to your alv configuration model.

best regards,

srini.....

Former Member
0 Kudos

If you are unable to select any line, I assume your selection mode has been set to none. You need to set the selection mode to single or multi depending on your requirement. Use the method:

l_alv_model->if_salv_wd_table_settings~set_selection_mode( )

to set the selection mode, after which you should be able to select a line. (l_alv_model is your reference to the ALV model ). Also, in the context node, set the "selection" as 0..n.

Regards,

Nithya

Former Member
0 Kudos

Hi,

My Seletion in the Context Node was 1..0, but I can not change to 0,,N.

Must I create the same context node again?

Former Member
0 Kudos

Selection of 0..1 is fine if you want single line selection. In this case you will not be able to select multiple lines, but single selection should work fine.

Regards,

Nithya

Former Member
0 Kudos

Now I can select the line, but I can not erase the entry.

Do you know a source that I can define to erase the selected the entry?

p.s.:Before the changes, I got erase the first entry.

Former Member
0 Kudos

Hello,

See these: [/people/sap.user72/blog/2006/01/09/wda--user-defined-functions-in-alv], [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d] and [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf20e84f-0901-0010-fe9e-91d100013a59].

Regards.