cancel
Showing results for 
Search instead for 
Did you mean: 

Need ALV Example

Former Member
0 Kudos

Hi,

I have only a litter knowlegar about the ALV of webdynpro.

I did a webdynpro program using SALV_WD_TABLE.and using Mapping between webdynpro program and SALV_WD_TABLE.

The data is displayed in ALV.

But,in ALV, I can not select other line except the no. 1.

I want some fields to be link fields or checkbox fields.

I think some data is necessary in FUNCTION_ELEMENTS.

Maybe I need an example for ALV.

Wolud you like to help me?

Thank you & best regards.

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

here you go

[original link is broken]

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you very much

blent_evli
Explorer
0 Kudos

Hi !

Please, Click [Using an ALV Companent in Web Dynpro for Abap in 7 Stepu2019s|http://docs.google.com/present/edit?id=0AVLYHZViwIbhZGQ3MnNxd2hfMjdocndrY3NmYw&hl=en] !

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>But,in ALV, I can not select other line except the no. 1.

In what method did you perform your ALV initialization? It sounds like you might have used WDDOMODIFYVIEW and the logic is firing on ever server event. Hence the resetting of the lead selection.

>I want some fields to be link fields or checkbox fields.

That is very much possible. Via the ALV model class you can alter the cell editor for a column. Here is an example using the DDLB:

data: l_ref_cmp_usage type ref to if_wd_component_usage.
  l_ref_cmp_usage =   wd_this->wd_cpuse_alv_adv( ).
  if l_ref_cmp_usage->has_active_component( ) is initial.
    l_ref_cmp_usage->create_component( ).
  endif.

  data l_salv_wd_table type ref to iwci_salv_wd_table.
  l_salv_wd_table = wd_this->wd_cpifc_alv_adv( ).
  data l_table type ref to cl_salv_wd_config_table.
  l_table = l_salv_wd_table->get_model( ).

  data l_column type ref to cl_salv_wd_column.
  l_column = l_table->if_salv_wd_column_settings~get_column( 'STATUS' ).
  data ddlb type ref to cl_salv_wd_uie_dropdown_by_key.
  create object ddlb
    exporting
      selected_key_fieldname = 'STATUS'.
  ddlb->set_read_only( abap_false ).
  l_column->set_cell_editor( ddlb ).

>I think some data is necessary in FUNCTION_ELEMENTS.

Sorry, but I have no idea what you are refering to here.

>Maybe I need an example for ALV.

There are lots available in the system. Search for components with ALV in the name. Also plenty of examples avialble here in SDN in the how-to guides, the forums and the WIKI.