Skip to Content
avatar image
Former Member

Standard Program - WDT_ALV

Hi,

Upon Execution this program you will get selection screen and out put alv in the same screen.

is there any way to make it first column as url link & let me know how to find which record is selected from the list.

Appreciate with your help.

Thanks

****Poorna Poorna****

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jul 09, 2009 at 05:55 PM

    Since you state that this is a standard application, then you should consider using the Enhancement Framework to make such a change.

    http://help.sap.com/saphelp_nw70/helpdata/en/c5/f4b9422e0fb911e10000000a1550b0/frameset.htm

    You will likely need one of the method enhancements at the controller level so that you can interact with the ALV model object. You will have to call the APIs of the ALV model to adjust the rendering of the ALV.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 09, 2009 at 05:58 PM

    Hi,

    Thanks for the reply.

    Actually i have copied this program into some Z-program. Reason i given this program is everybody can see in their own system.

    Now can you tell me some idea or useval code.

    Thanks

    Suresh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 09, 2009 at 06:02 PM

    Yes - as when i click on this cell i wanted to perform some task.

    My question:

    How do we know which record selected in alv and how to make it cell as link.

    Thanks

    *****Poorna****

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 09, 2009 at 06:03 PM

    Plz explain me which respect to this WDT_ALV standard program.

    *****Poorna*****

    Add comment
    10|10000 characters needed characters exceeded

    • The code for hiding a column?

      data: l_ref_cmp_usage type ref to if_wd_component_usage.
        l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
        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( ).
        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( 'CLIENT' ).
        l_column->set_visible( cl_wd_uielement=>e_visible-none ).