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

Similar Messages

  • 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

  • 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.

  • Coloring each row  Dynamically in WebDynpro using SALV_WD_TABLE component

    Hi All,
      We have a requirement in WebDynpro  ABAP ,to display the ALV  table rows with different colors on the bases of come condition at runtime.
        We have checked but got only for column wise but not row wise.
    Can we archive it for Row wise also?
    Thanks in advance.
    CB

    Hi Saji,
    Please go through this...
    coloring  the rows of alv dnamically
    Color ALV column and rows
    Cell color change in ALV
    Cheers,
    Kris.

  • 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.

  • How to use XSJS file path in Controller.js file

    Hi Experts,
    Regarding How to use XSJS file path in Controller.js file.
    I have gone through the SAP HANA Extended Application Services (Thomas Jung http://scn.sap.com/community/developer-center/hana/blog/2012/11/29/sap-hana-extended-application-services article.)
    Seems to be there is no information about the same. May be the article is targetted for Beginners and above. As I am a learner I am not able to do the same.
    var aUrl = '../../logic/demo_main.xsjs? (highlighted)
    Suppose my XSJS file is at http://ipaddress:8000/newtest/Func.XSJS.
    Can I use like below
    var aUrl = 'http://ipaddress:8000/newtest/Func.xsjs?
    or
    var aUrl = '../../newtest/Func.xsjs?
    I tried with multiple options but not able to get the expected output.
    Can you please provide more details on this?

    Dear Thomas,
    I am a abap developer , recently we meet a problem on our webdynpro report performnace issue. As in the development, we use SALV_WD_TABLE to design a ALV. and verything work correctly in our DEV system.
    But after when our QAS system, there are more records for the ALV, one of them has 21000 records. And in the layout, we have a column as checkbox.
    If we click any one checkbox, then the layout will respond almost 1~2 minutes. With debug I found the most time cost in the standard program.
    And with search I found that you have solution to solve it as 1,000,000 rows.
    So is it possible to provide some idea or solution to us?
    Many thanks for your help!
    BR
    Vincent Chen

  • Kindly help to develop alv grid display

    Hi ,
    I have a requirement in which I need to display ALV GRID display and in its tool bar 4 butons are required. In the same view down to alv display i want to develop a tabstrip and its functionalities.I have designed classic alv using SALV_WD_TABLE component. I want a good GRID Display, not like flat field names that comes in list display, looking for bulged fields(like what comes for ALV GRID in normal abap)  display with print version etc hidden and buttons at the top of ALV.  Kindly help
    Highly rewarded
    Kindly help
    Regards,
    Lakshmi
    Edited by: Lakshmi Menon on Nov 27, 2008 4:49 PM

    Well Web Dynpro is generally output in HTML so the output formatting is never going to quite look like a desktop application (which is the case with the ALV Grid).  You have very little control over the look of the column headers.  In fact you can only manipulate what is available via the Portal Theme. 
    There is a new Tradeshow Plus theme available in NetWeaver 7.01 which uses a gradiant background for the column headers.  This gives them a little more depth:
    http://www.flickr.com/photos/tjung/3068850120/
    The other option is next year when NetWeaver Business Client version 3.0 comes out, you will be able to render Web Dynpro applications using the NWBC Smart Client Rendering.  This will render Web Dynpro applications using desktop libraries instead of HTML/Browser. This gives Web Dynpro a more SAPGUI/Desktop appears of course.
    http://www.flickr.com/photos/tjung/2685619882/in/set-72157606418550143/

  • How to get column value of a selected row of ALV

    Hello ,
    I have application POWL POWL_UI_COMP uses  another component  POWL_TABLE_COMP.
    This POWL_TABLE_COMP uses SALV_WD_TABLE.
    I want to select value of ORDER id and it need to be passed whenever user selects a display order button(Which is self defined function generated in POWL_TABLE_COMP) . I am calling a display order on action of this display button(http://nap60.nalco.one.net:8042/sap/bc/webdynpro/sap/mt_order_app?IV_ACTIVITYTYPE=A&IV_EQUIPMENT=aaaa&IV_ORDERID=90001511&IV_ORDERTYPE=STD&IV_QMNUM=00&IV_TPLNR=00)
    ORDERID is one column value of selected row of ALV table.
    So please can you suggest , how to read ORDERID and pass it to the self defined function..
    thanks in advance,
    Sharada

    Anoop,
    I have plcaed this code in event handler of  on_lead_select.
    Its giving error  the element doesnt exist. 
    static_attributes should give me row data but it's giving short dump saying
    Pl can you suggest.
    data:   set_of_element type WDR_CONTEXT_ELEMENT_SET,
            element1 type ref to IF_WD_CONTEXT_ELEMENT,
            result type POWL_CRESULT_STY,
            table_helper type ref to CL_POWL_TABLE_HELPER,
          context_node type ref to IF_WD_CONTEXT_NODE,
           lt_selected_elements TYPE wdr_context_element_set,
           static_attributes type ref to data.
      table_helper = wd_comp_controller->mr_table_helper.
      context_node = table_helper->get_data_node( ).
      context_node = wd_comp_controller->mr_table_helper->get_data_node( ).
      context_node->get_static_attributes( exporting index = r_param->index
                                          importing static_attributes = static_attributes ).
    thanks,
    Sharada

  • ALV not showing all the rows! Please help!

    Hi Experts,
         I have webdynpro ALV report and I am using SALV_WD_TABLE as the reusable component. In component controller's WDDOINIT I have written the code for pulling teh data from R/3 table and binding it to ALV table.
    In the view's WDDOMODIFYVIEW event I have written the following code to get subtotal and grand total of Qty column based on product column.
          I have coded like this:
          lr_field_settings ?= l_value.
    lr_field = lr_field_settings->get_field( 'PRODUCT' ).
    lr_field->if_salv_wd_sort~set_group_aggregation_allowed( ABAP_TRUE ).
    lr_field->if_salv_wd_sort~create_sort_rule( ).
    l_sortrule = lr_field->if_salv_wd_sort~GET_SORT_RULE(  ).
    l_sortrule->set_sort_order( if_salv_wd_c_sort=>sort_order_ascending ).
    l_sortrule->set_group_aggregation( ABAP_TRUE ).
    *...Aggregate Field PRODUCT
    lr_field = lr_field_settings->get_field( 'QTY' ).
    lr_field->if_salv_wd_aggr~create_aggr_rule( ).
    lr_aggr_rule = lr_field->if_salv_wd_aggr~get_aggr_rule(  ).
    lr_aggr_rule->set_aggregation_type( if_salv_wd_c_aggregation=>aggrtype_total ).
    It is working now but my ALV table is not showing all the rows. I have 6 products and it is showing from product 2. But it is calculating grand total and subtotal correctly. I am not able to see the first product row and subtotal for that. Even if I click on the ^ icon in the ALV table below it is not showing all the rows.
    What could be the problem?
    Please help
    Thanks
    Gopal

    did you somehow manage to set the "first visible row" property on table object
    to 2.   Only thing I can think of that could cause this effect.
    Cheers
    Phil

  • How to set title/text for ALV table column header in WD ABAP

    Hello,
    I am working in WDA using SALV_WD_Table to display data in table. I need to change the column header text, the obvious way is to get the column header and call the method SET_TEXT to set new text / title. However, this method does NOT work, it does not change the column header text. I also tried the SET_TOOLTIP, this one works, but SET_TEXT does not work. Anyone has idea why this not working and do you find any go-around solution?
    My version is NW 7.0
    Thank
    Jayson

    Hi jason ,
    For setting Heder text for your ALV table
    ip_confing type ref to CL_SALV_WD_CONFIG_TABLE.
    "set alv table header
      ip_config->if_salv_wd_table_settings~r_header->set_text( 'Test ALV Header functionality' ).
    first you have to hide the DDIC text and then try to set your own text .
    "modify columns
      LOOP AT lt_columns INTO ls_column.
        lr_column = ls_column-r_column.
        CASE ls_column-id.
          WHEN 'MANDT'.
            "hide this field
            lr_column->set_visible( cl_wd_abstr_table_column=>e_visible-none ).
           WHEN 'SEQNR'.
            "set header to different string
            lr_column->r_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none )." use this line to hide ddic text
            lr_column->r_header->set_text( 'Position' ).     
        endcase.
      endloop.
    Regards
    Chinnaiya P

  • How to add a button on ALV in webdynrpro ABAP  ?

    Hi Friends,
    i have come across one scenario in my project.
      we use SALV_WD_TABLE class to generate ALV component in Webdynrpro and it contains two
    defalut buttons ' PRINT VERSION ' & ' EXPORT '.
    i have copied SALV_WD_TABLE into ZSALV_WD_TABLE.
    my question is how to add button ( Button has to come after 'EXPORT' ) on this copied one ZSALV_WD_TABLE and which method we need to write the code to get button ?  so that , instead of using SALV_WD_TABLE i can use ZSALV_WD_TABLE  which has 3 buttons .
    Thanks in Advance.....
    Regards,
    L.Aditya

    Hi,
    in my opinion it's not necessary to copy the component to add buttons.
    Have a look at this:
    http://help.sap.com/saphelp_nwpi71/helpdata/de/99/d5b72310094a138d65c0ecbcf67733/frameset.htm
    Regards

  • Can't select row on ALV

    Hi,
    I have used SALV_WD_TABLE as component reuse to display an ALV on my web dynpro application. But the problem is when it is displayed the first row is by defaut selected. If I try to click on any other row it is not getting selected and the first row is still selected.
    I checked the context node which I used for mapping to data node of SALV_WD_TABLE . The cardinality is 0..n and selection is 0..1. Again while instantiating the ALV class in the view I din't use any set_selection method to define selection in ALV.
    So, I need your help to know what is the reason that is not allowing me to select any other row other than the first row. Also I want to how to program the change in lead selection in the ALV. I mean how to understand when user selects another row and I need to know the row number.
    Thanks,
    Mainak

    Hi SSK,
    Sorry for being late to reply. Please find below the steps to follow for your requirement -
    1. Enable ON_CELL_ACTION event for the ALV
    You can follow the link for the coding. But make sure not to write the code in WDDOMODIFY method. Instead you write the code in WDDOINIT method.
    How to trigger the event ON_CELL_ACTION in ALV - Web Dynpro ABAP - SCN Wiki
    2. Now in the view methods tab define a event handler for this event
    create a new entry in method tab and choose method type as event handler and for the event you choose the ON_CELL_ACTION event of your ALV interface controller via F4 value help.
    3. Now in this method created in step 2, you will get the value of the column in variable R_PARAM->ATTRIBUTE. That means, if you press enter in columnn 'USER_NAME' then this variable will contain this column name. Then the sample coding would be -
    case R_PARAM->attribute.
         when 'USER_NAME'.
            * Populate the first name and last name in the corresponding context node element
    endcase.

  • Doubt in ALV componenet

    I am having 20 to 25 fields in my screen along with a table in between.
    if i use SALV_WD_TABLE component , whether  i can bring all those screen fields in my ALV output.
    if not possible with SALV_WD_TABLE then what i have to do .
    pls help me in this regard.

    Hi,
    I'm not sure if i understood your question correctly, but are you trying to add a new line to the table which contains the values of your input fields?
    If so, then try this:
    - Retrieve the data from the context node(s) that are connected to your input fields.
    - Retrieve the table which contains the data of your table.
    - Gather all the data from your input fields and add them to a structure which has the same line type as your table.
    - Add the new line to your table and bind this table to the context node that has a binding to your ALV.
    Good luck and regards,
    Jos

  • Replacing SAP Object Selector with Radio Button in ALV table in WD ABAP

    Hi All,
    I have a view in Webdynpro ABAP which displays data in an ALV table view (using SALV_WD_TABLE component).
    By default we have the SAP Object Selector for selecting a particular row of the table. This has to be replaced with radio buttons.
    I mean instead of using the SAP Object Selector, I need radio buttons at the start of each row.
    What I have thought of is to make the SAP Object Selector Invisible and create another attribute for the radio button in the node which contains ALV output data.
    Can you please let me know how to remove the SAP Object Selector from ALV output table and also how to include a column with radio button in the ALV output table.
    Thanks and Regards,
    Sayan Ghosh

    Hi Lekha,
    I am working with HRASR00_PROCESS_EXECUTE WD component of MSS application. In order to generate the data, this in turn calls another component called DATAOBJECTPROVIDER. I need to make the table selection as none and replace the SAP Object Selector with the radio button.
    Do you know under which method in DATAOBJECTPROVIDER do we need make the changes. I tried to search all the methods but couldnt understand a suitable one.
    Thanks and Regards,
    Sayan Ghosh

  • How to call method from  IF_SALV_WD_TABLE_SETTINGS in Wendynpro ABAP? Help!

    Hi Experts,
           I have Webdynpro for ABAP application that shows a ALV table using SALV_WD_TABLE.
    In the help doc I got the following snippet:
    "To define the selection type, use the methods of the interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE)."
    Selection Type Methods
    Set selection type
    SET_SELECTION_MODE
    Get selection type
    GET_SELECTION_MODE
    Can somebody tell me how to implement the above?
    I mean how to code the above so that I can make a call to the method SET_SELECTION_MODE?
    In other words how to use the above interface?
    Please provide some code snippet.
    Note that: I am using webdynpro for ABAP.
    Thanks
    Gopal
    Message was edited by: gopalkrishna baliga

    Hi GopalKrishna,
    In the WDDOINIT method of your view, use the following code:
    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( ).
    l_value->if_salv_wd_table_settings~set_visible_row_count( '-1' ).
    Here I have used set_visible_row_count, you could use which ever method you desire.
    Hint: Use code wizard(Ctrl+F7)To understand better read the ALV tutorial:
    /people/sap.user72/blog/2006/01/09/wda--user-defined-functions-in-alv
    Regards,
    Srini.
    Regards,
    Srini.

Maybe you are looking for

  • All text on website is acting as a (false) link, assistance greatly welcomed.

    *Please open link in IE not FF* The text and narrative in all of the pages on the website www.blindname.com/index.html and subsequent pages is acting as a 404/link, when I scan the code, there are no links visible and I have checked to see all the ta

  • How to change icon size in iWorks media viewer

    Hi I have just upgraded my wife's macbook from 10.6.8 to 10.8.2 and she uses pages a lot The media viewer in pages seems to have just one size for the icons of the photos. You used to be able to drage a slider to increase the size I have tried all th

  • MIGO- DISPLAY GR - ATTACH PDF DOCUMENTS USING DMS.

    Dear SAP Experts, We have requirement of attaching the PDF document to material document using DMS. So that in future if we see the GR in MIGO, we can view that PDF. Also we don't want deletion of this PDF once attached to material document. We found

  • Touchsmart monitor colors suddenly reverse

    A few days after the trial period for Windows 8 expired I booted up to find that the monitor colors were reversed.  What was black was now white, etc.  I thought it was something Microsoft had done to provoke me to hurry up and buy 8, but after remov

  • Dragging and dropping an item within horizontalList does not display correctly

    It appears that when I drag an item from a HorizontalList to another location within the same HorizonList, it does not display the images correctly. In my HorizontalList, I have an itemRenderer that shows the thumbnail image of the item.  I have abou