Configurin alv in web dynpro

Hi experts ,
       i want to create alv in web dynpro , the structure of table which i want to display in alv is not fixed ,
so i want to set number of columns ,names of columns  at runtime , Please tell me how i can do this ?

Hi,
Please refer to the dynamic creation of ALV using the dynamic structure/fieldcatalog
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4c70444a-0801-0010-7688-9e4bd844b783
Regards,
Lekha.

Similar Messages

  • ALV in Web dynpro ABAP - Export option as HTML

    Hi All,
    I am developing a webdynpro application for which output will be in ALV.
    Here the requiremnet is to save the file in HTML format.
    But the Standard ALV in web dynpro has only the option to export the result in Excel and PDF.
    Could any one suggest or tell me that is there any customized way to add the HTML format option in the ALV.
    The output of the ALV should be saved as HTML.
    Note: In R/3, The ALV provides us with both Excel and HTML format.
    Thanks,
    Aruna

    Hi,
    You should be looking [http://weblogs.sdn.sap.com/cs/blank/view/wlg/20046?page=last&x-order=date|http://weblogs.sdn.sap.com/cs/blank/view/wlg/20046?page=last&x-order=date]
    And also look in code exchange place .

  • ALV in web dynpro

    Is there any way we can integrate ALV controls in web dynpro .Actually I am looking for developing simple reporting solution out from web dynpro.
    What would be the ideal way of displaying simple lists in web dynpro?
    Thanks in Advance .

    Hi,
    as far as I know there is nothing like ALV in Web Dynpro. If you want to display a list the easiest way is to use a Table-Control. Read the data via RFC-Call and display them in a Table-Control. Its very easy.
    Have a look in the tutorial "Creating a Web Dynpro Application Accessing ABAP Functions"
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/1fc0bdb1cdd34f9a11d5321eba5ebc/frameset.htm
    Hope that helps.
    Best regards
    Renald

  • How can i use vertical Scroll in ALV at web dynpro abap?

    Normally, i'm using 'UP/DOWN button' while set a alv in web dynpro though,
    wanna change to scroll vertically.
    well, there is a way using ifram so i cant make alv inside of ifram for make a scroll.
    but then, part of header also might be scroll together with data.
    so, i'm asking to help is there anybody who can let me know about it?
    Thanks.
    with Regards,
    Yui.

    Hi Suresh,
    I had the same problem. The reason is that the result of
      select * from wdy_app_property into table p_property_table
              where application_name = p_application.
    in CL_WDY_MD_APPLICATION=>GET_PROPERTIES_STATIC
    for p_property_table-value is not "SCROLLBAR" but " SCROLLBAR".
    Here is a workaround: type in the application parameters "SCROLLBAR " instead of "SCROLLBAR".
    Regards from Germany
    Udo

  • Events on ALV in Web Dynpro for ABAP

    Hi
    On an ALV GRID in ABAP one can use the event handle_data_changed that is activated immediately at the time data is changed.
    Is there a similar event in ALV in Web Dynpro for ABAP?
    How would I know if any data was changed in an ALV grid in WDA?
    Regards

    Hi,
    To trigger the DATA_CHECK event on pressing enter, you need to use the set_data_check method. Use the following code:
    l_alv_model->if_salv_wd_table_settings~set_data_check( IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT ).
    Now you can define the data check event handler and it will get triggered when you change something and press enter, or even if you click on another cell. The DATA_CHECK attribute will by default be set to be trigger only on clicking the 'check' button. This will change it.
    Regards
    Nithya

  • Changing colour based on cells for ALV in Web Dynpro ABAP

    Hi,
    I have a requirement where I need to change the font color for some cells of ALV in Web Dynpro ABAP. I am able to change the font color for whole row or whole column but need to know how to change it based on cells.
    My output should be something like the picture attached to this discussion. The coloumns/cells where I need the font colour can change for different rows, based on some internal condition.
    Please let me know how to achieve this...... Thank you.
    - Divya Posanpally

    Hi Divya,
    Your requirement can be achieved as below
    Create an attribute for each column of alv i.e. COLOR_F1, COLOR_F2, COLOR_F3...... COLOR_F10 of type WDY_UIE_LIBRARY_ENUM_TYPE in the context node which holds the color value
    Now while configuring ALV, set the field name of semantic color for each column as below
                   data lv_color_fld_name type string.
                   data lo_text_view type ref to cl_salv_wd_uie_text_view.
              loop at lt_columns into ls_column.
              concatenate 'COLOR'  ls_column-id into lv_color_fld_name separated by '_'.
              lo_text_view ?=  ls_column-r_column->get_cell_editor( ).    
              if lo_text_view is bound.
              lo_text_view->SET_SEMANTIC_COLOR_FIELDNAME( value = lv_color_fld_name ).
              endif.
              endloop.
    Set the color based on the condition
             loop at lt_data into ls_data.
                        if ..... "your condition here.
                        ls_data-color_f1 = cl_wd_text_view=>e_semantic_color-NEGATIVE.
                        ls_data-color_f2 = cl_wd_text_view=>e_semantic_color-POSITIVE.
                        elseif...... " another condition
                        endif.
              endloop.
    Note: You can optimize the code as per your requirement
    Hope this helps you.
    Regards,
    Rama

  • How to use ALV  in web dynpro for ABAP?

    Hi,
    I am new to web dynpro. Now I want to create a table using ALV to display. I have no idea how to use it.
    I only know I need to add the SALV_WD_TABLE for component usage. Can anyone give me some hints
    or step-by-step procedure?
    Thanks.
    Awards will be provided.
    Best Regards,
    Chris Gu

    Hi,
    Please go thru this set of [tutuorials|https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/webcontent/uuid/60ea94e5-0901-0010-c3bb-aad5ea9620d8].
    Its really good for ALV.
    I also used this as I am also new to WD ABAP.
    Revert back with issues.
    Regards,
    Sumit

  • About ALV in Web dynpro for Java

    hi everybody:
    Web dynpro for Java didn't support ALV, i don't know whether it have some UI or other  like  ALV
    if it have ,please tell me,
    thank you verymuch!
    Best Regards _

    HI guys:
    I have a problem. I want to delete a data form table,ues RFC fuction
    (ex: Bapi_Delete_Travel_Expense_Input) 
    the model need three mandatory parameter ,"number","tripnumber","framedata".
    my code:
    deleteNode.bind(deleteElement);
         deleteElement.setnumber("28002");
         deleteElement.setTripnumber("100041");
    but the "framedata" is a structure ,is node ,not a attribute.
    I don't know how to write the code. Please give me some suggest
    Best Regard
    Yan

  • ALV GRID WEB DYNPRO ABAP

    I created an alv grid in my web dynpro...
    Everything worked fine ! Then I needed to add a column to the alv grid...
    SO
    1 - Chnaged the structure un SE11
    2 - Update component controller context so that the field is displayed
    3 - Update all bindings
    4 - Update biding between DATA and ALV Table
    But the column is not displayed by default in the alv grid ! But if I go to settings, the colomn is available...
    What should i do to display this column by default ???
    Regards,
    SteKam

    Yatah !
    I manage to show the columns by default !
    We discovered it was stored in the user settings...
    Then the question is ... "How do I disable user settings on ALV Grid"
    Thanks in advance!
    Stekam

  • How to group few columns in ALV in web dynpro under a common column header?

    Hi All,
    Please let me know the way to group few columns in ALV display under a common column header in a web dynpro application .
    For e.g.
    year
                                 |  Q1      |    Q2      |......
    Thanks in advance.
    Regards
    Archana

    Hi Archana,
    Creating a group header is possible in case of normal Table UI element. I don't think any such functionality exists in case of ALV. Just go through Thomas' comments in this thread: header group in wd alv.
    I hope it helps.
    Regards
    Arjun

  • How to get changed data in ALV in Web Dynpro for ABAP

    METHOD on_data_check .
    DATA:
        node_spfli                          TYPE REF TO if_wd_context_node,
        node_sflight                        TYPE REF TO if_wd_context_node,
        itab_sflight2                        TYPE if_display_view=>elements_sflight.
      node_spfli = wd_context->get_child_node( name = if_display_view=>wdctx_spfli ).
      node_sflight = node_spfli->get_child_node( name = if_display_view=>wdctx_sflight ).
      CALL METHOD node_sflight->get_static_attributes_table
        IMPORTING
          table = itab_sflight2.
    this code is ..get all data(changed and not changed)
    but i want get changed data only, not all data.
    how to get changed data?
    Edited by: Ki-Joon Seo on Dec 27, 2007 6:04 AM

    Hi,
    To get only the changed data in the ALV grid of a WD, you need to capture the "ON_DATA_CHECK" of the ALV grid.
    To this please do the following in the ALV initialization of the ALV table settings :
        lr_table_settings->set_data_check(
                IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT ).
    You may also do this:
        lr_table_settings->set_data_check(            IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CHECK_EVENT)
    The above two ways would depend on when do you need to check for the changed data. If you want to check the data as soon as it is entered, then use the first method. Else, use the second method.
    You need to register an EVENT HANDLER for this event.(You may do this in your VIEW or Component Controller).
    In this Event handler, you would find an importing parameter R_PARAM which is a ref type of      IF_SALV_WD_TABLE_DATA_CHECK.
    The attribute T_MODIFIED_CELLS of this interface IF_SALV_WD_TABLE_DATA_CHECK will contain the modified cells of the ALV with the old & new values.

  • Mulitple Line column headers for a column in ALV using Web Dynpro for ABAP

    Hi WD4A Gurus,
           I have requirement to display the header name in multiple lines for a single column using ALV. How to achieve this, do I need to do some custom code? Please help me with sample code.
    Example:
    existing column name :
                Name   |  Date (mm/dd/yyyy) | Amount
    required column name:
                Name   |    Date               | Amount
    (mm/dd/yyyy)
    Thanks
    Ketan

    Displaying header in multiple lines is not possible in alv
    Regards
    Tamil

  • ALV in Web Dynpro ABAP

    Hi
    I am using the ALV for displaying contents of a table. Is it possible to have a table cell with menu options? Sort of like a button choice UI element for a table cell?

    Hi,
    Thanks for the information.
    Actually what I want is the following:
    I have seen this in some ALV table in WDP. But I think it is WDP for Java. So I do not know if it is possible in WDP for ABAP.
    For example, I have a table of elements. I could possibly perform operations on multiple rows of the table, as well as a single row of a table. In case of multiple rows, i can select the rows and click on a table toolbar button.
    Now for an operation on a single row, I want to do it at the row level itself. Therefore, somewhere in the table row itself i should be able to trigger an operation(out of a set of operations) in the context of that row.
    Take for example the Button Choice UI element. This element provides with more than one action for the button. I want something similar. ALV allows to embed a button as a table cell element, but I have not seen any example with button choice as a table cell element. Is it possible? Or is there some other way of doing this? Can it be done in a normal table?
    Thanks and Regards
    Wenonah

  • ALV GRID WEB DYNPRO ABAP CREATE FUNCTION BUTTON ON A NEW LINE?

    Dear all,
    I'd like to create 2 pushbuttons on a second line of the alvgrid toolbar
    Is there any way to do that ?
    Regards

    Hai Anubhav,
       Read the node which is binded to the alv and use the following syntax:
    CALL METHOD node_first_page_output->get_lead_selection_index
      receiving
        index  = index
    where index is type i. and will return u the lead selection.
      Regards,
       Madhu

  • How to fix few rows in ALV after filtering on a column in Web Dynpro ABAP

    Hi,
    I have the following requirement:
    In an ALV, when i filter based on a column, then this filter should not be applied to 2 of its rows.
    These rows relate to totals. The totals are manually calculated as they require other component information too.
    Along with the filter result, these total rows have to be displayed.
    Let me know in case ALV in Web Dynpro ABAP supports this functionality.
    Regards,
    Rekha

    Hi,
    ALV table does not support this functionality.
    You can display the total in an another table instead.
    I had the same requirement with total and had to display the totals separately.
    Thanks,
    Feroz

Maybe you are looking for

  • Erro diferença de moeda do documento, PN moeda dolar.

    Grupo, Precsio de ajuda. Tenho um cliente que tem como principal PN, um cliente de ANGOLA que utiliza a moeda dolar O problema é que quando se faz uma NFs para este cliente dar um erro, dizendo que a moeda estar diferente da moeda do documento, e gos

  • Out of memory message in the audio window

    i finally updated my studio software from logic6 whilst still using the protools HD 192 interface. i updated the OS to leopard and installed logic 7 and updated the software for everything.(atmosphere,bfd,stylus,autotune etc). not only did many of th

  • SQL Loader - CSV Data file with carraige returns and line fields

    Hi, I have a CSV data file with occasional carraige returns and line feeds in between, which throws my SQL loader script off. Sql loader, takes the characters following the carraige return as a new record and gives me error. Is there a way I could ha

  • Please guide on how to integrate ATG with RTD(Real-Time Decisions.

    Please post the steps on integration of RTD with ATG.

  • Define a new non leading ledger

    Hi SAP gurus, our customer uses sap erp 6.0, new gl is active but there is only one legder (this is leading ledger 0L) is active. now I want to define a new ledger for IFRS purposes. are there any special points that should I consider? should i use n