Skip to Content
author's profile photo Former Member
Former Member

How to put Download button on Webdynpro ALV


I used SELECT_OPTIONS WDR_SELECT_OPTIONS as webdynrpo components in my ALV report.I also need download option on the output.I am using just one main view to display the results.

Also ,Output is always defaulting to 5 rows only.. Where can I change this default?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 14, 2009 at 05:50 PM

    I'm a little confused because you talk about both Select-Options and ALV. Which are you wanting to download and which is only dispaying 5 rows. I'm going to assume that you mean the ALV and the mention of Select-Options is actually inmaterial.

    The ALV Component already has an export button built into it standard. Were you looking for something else - and if so what kind of functionality did you want.

    To adjust the number of visible rows in the ALV use the configuration model interface that is exposed by the component usage: cl_salv_wd_config_table.. Here is an example. You will need to adjust the name of the component usage for the name you actually used. I used ALV - then wd_this->wd_cpuse_alv. You would need to adjust this to wd_this->wd_cpuse_<your name> and wd_this->wd_cpifc_<your name>.

    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( ).
      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( ).
      l_table->if_salv_wd_table_settings~SET_VISIBLE_ROW_COUNT( 20 ).

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.