How to put Download  button on Webdynpro ALV

Hi,
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?
Rgds
Vara

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

Similar Messages

  • APEX:How to put dynamic buttons in a Report.

    Hello all,
    I am creating one application in which i want two buttons in every record. I can't put it manually because it should change according to records in a table So Can anyone tell me how to put dynamic buttons in a report.
    Thanks & Regards,
    Jiten Pansara

    Hi Jiten,
    you cannot create buttons in the report, but you can always create link columns with some css class to show it as button.
    So in the both link column report attributes you will have class="button1" and class="button2"
    And in dynamic actions you need to bind the events based on your link column's jquery selector like:
    .button1
    .button2Thanks

  • How to put Skype button in adobe flash website

    how to put Skype button in adobe flash website. I got the code from "http://www.skype.com/intl/en-us/tell-a-friend/wiza​rd/" but unfortunately it can generate codes for only html websites and emails but my site is in flash and these codes are not working. Pls help me to put the Skype button on my flash website.

    Hi,
    Please refer to the following link Shopping Carts
    Regards,
    Aish

  • How to build a fieldcatalog in webdynpro alv

    Hi friends,
    how to build a fieldcatalog in webdynpro alv ? can any give me with example
    Thnx
    Kumar Srini

    fieldcatalog in the sense, we can modify the alv table column names by using below code.
    DATA LO_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
    LO_CMP_USAGE = WD_THIS->WD_CPUSE_ALV2( ).
    IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
      LO_CMP_USAGE->CREATE_COMPONENT( ).
    ENDIF.
    DATA LO_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
    LO_INTERFACECONTROLLER =   WD_THIS->WD_CPIFC_ALV2( ).
      DATA LO_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
      LO_VALUE = LO_INTERFACECONTROLLER->GET_MODEL(
      LO_VALUE->IF_SALV_WD_TABLE_SETTINGS~SET_VISIBLE_ROW_COUNT( 5 ).
    for title
    DATA: LR_TABLE_SETTINGS TYPE REF TO IF_SALV_WD_TABLE_SETTINGS.
    DATA: LR_HEADER TYPE REF TO CL_SALV_WD_HEADER.
    LR_TABLE_SETTINGS ?= LO_VALUE.
    LR_HEADER = LR_TABLE_SETTINGS->GET_HEADER( ).
    LR_HEADER->SET_TEXT( 'Waiting for Travel Advance Approval ' ).
    **lr_table_Settings->set_Read_only( abap_false ).
    DATA L_HEADER TYPE REF TO CL_SALV_WD_COLUMN_HEADER.
    DATA: LO_COLUMN1 TYPE REF TO CL_SALV_WD_COLUMN.
    LO_COLUMN1 = LO_VALUE->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'TRAVELID' ).
    L_HEADER = LO_COLUMN1->GET_HEADER( ).
    L_HEADER->SET_TEXT( 'Travel Adv ID' ).
    DATA: LO_COLUMN2 TYPE REF TO CL_SALV_WD_COLUMN.
    LO_COLUMN2 = LO_VALUE->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'PERNR' ).
    L_HEADER = LO_COLUMN2->GET_HEADER( ).
    L_HEADER->SET_TEXT( 'Employee Name' ).
    In get_column you have to pass the attribute name
    is this what you are looking?
    Regards
    Srinivas

  • How to put a button on this class?

    hello
    i had a problem and i saw the comment of  Kevininstructor,and
    i tested and i think this might help me
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/d14a09e9-9f12-48fd-bef5-914d976de7b9/save-a-file-automatically-by-code?forum=vbgeneral
    does somebody know how to put a button on that class to execute it?
    thank you

    you are right armin
    here is the code posted by Kevinisnstructor
    '****************************** Module Header ******************************'
    ' Module Name: Solution2.vb
    ' Project: VBAutomateWord
    ' Copyright (c) Microsoft Corporation.
    ' Solution2.AutomateWord demonstrates automating Microsoft Word application
    ' by using Microsoft Word Primary Interop Assembly (PIA) and forcing a
    ' garbage collection as soon as the automation function is off the stack (at
    ' which point the Runtime Callable Wrapper (RCW) objects are no longer
    ' rooted) to clean up RCWs and release COM objects.
    ' This source is subject to the Microsoft Public License.
    ' See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
    ' All other rights reserved.
    ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
    ' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
    ' WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
    #Region "Import directives"
    Imports System.Reflection
    Imports System.IO
    Imports Word = Microsoft.Office.Interop.Word
    #End Region
    Class Solution2
    Public Shared Sub AutomateWord()
    AutomateWordImpl()
    ' Clean up the unmanaged Word COM resources by forcing a garbage
    ' collection as soon as the calling function is off the stack (at
    ' which point these objects are no longer rooted).
    GC.Collect()
    GC.WaitForPendingFinalizers()
    ' GC needs to be called twice in order to get the Finalizers called
    ' - the first time in, it simply makes a list of what is to be
    ' finalized, the second time in, it actually the finalizing. Only
    ' then will the object do its automatic ReleaseComObject.
    GC.Collect()
    GC.WaitForPendingFinalizers()
    End Sub
    Private Shared Sub AutomateWordImpl()
    Try
    ' Create an instance of Microsoft Word and make it invisible.
    Dim oWord As New Word.Application
    oWord.Visible = False
    Console.WriteLine("Word.Application is started")
    ' Create a new Document.
    Dim oDoc As Word.Document = oWord.Documents.Add()
    Console.WriteLine("A new document is created")
    ' Insert a paragraph.
    Console.WriteLine("Insert a paragraph")
    Dim oPara As Word.Paragraph = oDoc.Paragraphs.Add()
    oPara.Range.Text = "Heading 1"
    oPara.Range.Font.Bold = 1
    oPara.Range.InsertParagraphAfter()
    ' Insert a table.
    Console.WriteLine("Insert a table")
    Dim oBookmarkRng As Word.Range = oDoc.Bookmarks.Item("\endofdoc").Range
    Dim oTable As Word.Table = oDoc.Tables.Add(oBookmarkRng, 5, 2)
    oTable.Range.ParagraphFormat.SpaceAfter = 6
    For r As Integer = 1 To 5
    For c As Integer = 1 To 2
    oTable.Cell(r, c).Range.Text = "r" & r & "c" & c
    Next
    Next
    ' Change width of columns 1 & 2
    oTable.Columns(1).Width = oWord.InchesToPoints(2)
    oTable.Columns(2).Width = oWord.InchesToPoints(3)
    ' Save the document as a docx file and close it.
    Console.WriteLine("Save and close the document")
    Dim fileName As String = Path.GetDirectoryName( _
    Assembly.GetExecutingAssembly().Location) & "\Sample2.docx"
    oDoc.SaveAs(fileName, Word.WdSaveFormat.wdFormatXMLDocument)
    oDoc.Close()
    ' Quit the Word application.
    Console.WriteLine("Quit the Word application")
    oWord.Quit(False)
    Catch ex As Exception
    Console.WriteLine("Solution2.AutomateWord throws the error: {0}", _
    ex.Message)
    End Try
    End Sub
    End Class

  • AS3 how to put the buttons always on top of the external swf in the code below?

    how to put the buttons always on top of the external swf in the code below?  I am  beginner use to as3, can someone help me?
    thanks, for all!!
    var Xpos:Number = 110;
    var Ypos:Number = 180;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
    removeChild(loader);
    var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
    loader.load(newSWFRequest);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btn listeners
    eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
    stingray.addEventListener(MouseEvent.CLICK, btnClick);
    demon.addEventListener(MouseEvent.CLICK, btnClick);
    strongman.addEventListener(MouseEvent.CLICK, btnClick);

    use:
    var Xpos:Number = 110;
    var Ypos:Number = 180;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
    removeChild(loader);
    var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
    loader.load(newSWFRequest);
    loader.x = Xpos;
    loader.y = Ypos;
    addChildAt(loader,0);
    // Btn listeners
    eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
    stingray.addEventListener(MouseEvent.CLICK, btnClick);
    demon.addEventListener(MouseEvent.CLICK, btnClick);
    strongman.addEventListener(MouseEvent.CLICK, btnClick);

  • How to put a check boc in alv grid

    hi gurus i  need to put a checkbox in alv grid output
    not a pop up window
    can anybody inform me
    thank you
    raghavendra

    Hi,
    check these threads
    How can I display a checkbox in ALV? http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    Regards

  • How to add a button on the ALV LIST pop up

    Hi ,
    Can any one help me to add a button on the ALV list which is a pop up using ABAP Objects.
    Thanks in advance.
    Regards,
    Kavya.

    HI ,
    I want to add a push button on the ALV list out put which is comming as a pop up and I want this using classes and methods.
    I have got a method IF_SREL_BROWSER_COMMANDS~ADD_BUTTONS from class cl_gos_attachment_list  but still I am unable to get any additional button on the output ALV popup.
    Please help.
    Regards,
    Kavya.

  • How to use selection buttons in an ALV created without abap objects?

    Hi, I use an alv created without ABAP Objects to show some information. Can I introduce inside the alv, the top buttons to select all rows / none row? And the second question, how may I introduce lateral buttons in the ALV to select indidividual rows?
    Thanks!

    HI
    i think you use REUSE_ALV_LIST_DISPLAY or REUSE_ALV_GRID_DISPLAY FMs.
    Try to calling the function in this way
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
    *      I_INTERFACE_CHECK              = ' '
    *      I_BYPASSING_BUFFER             =
    *      I_BUFFER_ACTIVE                = ' '
           i_callback_program             = 'YOURREPORT'
           i_callback_pf_status_set       = 'SET_PF_STATUS'
           i_callback_user_command        = 'USER_COMAND'
    *      I_STRUCTURE_NAME               =
           is_layout                      =  ls_layout
           it_fieldcat                    =  fieldcat
    *      IT_EXCLUDING                   =
    *      IT_SPECIAL_GROUPS              =
    *      IT_SORT                        =
    *      IT_FILTER                      =
    *      IS_SEL_HIDE                    =
    *      I_DEFAULT                      = 'X'
           i_save                         = 'A'
          is_variant                     = gt_variant
          it_events                      = event_tab
    *      IT_EVENT_EXIT                  =
    *      IS_PRINT                       =
    *      IS_REPREP_ID                   =
    *      I_SCREEN_START_COLUMN          = 0
    *      I_SCREEN_START_LINE            = 0
    *      I_SCREEN_END_COLUMN            = 0
    *      I_SCREEN_END_LINE              = 0
    *    IMPORTING
    *      E_EXIT_CAUSED_BY_CALLER        =
    *      ES_EXIT_CAUSED_BY_USER         =
           TABLES
             t_outtab                     = tb_output
          EXCEPTIONS
            program_error                  = 1
            OTHERS                         = 2.
    ENDFORM.                    " LISTA
    where
    'SET_PF_STATUS'
    'USER_COMAND'
    are two form like this.
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZSTANDARD'. " EXCLUDING rt_extab.
    ENDFORM.                               " SET_PF_STATUS
    FORM user_comand USING r_ucomm     LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&CPR'.
        WHEN 'YOUR CODE FUNCTION'
    endcase.
    I hope it can help you.
    Bye
    enzo

  • How to put an input field in ALV

    hi
    how to put an input field in ALV

    Hi
    There are 2 ways wherein you can make a field as input enabled.
    One is by setting the edit = 'X' in the fieldcatalog for that field.
    Loop at l_fcat.
    if l_fcat-fieldname = 'FIELD'.
    l_fcat-edit = 'X'.
    modify l_fcat.
    endif.
    Endloop.
    Second method is by using Styles by which you enable a field, disable a field or make it a pushbutton etc..Using Styles can be found in any basic document on ALV.
    Regards
    Navneet

  • How to remove Download button on photo details page

    I would like to remove the download button from the Photos detail page before I publish my web site. How do I do this? Thanks!

    Welcome to the Apple Discussions. Go to the Inspector/Photos/Photos pane and set the photos download size to "none".
    Click to view full size
    OT

  • How to add download button to safari toolbar?

    Does anybody know how to add the download button to safari toolbar?

    Here are the steps you've been given in picture form:
    Do View menu > Customize ToolBar:
    Doing so brings up this:
    Find the Downloads icon (in the second row in the image) and drag it to the toolbar.

  • How to implement download button?

    hi all,
    i want to download the sql result, take a example:
    i got the result of sql below:
    select * from temp;
    and i create a button on this page and i want to save the result on my computer and how to set this button's attributes?
    and i dow't want to directly use the Report Export (Enable CSV output)in the Report Attributes.
    maybe i can assign the URL target of the Report Export to this button?
    http://192.168.3.97:7777/pls/apex/f?p=103:12:1115109474940057:FLOW_EXCEL_OUTPUT_R2629207130776195_en-us
    or call this FLOW_EXCEL_OUTPUT_R2629207130776195_en-us using javascript?
    pls help me.
    PPMonkey

    Hi,
    You can create a report that exports automatically to CSV - see Downloading of Selected Records to the Excel (this uses checkboxes for filters, but ignore those bits!)
    Andy

  • How to add a button to an alv standar report

    Hi all,
    I've got a requiremnt to modify the behaviour of the edit button of the ALV in TX vfx3.
    When the edit button pressed, the requiered behaviour is to navigate to a Z TX. Is it possible to edit the ALV without creating a new Z alv? Just changing the standard?
    Edited by: Iñaki Nolte Usparicha on Dec 29, 2010 12:18 PM

    Hi Iñaki, you have to copy (using transaction SE41) Status-GUI "standard" from program SAPLSALV, with the same name as our program. Delete all unnecessary components and add your custom button.
    In the program you have to add:
    Form F_SET_PF_STATUS USING rt_extab TYPE slis_t_extab.
         SET PF-STATUS 'STANDARD'.
    Endform.
    Form f_user_command USING      r_ucomm LIKE sy-ucomm
                                                                  rs_selfield TYPE slis_selfield.
         CASE r_ucomm.
                  WHEN '%NF'. "NF is the name of the button
                        PERFORM f_do_something.
           ENDCASE.
    Endform.

  • How to disable Print button on WebDynpro ABAP ALV

    In WebDynpro ABAP, a standard menu appears around the ALV,  that has a PRINT button and an EXPORT button.
    Is there anyway to disable those buttons????
    Thanks
    John

    Hi John,
    Check the interface if_salv_wd_std_functions. It contains methods which are used to hide the standard ALV toolbar buttons.
    Also refer : Removing "print version" button in alv
    How to hide Print and Filter option from dynamic ALV

Maybe you are looking for

  • How to load itunes on my PC ?

    I can't load itunes on my PC, I don't understand ...

  • DX735 system restore to in-box. Won't install Windows Touch.

    Restored my system, Windows 7, right back as it was in the box.  Now I cannot download the Windows Touch Screen package.  It ran before I reformatted.  Now I get this message. To install Microsoft Touch Pack for Windows 7 you need a computer with a t

  • Forms 6i debug and call_form

    In Forms 6i, I have a form that calls another form using call_form. When debugging, I can set breakpoints in the calling form, but there seems to be no way to continue debugging into the called form. Or is there...? Can you help...?

  • No matter what I try install the Icon Pops up but won't Open?!

    Hi- I have been trying to install Frostwire.. I have had it on my computer before but I deleted it because I thought it was making my computer slow. Now when I download it.. it goes through the whole instilation process the icon comes up in the botto

  • HT5527 IOS does not allow selection of downgrade to 5GB

    Trying to downgrade from 40GB to the free 5GB is apparently not allowed for IOS. I check that option, the checkmark appears to the right, but when I tap "Done" nothing happens. I can apparently go to 20 GB for $20. 5GB is free for the Mac, why not fo