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 .

Similar Messages

  • Web Dynpro ABAP - Select Option and ALV Component Usage

    Hi,
    I'm new in ABAP Web Dynpro and i was trying to follow the SDN tutorial
    Web Dynpro ABAP - Select Option and ALV Component Usage  
    In this video, we create a new Web Dynpro ABAP component that uses both Select Options and ALV. Developers can learn the basic mechanisms for working with both of these reusable components.
    Following the link: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637
    I implemented and generated the web dynpro with success but when i execute a test i get a dump on select-option definition.
    Note
    The following error text was processed in the system ECD : Exception condition "TYPE_NOT_FOUND" raised.
    The error occurred on the application server ITAWSECCS01D_ECD_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: DESCRIBE_BY_NAME of program CL_ABAP_TYPEDESCR=============CP
    I went in debug and the piece of code dumping is:
    lt_range_table =
    wd_this->m_handler->create_range_table( i_typename = 'S_PROJ' ).
    Is there someone who can help me?
    Thanks in advance,
    Stefano.

    Hi,
    I'm new in ABAP Web Dynpro and i was trying to follow the SDN tutorial
    Web Dynpro ABAP - Select Option and ALV Component Usage
    In this video, we create a new Web Dynpro ABAP component that uses both Select Options and ALV. Developers can learn the basic mechanisms for working with both of these reusable components.
    Following the link: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637
    I implemented and generated the web dynpro with success but when i execute a test i get
    an error as
    Note
    The following error text was processed in the system EI6 : Exception condition "TYPE_NOT_FOUND" raised.
    The error occurred on the application server EC6IDES_EI6_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: DESCRIBE_BY_NAME of program CL_ABAP_TYPEDESCR=============CP
    I have created a table zmy_table and trying to make USERID field as a select-options.I've written the code as shown below .
    data: itab type standard table of zmy_table,
    wa type zmy_table.
    data:
    node_employee type ref to if_wd_context_node,
    elem_employee type ref to if_wd_context_element,
    stru_employee type wd_this->element_employee ,
    item_userid like stru_employee-userid.
    navigate from <CONTEXT> to <EMPLOYEE> via lead selection
    node_employee = wd_context->get_child_node( name = wd_this->wdctx_employee ).
    @TODO handle not set lead selection
    if ( node_employee is initial ).
    endif.
    get element via lead selection
    elem_employee = node_employee->get_element( ).
    @TODO handle not set lead selection
    if ( elem_employee is initial ).
    endif.
    alternative access via index
    Elem_Employee = Node_Employee->get_Element( Index = 1 ).
    @TODO handle non existant child
    if ( Elem_Employee is initial ).
    endif.
    get single attribute
    elem_employee->get_attribute(
    exporting
    name = `USERID`
    importing
    value = item_userid ).
    select *
    from zmy_table
    into table itab
    where userid = item_userid.
    node_employee = wd_context->get_child_node( 'EMPLOYEE' ).
    node_employee->bind_elements( itab ).
    Is there someone who can help me and can tell am i doing wrong?
    Thanks in advance,
    Dheeraj

  • 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

  • Web Dynpro Abap: Select-Options: Save Selection Data

    Hello,
    I am using select-options in web dynpro abap.  Need to add a feature where the user can save his selection values as a variant. 
    All I can think of is getting all the selection values and saving these into a Z table.
    Can you suggest a better way?
    Thank you.
    Irene

    Hi Irene,
    Alas, it's currently not possible. You could write your own wrapper though adding a save button. Inside of the action handler you could retrieve the range tables of all fields, convert their content to a structure you like and save it a fitting db table. My suggestion is to use XML and a DB table with a XSTRING field in the data section to store the range table values.
    Using personalization will allow you to customize your ui and to hide certain select option fields.
    Best regards,
    Thomas

  • 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

  • Web dynpro abap Select-option: upload data from clipboard

    Hi Experts,
    I have a select option in my ABAP Webdynpro application. My requirement is to give the "upload from clipboard" functionality for this select option as it is possible in normal R3.  Please help me on this issue as it is client requirement.
    Thank you in advance.
    Narendra

    Narendranath Reddy wrote:
    Hello Thomos,
    > thanks for your valuable reply.
    >
    > I found the clipboard button in WDR_SELECT_OPTIONS component which is disabled. Is it possible to enable that button using
    > enhancement and write the code as required ?
    >
    > Thanks & regards
    > Narendra
    No.  The button was disabled because the underlying framework support hasn't been delivered yet.  We need this feature implemented in the underlying JavaScript engine (which customers/partners shouldn't attempt to change or extend) before Web Dynpro can use it.

  • 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

  • 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

  • Web Dynpro ABAP: Assigning of Conversion Exits in ALV

    Hi,
    We are currently developing a generic data display application using ALV technology in Web Dynpro ABAP. "Generic" means that the structure of the data is created dynamically during runtime (using RTTS) and that even the contained data elements are created dynamically without any relation to DDIC. The generation is based on metadata like field name, data type, length, decimals, conversion exit.
    Our problem is that we were not able to find a way to assign the conversion exit of a data element ("column") in Web Dynpro ALV. Without this feature, no output conversions will take place since the data elements have no relation to DDIC. In the "classical" ALV, this could be easily done using method SET_EDIT_MASK of class CL_SALV_COLUMN.
    Is there a similar method in WebDynpro ALV or at least an alternative approach to assign a conversion exit to a column or cell?
    Thanks for your help in advance.
    Best Regards,
    Sven

    Hello Sven Hader,
    As you said you are generatiing the metadata like field name, data type, length, decimals, conversion exit dynamically.
    Can you please let me know how you are diong this?
    Meanwhile, you can try this approach to assign a Conversion exit to ALV Table column attribute dynamically.
    DATA:     lv_data                         TYPE  dd04v,
                  lv_mode_ext2int          type   ESEBOOLE. "Conversion mode that you are in
      read the data from the database
        CALL FUNCTION 'DDIF_DTEL_GET'
          EXPORTING
            name                = lv_ddobjname
            state               =   iv_object_state
            langu               =   iv_langu
          IMPORTING
            dd04v_wa         =   lv_data
          EXCEPTIONS
            illegal_input       = 1
            OTHERS           = 2.
        CHECK NOT lv_data-convexit IS INITIAL.
        CONCATENATE 'CONVERSION_EXIT_' lv_data-convexit '_INPUT'
          INTO cl_im_imp_ehs_material_erp=>mv_conversion_exit_input.
        CONCATENATE 'CONVERSION_EXIT_' lv_data-convexit '_OUTPUT'
          INTO cl_im_imp_ehs_material_erp=>mv_conversion_exit_output.
      IF lv_mode_ext2int = 'X'.
        ASSIGN cl_im_imp_ehs_material_erp=>mv_conversion_exit_input
            TO <lv_funcname>.
      ELSE.
        ASSIGN cl_im_imp_ehs_material_erp=>mv_conversion_exit_output
            TO <lv_funcname>.
      ENDIF.
    (3) call the conversion exit
      CHECK <lv_funcname> IS ASSIGNED.
      TRY.
          CALL FUNCTION <lv_funcname>
            EXPORTING
              input  = iv_value
            IMPORTING
              output = ev_value.
          IF sy-subrc <> 0.
          ENDIF.
        CATCH cx_sy_dyn_call_illegal_func
              cx_sy_dyn_call_illegal_type
              cx_sy_dyn_call_param_missing
              cx_sy_dyn_call_param_not_found.               "#EC NO_HANDLER
      ENDTRY.
    Endif.
    I hope it should work.
    Thanks,
    Bharath.K
    Edited by: Bharath Komarapalem on Dec 16, 2008 2:47 PM

  • How to add button ui element in alv table data in web Dynpro ABAP

    Hi Experts,
    I have one requirement,
    Actually I was devloped normal table in web Dynpro ABAP
    in that i have one column Display as a button .
    when i select that button need to display some data.
    same requirement i need to devlope in alv table.
    i am going to attach file please check.
    Thanks in advance.
    Regards,
    Subba Reddy.

    Hi,
    You can create Button in your ALV table column with below code
    DATA lo_button              TYPE REF TO cl_salv_wd_uie_button.
    CREATE OBJECT lo_button.
        CALL METHOD lv_value->if_salv_wd_column_settings~get_column
          EXPORTING
            id    = <your column name>
          RECEIVING
            value = lo_system_select_hdr.
        lo_button->set_enabled( value = abap_true ).
       lo_button->set_text( value = 'Avaliable List'  ).
        lo_button->set_tooltip( value = 'Avaliable List' ).
        lo_system_select_hdr->set_cell_editor( value = lo_button ).
    And for button click action,
    Create a method (say SHOW_DATA( ) ) with on_click event handler.And when you click button on your ALV table, SHOW_DATA( ) method will trigger.
    Thanks
    KH

  • Excel Export issue in Web Dynpro ABAP

    Hello,
    We are facing a problem and need suggestion. In one of our WD Abap applications the output is displayed in an ALV table. We have a button (provided by standard ALV functions) to export Excel.
    So far so good, but the issue is the amount columns display in the portal show the values as per user default settings. For example 123.456,78 whereas on export to excel it shows 12345.78
    Is there some way to export to excel with the users regional settings (same as displayed on portal). So far we check, almost all columns follow the regional user default settings except the amount column. Is there someway we can fix this.
    Users mention it worked before but not now. Its difficult to verify this statement now.
    Kindly help how we could solve this issue.
    Best regards,
    Moderator message: please have a look in the separate forum for Web Dynpro ABAP.
    Edited by: Thomas Zloch on Dec 19, 2010 9:31 PM

    HI,
    You cannot use GUI classes and methods in web dynpro . That will dump.
    Instead you can use file down load UI element or..
    If you have the content in xstring format use ATTACH_FILE_TO_RESPONSE method of CL_WD_RUNTIME_SERVICES class.
    Regards,
    Madhu

  • Cannot see Ecatt option in context menu in web dynpro abap in SE80 ECC 6.0

    Hi ,
    I saw a presentation by Thomas in which there is option of recording ecatt script on context menu in web dynpro abap application.we are on ECC 6.0 we are trying to record WDA applications and test them by using Ecatt but I am unable to see the option of recording the ecatt script in SE80 editor.
    Why could this be happening

    Thanks ,
    I saw that disappointing note ...any other way to automate web dynpro abap testing ? please advise.

  • ALV object in Web dynpro ABAP

    Hi All,
    I want to include ALV object in web dynpro ABAP, instead of a table in a window. I have SAP Version 4.6 as backend.
    Pl help.

    Hi Nirmal,
    the information on ALV and WDA is here: http://help.sap.com/saphelp_nw2004s/helpdata/en/74/fd4142646ab46be10000000a155106/frameset.htm
    As you know, Web Dynpro ABAP is availiable with NW2004s, not before.
    Regards, Heidi

Maybe you are looking for

  • Saving issues with FCP 5.1.4

    I have recently been finding that when I save my work only some of it is saving. For instance, Thursday I added a bunch of work to my sequence and things that I did earlier in the day did not save but things that I did later on in the day did save. T

  • BPC NW 7.5  IMPORT.XLS Files missing

    Hi All, I have a scenario, here I have uploaded my .CSV file, the normal process in Data Manager the source file is loaded, but when I try click on destination file and click on private it got saved. But when I go into System Aministrative Folder, I

  • Please Help: Ignore first Character in a String.

    How do you ignore the first Character in a String? String a = JTable.getValueAt(row,column).toString(); //Ignore first Char of a? ('$') double b = Double.valueOf(a).doubleValue();Any help would be appreciated!

  • Edit web.xml programmatically

    And another question Can I edit the web.xml from the web application, in session been for example. I want the admin user to add roles from the web application page and grant them to users. Then it should be created automatically in the database and i

  • Repartition disk and reimport the whole system

    Hi everyone, I have a working Arch Install and I love it. The only problem is that I need to repartition my HDD. The partition scheme is just slightly different. One partition that is now logical will be primary and most partitions (except one) will