Skip to Content
avatar image
Former Member

Need ALV Example

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Jun 28, 2010 at 02:25 PM

    here you go

    SAP List Viewer (ALV) [original link is broken]

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 28, 2010 at 02:13 PM

    >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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 29, 2010 at 07:41 AM

    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] !

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 29, 2010 at 09:37 AM

    Thank you very much

    Add comment
    10|10000 characters needed characters exceeded