SALV_WD_TABLE

HI to all!
I'm using the 'SALV_WD_TABLE' component
I won't to implement an search in the Table how can I navigate to the row where the item is find and how can I select the cell in program.
Thanks
Hermann

I am not sure if i got you.
Is it like user enters a word in a textfield and and you want to search this word in the table and set the focus on the filed that matches the search term?
From what you have written I asume that you already implemented the aearch aklgorithmn and just need to know how to set the focus.
In the view controlleryou will find the method
IF_WD_VIEW_CONTROLLER~REQUEST_FOCUS(
CONTEXT_ELEMENT
attribute
you can use it for example in wddomodifyview:
view->IF_WD_VIEW_CONTROLLER~REQUEST_FOCUS().
So you just need to save the context element and attribute name in your search action to be able to use it here.
Hope this works as expected.
Cheers,
Sascha

Similar Messages

  • Data no longer available when SALV_WD_TABLE GET_MODEL called

    Hello
    I created a view that retrieves data from one table to select a row in the table and proceed to the second view but I get an error like this:
    Data no longer available when SALV_WD_TABLE GET_MODEL called
    I did check the mapping between my view and the componentcontroller
    thank you

    There are several possiblities for this error.
    1) In your table, is there any field name starts with Number?
    2) Is your application 2 level process?( i mean two views? based on alv another alv)
    and Please check the below note.
    1528254
    and below
    Data no longer available when SALV_WD_TABLE GET_MODEL called
    error while testing a sample web dynpro
    If youare binding dynamically check this thread
    Assigning data to Dynamic ALV
    Regards
    Srinivas
    Edited by: sanasrinivas on Dec 14, 2011 11:51 AM

  • Example for Using WDR_SELECT_OPTIONS and SALV_WD_TABLE in one View

    Hello,
    I need an Example for Using the WD-Components WDR_SELECT_OPTIONS and SALV_WD_TABLE
    in one view. Can anybody help me?
    Thanks
    Toto

    Hello,
    Please see these:
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637]
    [/people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application]
    [/people/thomas.jung3/blog/2005/12/21/webdynpro-abap-alv]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
    Regards.

  • How to edit the text of a certain column in SALV_WD_TABLE  in ESS layout

    hi,expert.
    i want to change the text of the column:appraisee name in ESS worklist.
         Application :HAP_START_PAGE_POWL_UI_ESS
        Web Dynpro Component: SALV_WD_TABLE
        Window Information: TABLE
        View Information: VIEW_TABLE
    how can i achieve it? looking forward for your help.
    yours ping.

    check http://help.sap.com/erp2005_ehp_04/helpdata/EN/48/9968e67f020e27e10000000a421937/frameset.htm
    check notes  1416756, 1408243.
    Run SE80 and select the following:
    PACKAGE                PAOC_HAP_DOCUMENT_WD_UI
    Expand Node            Web Dynpro
    Expand Node            Web Dynpro Applicat.
    Expand Node            HAP_START_PAGE_POWL_UI_ESS    or
                           HAP_START_PAGE_POWL_UI_MSS
    Expand Node            Applic. Configurations
    Select Configuration   HAP_START_PG_POW_ESS_AC       or
                           HAP_START_PG_POW_ESS_AC
    => Test

  • Error Data no longer available when SALV_WD_TABLE GET_MODEL called

    Hello ,
    I have dynpro component on ECC6.0  POWL_UI_COMP which displayes service oders.
    This dynpro component has one more component usage component POWL_TABLE_COMP.
    This POWL_TABLE_COMP has used a SALV_WD_TABLE which is for ALV display.
    I have to create a on ALV toolbar one button,I know that I have to do this using self defined functions in wddoinit method of
    view which uses SALV_WD_TABLE and i could generate a button using self defined fucntions for another dynpro component.
    Now I am trying same method for this POWL_TABLE_COMP dynpro which is using SALV_WD_TABle , but its giving error as this
    Data no longer available when SALV_WD_TABLE GET_MODEL called .
    pl  can you suggest on this urgently.
    Attching a code to geenrated s self defined function.
    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_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(
    lr_config_table ?= lr_interface_salv_wd_table->get_model( ).
       DATA :lr_buttonui type REF TO CL_SALV_WD_FE_BUTTON.
      CREATE OBJECT lr_buttonui.
      lr_buttonui->SET_TEXT( 'ACCEPT' ).
      DATA button1 TYPE REF TO CL_SALV_WD_FUNCTION.
      button1 = lr_config_table->IF_SALV_WD_FUNCTION_SETTINGS~create_function( id = 'LBUTTON' ).
      button1->SET_EDITOR( lr_buttonui )
    thanks,
    Sharada

    Hi Sharada ,
    I had the same error message.
    To resolve the problem I had to bind the context again to the interface controller of the used component.
    Alex van Hacht.

  • ABAP WD: TreeByKeyTableColumn in ALV table (SALV_WD_TABLE)

    Hello,
    is is possible to add a TreeByKeyTableColumn object to a ALV table created
    using the SALV_WD_TABLE interface?
    I know that this question has already been posted several times - but the general answer ("use hierarchy columns and set_display_type( ..)") is not satisfying, since I have got the following:
    The context node of cardinality 0..n which corresponds to the "column tree" to be displayed has got
    - one KEY attribute
    - one PARENT_KEY attribute
    - one NODE_TEXT attribute
    - several attributes which correspond to the table lines (respectively tree lines)
    Example:
    The context of cardinality 0..n has got six attributes:
    KEY, PARENT_KEY, NODE_TEXT, col1 col2 col3.
    During runtime, there are five "lines" in this node:
    KEY    PARENT_KEY    NODE_TEXT   col1 col2 col3
    1         (none)                 "node1"             a      a     a
    2         1                        "node2"             b      b     b
    3         2                        "node3"             c      c     c
    4         1                        "node4"             d      d     d
    5         (none)                 "node5"             e      e     e
    The result should be in this case as if I'd have
    - a table with the columns col1, col2, col3 and
    - a TreeByKeyTableColumn with
         -- ROW_KEY      bound to KEY
         -- PARENT_KEY bound to PARENT_KEY
         -- containing a TextView with TEXT bound to NODE_TEXT
    Result in Display:
    -> node1             a   a   a                 <= Top level node
        ---> node2        b   b   b                 <= child of node with text "node1"
    > node3   c   c   c                 <= child of node with text "node2"
        ---> node4        d   d   d                 <= child of node with text "node1"
    -> node5            e   e   e                 <= Top level node
    Can this be established with the built in hierarchy functionality of the SALV_WD_TABLE interface, too?
    When playing around with the hierarchy columns functionality of SALV_WD_TABLE, I always got extra lines for the tree nodes with empty cells to the right (which I definitly don't want), and I was not able to use the parent_key<->key information already contained in the context node attributes.
    But perhaps I have overlooked something?
    Or is it possible to get somehow, by wild navigation through the available objects/classes/interfaces of the SALV_WD_TABLE interface, a reference to the corresponding table UI element to be able to dynamically add a TreeByKeyTableColumn with the wanted bindings?
    Regards & thanks for your help
    --Ute

    Once you have created a boolean attribute 'DAYS_READONLY' in the node bound to the DATA node of ALV, you need to set this attribute to false (for that row)  if you want DAYS field to be editable when the user creates another row. In the method where you have populated the data which is being displayed make this attribute as true for those rows.
    After this where you have made the ALV config settings write the following code.
      DATA: lr_input_field TYPE REF TO cl_salv_wd_uie_input_field.
      lr_column = lr_column_settings->get_column( 'DAYS' ).
      CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'DAYS'.
      lr_column->set_cell_editor( lr_input_field ).
      lr_input_field->set_read_only_fieldname( value = 'DAYS_READONLY' ).
      CALL METHOD lr_column_settings->delete_column
        EXPORTING
          id     = 'DAYS_READONLY'
    In this code you are creating input field as a cell editor and assigning it to DAYS column. After this you are setting the readonly property of the column DAYS to the value of the column 'DAYS_READONLY'. Since this column can have different values for each row, the column DAYS will be made readonly/editable accordingly. Finally you are deleting the column DAYS_READONLY from ALV output as we do not want to display its value to the user.
    For more info you can refer to thread: [ALV  List  in the same Column for the row  CELL  i need button or value;
    Edited by: Pooja Patodia on Mar 16, 2011 9:54 AM

  • Why do we use SALV_WD_TABLE in ALV?

    why do we use SALV_WD_TABLE in ALV? I was using this in Used Web Dynpro Components.

    The web dynpro component SALV_WD_TABLE is used for incorporating ALV into a web dynpro (screen).  You would declare it as a used component and then embed it into the container of the view that should use ALV.  I hope this helps.
    - April King

  • Disable toolbar in SALV_WD_TABLE

    hi,
    We are implementing Performance management process based on EHP4.
    We are using standard SAP delivered WD ABAP applications.
    On the manager's view there is table to show all appraisal form of his sub ordinates. This table is created through SALV_WD_TABLE component,
    The problem is that the toolbar of this table allows the manager to create/ delete the appraisal form of the sub ordinates employee and we do not want to have this functionality.
    i would like to know how can we disable the toolbar of the table so that manager cannot access any buttons on the toolbar.
    Thanks,
    Rahul

    Try following code in the WDDOINIT method
    DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
    l_ref_interfacecontroller = wd_this->wd_cpifc_alv_table( ). " Name of component usage given by you for SALV_WD_TABLE
    DATA: l_value TYPE REF TO cl_salv_wd_config_table.
    l_value = l_ref_interfacecontroller->get_model( ).
    DATA: lr_standard_functions TYPE REF TO if_salv_wd_std_functions.
    lr_standard_functions ?= l_value.
    lr_standard_functions->set_pdf_allowed( abap_false ).
    lr_standard_functions->set_filter_complex_allowed( abap_false ). "* Disable Filter tab from Settings
    lr_standard_functions->set_excel_inplace_allowed( abap_false ).
    lr_standard_functions->set_export_allowed( abap_false ).
    lr_standard_functions->set_dialog_settings_allowed( abap_false ).
    lr_standard_functions->set_view_list_allowed( abap_false ).
    lr_standard_functions->set_filter_filterline_allowed( abap_false ).
    lr_standard_functions->set_edit_append_row_allowed( abap_false ).
    lr_standard_functions->set_edit_insert_row_allowed( abap_false ).
    lr_standard_functions->set_edit_delete_row_allowed( abap_false ).
    You will find all methods to remove standard toolbar in methods of interface if_salv_wd_std_functions. Double click on it to find the methods
    Regards,
    Saket.

  • Component SALV_WD_TABLE - Read data

    Hi all,
    i'm using component SALV_WD_TABLE to display data in my web dynpro abap application.
    The application implements a search which reads the whole amout of data and displays the entries in the grid. (configuration: about 20 entries are shown)
    But now i want to scroll down/push the button to see the next entries.... I can see that the method to catch the data is executed again....?
    Because of the huge amount of data i have to wait a long time before i can see the next entries.
    Any ideas?
    regards

    Hi,
    no i don't use WDDOMODIFYVIEW.
    I have one screen with search criterias and a button "search".
    If i push this button the data will be read via services.
    So i put a breakpoint to the read_data method.....
    After scrolling with the "scroll buttons" the breakpoint stops again....
    Any ideas?
    regards

  • Row data manipulation in WD SALV_WD_TABLE

    Dear Gurus,
    I have a requirement in which i am using the standard WD component SALV_WD_TABLE in my custom WD component. Here i need to disable the checkbox in the first column based on a certain vallue in another column. Ex: I have the ALV displaying check box as first column followed by Purchase Order details like PO number, status, cost center etc. If the status has the value "Ordered" the checkbox should be displayed.
    I tried to set the check box with method set_read_only(abap_true). But this disables check boxes on all rows. How do i do this conditionally. I found threads to do something for all rows in a column like setting a particular colour.
    Regards,
    Manidipa

    Hi
    Take one attribute READONLY type String
    Take antoher internal table and move the contents of internal table to another to do manipulation and last bind the copied internal table.
    method WDDOINIT .
      data : lo_nd_spfli_node TYPE REF TO if_wd_context_node,
             lo_el_spfli_noed TYPE REF TO if_wd_context_element,
             lt_sflight TYPE if_main=>elements_spfli_node,
             lt_final TYPE if_main=>elements_spfli_node,
             ls_final TYPE if_main=>element_spfli_node,
             ls_flight TYPE if_main=>element_spfli_node.
          lo_nd_spfli_node = wd_context->get_child_node( 'SPFLI_NODE' ).
    SELECT * FROM
      SFLIGHT INTO CORRESPONDING FIELDS OF
      TABLE LT_SFLIGHT UP TO 60 ROWS.
      LOOP at lt_sflight into ls_flight.
        MOVE ls_flight to ls_final.
        if ls_final-carrid EQ 'AA'.
            ls_final-readonly = abap_FALSE.
        ELSE.
           ls_final-readonly = ' '.
        ENDIF.
        APPEND ls_final to lt_final.
      lo_nd_spfli_node->bind_table( lt_final ).
      ENDLOOP.
      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 lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
    lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
      DATA lv_value TYPE REF TO cl_salv_wd_config_table.
      lv_value = lo_interfacecontroller->get_model(
    CALL METHOD lv_value->if_salv_wd_table_settings~set_read_only
      EXPORTING
        value  = ABAP_FALSE
    DATA:
    lr_input_field TYPE REF TO cl_salv_wd_uie_input_field,
    lr_column TYPE REF TO cl_salv_wd_column,
    lr_cb TYPE REF TO CL_SALV_WD_UIE_CHECKBOX,
    lr_column1 TYPE REF TO cl_salv_wd_column.
    lr_column1 = lv_value->if_salv_wd_column_settings~get_column( 'READONLY' ).
    CREATE OBJECT lr_cb
    EXPORTING
    CHECKED_FIELDNAME = 'READONLY'.
    lr_column = lv_value->if_salv_wd_column_settings~get_column( 'CARRID' ).
    CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'CARRID'.
    lr_column1->set_cell_editor( lr_cb ).
    lr_column->set_cell_editor( lr_input_field ).
    lr_cb->set_read_only_fieldname( value = 'READONLY' ).
    check with above code it works for your requirement
    Thanks,
    Tulasi Palnati

  • Transportable stadard view using SALV_WD_TABLE component

    Hi all,
    Is it possible to make a stanard default view for all users of my WD appl. using SALV_WD_TABLE component? The standard view must be a subset of my context node.
    Thanks,
    Morten

    Hi,
    Yes you can create one view and you can display it for all users as default veiw.
    Cheers,
    Kris.

  • Dynamically changing selection mode in component SALV_WD_TABLE

    I want to programmatically change the selection mode in component SALV_WD_TABLE. I've embedded the component in one of my own components. Under one circumstance, I want multiple selection to be possible, under another, I only want single selection capability.
    I've set the context in my component, which is mapped to the SALV_WD_TABLE usage component, so that the relevant node has selection cardinality 0..n. The approach I'd like to take, is to programmatically set the selection cardinality to 0..n in the first scenario, and 0..1 in the second. But I can't figure out how to do that, or even if it's possible!
    Is it possible to set the selection cardinality programmatically - if so, how? If it isn't, is there another way I can achieve the same functionality?
    Thanks
    matt

    Hi,
    You can do that.
    See IF_SALV_WD_TABLE_SETTINGS method set_selection_mode method.
    get the config table like this
    lr_table_settings ?= wd_this->alv_config_table.
    lr_table_settings->set_selection_mode( CL_WD_TABLE=>E_SELECTION_MODE-MULTI ).
    use constants from
    CL_WD_TABLE=>E_SELECTION_MODE-AUTO

  • For webdynpro component SALV_WD_TABLE, how do we deactivate the toolbar

    For webdynpro component SALV_WD_TABLE, how do we deactivate the toolbar for the alv list display?

    * Data declarations for instantiation
      DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table   ,
            l_ref_cmp_usage           TYPE REF TO if_wd_component_usage.
    * Navigate from <CONTEXT> to <NODES> via lead selction
      lr_node = wd_context->get_child_node( 'CN_FECLM' ).
    * Instantiate the ALV
      l_ref_cmp_usage =   wd_this->wd_cpuse_usg_alv_feclm( ) .
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL .
        l_ref_cmp_usage->create_component( )                 .
      ENDIF                                                  .
    * Get model
      l_ref_interfacecontroller = wd_this->wd_cpifc_usg_alv_feclm( ).
      l_value = l_ref_interfacecontroller->get_model( )             .
      wd_this->l_value_feclm = l_value                              .
    * Remove the standard buttons available on ALV toolbar
      l_value->if_salv_wd_std_functions~set_sort_headerclick_allowed(
                                                               abap_false ).
      l_value->if_salv_wd_std_functions~set_edit_append_row_allowed(
                                                               abap_false ).
      l_value->if_salv_wd_std_functions~set_edit_insert_row_allowed(
                                                               abap_false ).
      l_value->if_salv_wd_std_functions~set_edit_delete_row_allowed(
                                                               abap_false ).
      l_value->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).
      l_value->if_salv_wd_std_functions~set_sort_headerclick_allowed(
                                                               abap_false ).
      l_value->if_salv_wd_std_functions~set_edit_check_available(
                                                               abap_false ).
      l_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false )      .
      l_value->if_salv_wd_std_functions~set_export_allowed( abap_false)    .

  • Using SALV_WD_TABLE

    Hi Experts,
    I want to display the data for 5 fields using SFLIGHTS table like CARRID CARRNAME CONNID COUNTRYFR FLDATE.when i am using SALV_WD_TABLE i am passing this table SFLIGHTS but when i run the application i am able to see all SFLIGHTS table fields but i want to display 5 fields can any one  help for this solution and give me an example program.

    Hi,
    remove the dictionary structure name (SFLIGHTS) from the Node context.
    Thanks,
    Chandra

  • Hi I have   a question in SALV_WD_TABLE

    How to add RADIO BUTTONS through the code to SALV_WD_TABLE and i defined as this as ALV.
    Guys, do u have any idea on this.
    Thank you,
    Srinivas.

    wrong forum..post in web dynpro for abap forum

Maybe you are looking for

  • How to restrict manual change to exchange rate.

    Hello Requirement: Our requirement is we want to control the manual exchange rate entry(user type or otherwise) at different form e.g. AP Invoice screen,AR Invoice,GL JV. What ever the rate defined pops up,should only be used for transactions and no

  • Issues with MSI FX5600 cards

    In my part time i build computers from a small buisiness i started while in university. I have several issues concerning the new MSI FX5600 Cards, that have not been completely answered in any post that i have read here in the forums or in the poor F

  • What has happened to the pdf toolbar in Safari 5.1.2?

    I'm using Safari 5.1.2 with OS X Lion. Usually when I open a pdf page in Safari and move the mouse pointer to the bottom of the Safari window, the pdf toolbar shows options like zooming, open in Preview.app or save to downloads folder, but this funct

  • Can't delete history when using magnifying glass icon on home screen. Anyone know how to? Thanks.

    If I click on the magnifying glass icon to do a search for something - the icon of the place I searched stays in the window and I can't seem to delete it.  Does anyone know how to delete that history? I can delete my browser history by clicking on th

  • Mac Pro & Monitors

    Hi. It's me again. OK. So I can't use the old video card. I just plugged a Samsung monitor into the DVI port on the Mac Pro and my Apple monitor into the miniDV port and I'm not see the mini DV monitor. I'm afraid to restart the machine. Any ideas? T