ALV on dynpro

Hi everybody,
I want to create an alv list instead of a tablecontrol on a normal dynpro in an abap program.
Any ideas how to do this ?
regards joerg

sorry..
this was the wrong forum should be in abap forum.

Similar Messages

  • Action (navigation) when click on Hyperlink field in ALV web dynpro

    Hi - I had a question about Hyperlink in ALV web dynpro and it was answered in  Link: [web dynpro abap ALV link to (hyperlink);
    Now I need to click the Hyperlink field and navigate to another screen.
    i.e. I have a Object ID (PR Number) when I click the PR number I need to open the PR Document also another case is at the item level if the PR has more than one item I'm showing the word "MULTIPLE" so if the user click on Multiple I need to show all the items (material) in another ALV table that I already create.
    Thanks for your help!
    Jason P-V

    Hi,
    As per my understanding, there are PR number and Material and other columns in the SAME ALV table right.
    There is a ONCLICK event for ALV not for the VIEWCONTAINTERELEMENT.
    In the View where you have the ALV as component usage under view's properties, you have ALV usage right.
    Now, under the METHODS tab of the ALV, implement an event
    Onclick   EventHandler  ONCLICK(press F4) of that ALV.
    Now the Click event is implemented for that ALV. When ever you click on any column(Hyperlink) this gets called.
    Here there are parameters that you need to use it. R_PARAM has both the index and the element.
    Based on the COLUMN you can call the respective event.
    The index that you have clicked i shown from r_param->index and you can also know ATTRIBUTE name(column name).
    If attribute eq 'PRNUMBER'
    *call the Purchase requistion transaction
    elseif attribute eq 'MATNR'.
    *call the popup for other ALV as component usage to display item details.
    endif.
    Refer this Article -
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8&overridelayout=true
    Hope this is clear.
    Regards,
    Lekha.
    Edited by: Lekha on Sep 26, 2009 12:57 PM

  • Number of rows in the ALV, Web - dynpro

    Hi all
    I have an ALV in my ABAP web-dynpro. For this alv i would like to set the visible rows at the same number as there are rows in the internal table which is the supplier for the ALV.
    In the TABLE component of the WEBDYNPRO you have a visible property who is controlling this.
    I saw that for the ALV you had the same. Of the class IF_SALV_WD_TABLE_SETTINGS there is a method SET_VISIBLE_ROW_COUNT. So i thought this is the one where i can control it.
    So when the table has 10 rows, 10 rows will be displayedon the screen and when the table has 20 rows, 20 rows will  be displayed on the screen.
    But this is not the case.
    Is there something i forget?
    Kind regards,
    Anton Pierhagen

    METHOD wddoinit .
      DATA: lo_column TYPE REF TO cl_salv_wd_column,
            lo_cmp_usage TYPE REF TO if_wd_component_usage,
            lo_interfacecontroller TYPE REF TO iwci_salv_wd_table,
            lt_functions TYPE salv_wd_t_function_std_ref,
            ls_function TYPE salv_wd_s_function_std_ref,
            lo_function TYPE REF TO cl_salv_wd_function_std,
            lo_data TYPE REF TO if_wd_context_node,
            lo_element TYPE REF TO if_wd_context_element,
            lv_index TYPE i,
            lo_model TYPE REF TO cl_salv_wd_config_table.
    Retrieve ALV object
      lo_cmp_usage = wd_this->wd_cpuse_alv( ).
    Initial? Create new
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
    Interfacecontroller
      lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
      lo_model = lo_interfacecontroller->get_model( ).
    Get main NODE DATA, this is the node which supplies the ALV
      lo_data = wd_context->get_child_node( name = 'DATA' ).
    How many rows has the table?
      lv_index = lo_data->GET_ELEMENT_COUNT( ).
    Not more then 20 rows on the screen
      IF lv_index GT 20.
        lv_index = 20.
      ENDIF.
    Put the number of rows in the screen
      lo_model->if_salv_wd_table_settings~set_visible_row_count( lv_index ).
    should the screen set to freeze?
      lo_model->if_salv_wd_table_settings~set_fixed_table_layout( abap_true ).

  • Need help in ALV web dynpro

    Hi all,
    I need help in the web dynpro ALV.
    I have an ALV generated dynamically. On the ALV, there is filter and settings link on the extreme right of the alv header.
    How is it possible to get them left align after the export button ?
    I want to maitain some gap between the export button, filter and settings.
    Please give me inputs.
    Thanks in Advance.

    Hi Jatra,
    I am working on an ALV table in a standard Web Dynpro ABAP application.
    The business requirement is to hide the header for the ALV table.
    The header has a dropdown to choose u201CStandard Viewu201D and 2 options: Filter and Settings.
    The footer for the ALV table containing the Row and Column numbering also needs to be hidden.
    I am looking at the IF_SALV_WD_TABLE_SETTINGS to find the relevant methods to hide the header and footer.
    Please let me know if I am on the right track and if there is an alternate way to do this through changing the layout of the ALV table. I tried to hide the header and footer manually via the layout but am unable to do so, as the ALV table is just displayed as ViewContainerUI Element.
    Please help me as to how to hide the header and footer as I am new to ALV in WDA.
    Thanks and Regards.

  • ALV Web Dynpro for ABAP enable/disable single row

    hi all,
    is it possible to change the layout of one single row or cell in a alv (component SALV_WD_TABLE) web dynpro for abap?
    i managed to get columns to be editable using the tutorial "Editing ALV in Web Dynpro for ABAP".
    but it is not described how to change a single row or cell in this tutorial. also the example programs i found do not get into this subject.
    did i miss something?
    thanks in advance

    Hi,
    I think you cannot set the focus to the particular cell.
    I think you can  loop at that row of that table and set the the cell design to apply some color to differentiate that way rather than focusing so that user can know that he has to do something in that cell.
    check out this example salv_wd_test_table_focus
    Regards,
    Lekha.

  • Specifying different initial views for different users in ALV web dynpro

    Hi Friends,
    I need to have 2 different initial view for my web dynpro application eg: View1 and View2. There will 2 group of users using the respective Views. However the first group should not be able to see other view(View2) and vice versa.
    Please tell me whether it is possible and if yes then how to do it.
    Regards,
    Saud

    Hi,
    the ALV component has a public attribute - R_COMPONENT which is of type ref to IF_SALV_WD_COMPONENT_TABLE
    you can call GET_PERSONALISATION on this reference to return a reference to the interface IF_SALV_WD_COMP_TABLE_PERS. This in turn has a method - SET_STANDARD_VIEW.
    I think that this should allow you to set which ever view you want.
    Hope it helps,
    Chris

  • ALV and Dynpro-Fields

    Hi!
    I've created a dynpro with an ALV-Grid for Data-Overview and a lot of fields on the dynpro to change/insert additional data.
    How can I read data back from the dynpro fields when changing the selected row at the ALV.
    At the time of handling the event, the data entered on the dynpro isn't actual available in my coding.
    Thanks for any hints!
    Peter

    Hi!
    This is the dynpro-logic:
    process before output.
      module status_9210.
      module vorschlag_9210.
      call subscreen g_buch_button
        including sy-repid g_buch_button_subscreen.
    process after input.
      chain.
        field: zhrtv_planzusatz-buch_status,
               zhrtv_planzusatz-buchungscode.
      endchain.
      chain.
        field: zhrtv_planzusatz-betrg,
               zhrtv_planzusatz-waers.
      endchain.
      module save_data_9210.
    The PBO-Coding is just do fill the ALV-Grid and switch some dynpo-fields.
    In the module save_data_9210 the entered data is saved to the corresponding structures.
    Thanks for help!
    Peter

  • Adding 'FIND' functionality in toolbar of ALV Web Dynpro ABAP

    Hi Friends,
    I need to know whether we can add FIND functionality in toolbar of ALV display. If yes than which class will help in that, or do i need to code it.
    Pls help on this.
    Regards,
    Saud

    Hi Saud,
        If you mean that you need to highlight the Field-Value then, you can use Set Focus On A Table Cell .
    You can use the method REQUEST_FOCUS_ON_VIEW_ELEM of if_wd_view.
    For this, you can see this post --
                               How to set focus on a specific UI field at the start of an application?
    Further, you have to design 'find input-screen', submitting which will set focus on the cell that contains requested value.
    This way, you can add ( or somehow, simulate ) the Functionality of FIND, although not per se.
    Thanks.
    Kumar Saurav.

  • On click event on alv web dynpro.

    I've inserted this code in the WDDOINIT method:
    DATA: l_ref_INTERFACECONTROLLER TYPE REF TO  IWCI_SALV_WD_TABLE .
    l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_Alv( ).
    DATA:
        l_VALUE type ref to Cl_Salv_Wd_Config_Table.
        l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model( ).
    Display button in column subty
      lr_column = l_value->if_salv_wd_column_settings~get_column( 'SUBTY' ).
      CREATE OBJECT lr_button.
      lr_button->set_text_fieldname( 'SUBTY' ).
      lr_column->set_cell_editor( lr_button ).
    Display link in column connid
      lr_column = l_value->if_salv_wd_column_settings~get_column( 'SUBTY' ).
      CREATE OBJECT lr_link.
      lr_link->set_text_fieldname( 'SUBTY' ).
      lr_column->set_cell_editor( lr_link ).
    When I test the WD the dump occurs in this method:
    method ensure_active_component.
      if if_wd_component_usage~has_active_component( ) = abap_false.
      Active component must exist when ...
    >>>>>>>>>>>>>    raise exception type cx_wdr_rt_exception
                exporting
                  textid = cx_wdr_rt_exception=>no_active_component_found
                  msgv1  = me->name.
      endif.
    endmethod.
    Why?

    Hello,
    I am not too sure for your requirement, but what I could understood is "You have created an ALV table of buttons and have assigned with same onaction method, once cliked on any of the button, you want to figure out which button has been clicked?" If this is the casse then there is a very easy way to find out where the click has taken place, use the code below in the on action method of the button in  the alv table.
    data: lo_context_element type ref to IF_WD_CONTEXT_ELEMENT,
              lv_clicked_row       type int4.
    check wdevent is bound.
    lo_context_element =  wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
    check lo_context_element is bound.
    lv_clicked_row = lo_context_element->get_index( ).
    Once this is executed, lv_clicked_row would contain the index of the table row where the user have clicked, this value can be further used for business logic derivation purpose.
    Please let me know if this does not help!
    Thanks & Regards
    Abir Chakraborty

  • Creating hyperlink in column based on data, in ALV Web Dynpro ABAP

    Hi,
    I have a scenario in which i need to create hyperlink on a column. However all rows in that column need not be hyperlink. Based on the data i need to create it as hyperlink.
    eg: Column1 Column2
          ABC        1234
          DEF     5678
          GHI          9123
          DEF     5678
    So in above case where data is DEF i keep it as hyperlink, other rows are not.
    I am using ALV component to display data in a view container element.
    Please help me with this.
    Regards,
    Saud

    hi,
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    lr_column = l_value->if_salv_wd_column_settings~get_column( 'CONNID' ).
    DATA: lr_link_to_action TYPE REF TO cl_salv_wd_uie_link_to_action.
    CREATE OBJECT lr_link_to_action.
    lr_link_to_action->set_text_fieldname( 'CONNID' ).
    *lr_link_to_action->SET_ENABLED_FIELDNAME( 'BOOL' ).*
    lr_column->set_cell_editor( lr_link_to_action ).
    Here BOOL is my context attribute of type wdy_boolean inside the context node.
    Now based on the value of BOOL , your link to action will vary.
    DATA lo_nd_cn_flight TYPE REF TO if_wd_context_node.
      DATA ls_cn_flight TYPE wd_this->element_cn_flight.
      DATA lt_cn_flight TYPE wd_this->elements_cn_flight.
    *   navigate from <CONTEXT> to <CN_FLIGHT> via lead selection
      lo_nd_cn_flight = wd_context->get_child_node( name = wd_this->wdctx_cn_flight ).
      SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE lt_cn_flight.
        *LOOP AT LT_CN_FLIGHT INTO LS_CN_FLIGHT WHERE CARRID = 'AA'.*
          *LS_CN_FLIGHT-BOOL = ABAP_TRUE.*
          *MODIFY LT_CN_FLIGHT FROM LS_CN_FLIGHT TRANSPORTING BOOL.*
          *ENDLOOP.*
      lo_nd_cn_flight->bind_table( lt_cn_flight ).
    CN_FLIGHT is my context node binded to ALV. Now in above code you can set the  value of BOOL attribute and link to Action will depend on this value.

  • SET FOCUS in ALV WEB DYNPRO

    Hi Team ,
    I have one requirement , where i have to made  selected row editable in ALV Webdynpro . There is one Edit button and selected row will become ediatble when we click on this button . This part is done . But whenever iam clicking on Edit button , focus is moving to first row . I want it to remain on selected row .
    Regards
    Jagjit Singh Saini

    Hi Tashi ,
    Thanks Its working now .
    I have used 
    LO_ND_MATERIAL->SET_LEAD_SELECTION_INDEX( index = index ) after binding .
    Regards
    Jagjit Singh Saini

  • Capture multiple rows on lead select in ALV Web dynpro

    Hi all,
    I am trying to capture the selected rows on lead select in ALV.
    I have tried with supply function and ON_LEAD_SELECT event of ALV.
    When I am trying this I am able to capture only one row but not multiple.
    I don't want use any extra actions or buttons to get the selected rows, it must be possible only through any ALV events or using supply function.
    BR,
    Eshwar

    Hi,
    You use this to set to on_select?
    DATA:
         lo_config_table        TYPE REF TO cl_salv_wd_config_table.
       lo_config_table->if_salv_wd_table_settings~set_on_select_enabled( ).
    And in the component controller create a new method for event_handler
    This method will executed
    Hope this works
    Maarten

  • Filter in web dynpro ALV grid error

    The filter in the ALV web dynpro seems to work like *<condition>*. let's say if you have 4 entries in the table 30,230,300,1230 applying the filter value '30' will select all of them making the filter function virtually useless.
    Is there a way to change how the filter works?

    Dear Stanley,
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011
    Regards,
    Flavya

  • Enhancement in web dynpro alv

    When iam enhancing ALV (web dynpro). how to add another attribute to the context.
    Actaully the context is referring one structure.

    Dear C MADHAV
    then it seems you will need to enhance (append) your changes to that structure on the Data Dictionary.
    Kind Regards
    /Ricardo Quintas

  • ABAP Web Dynpro ALV - User Defined Functions

    Dear All,
    I don't know if my question is worth a new topic, but since I haven't found any appropriate answer by now I want you to ask the following:
    We're using the ALV web dynpro component to manage data and have added user functions in order to display buttons for saving data and adding new lines.
    Everything worked fine for us until some users adjusted the default view of the table by using the default 'Settings' option to hide some columns.
    The problem we're facing now is that the labels of the additional buttons - which were set up by use of OTR texts on initialisation of the dynpro - are blank until the user navigates on the dynpro or changes some cell contents. After that labels are shown correctly again.
    The problem is that I cannot simulate this dynamically, neither I can narrow down the source of the problem at all.
    A prompt reply would be very much appreciated

    Hi Eddy,
    Could you please create a CSN ticket for this problem, the component is BC-WD-CMP-ALV.
    Please enter all relevant data and access to your system to the message.
    Thanks,
    Regina

Maybe you are looking for

  • Best Practices when replacing 2003 server R2 with a new domainname and server 2012 r2 on same lan network

    I have a small office (10 computers with five users) that have a Windows 2003 server that has a corrupted AD. Their 2003 server R2 is essentially a file server and provides authentication.  They purchased a new Dell 2012 R2 server.   It seems easier

  • Issue with Struct and RKF Urgent

    Hi All, i am having a requirement where i need to create 10 restricted key figures and need to place in the rows, i am unable to place them in the row without structure, is der any alternate solution for this. another thing is i had created a structu

  • ISE NFR kit is a preconfigured VM. How to integrate it on existing demo scenario?

    Hello, Just got an ISE NFR kit. I actually thought that this would just as any other Cisco product where you get a license that will limit your amount of registered devices. Instead we get a preconfigured VM, tuned and tweaked to work on a corp.rf-de

  • How to create a IDOC program

    Hi All i have a requirement where i have to design a screen program to provide the user with a input screen. The user will input data on this screen, after the user enters the data and clicks on execute or some button on the module screen the system

  • Flash Player on a Terminal Server

    Hi, I am running a Citrix server for all my users. I provide Internet Explorer for Web Browsing. When I access certail Web Pages that need Flash Player I can not see content. I have installed Flashplayer and Shockwave. Has anyone seen this before? Da