Web Dynpro ABAP ALV menu button icon image

Hi
Does anybody know how to add or link an image or an icon to a menu button in a
Web Dynpro ABAP ALV view?
I know how to do it in the alv table column but can't find a method for a menu button.
Best regards
Lars

Hi
Found the answer:
  DATA: lr_febutton TYPE REF TO cl_salv_wd_fe_button.
  lr_febutton->set_image_source( '@4B@' ).
Just used a wrong class.
Best regards
Lars

Similar Messages

  • E-Recruiting u0096 Web Dynpro ABAP UI u0096 Button, Tab, RMP steps Color change.

    Hi,
    I need to change the color of Heading, buttons, Tabs and Road Map Pattern steps in Web Dynpro ABAP UI for external candidate. I’m looking into WDA component ‘HRRCF_C_STARTPAGE’ to change the color of Heading, buttons, Tabs and Road Map Pattern.
    I would appreciate for your valuable input.
    also i need to change the Loago. Is logo is configurable through IMG path (SPRO)?
    Do let me know, if you need anything else.
    See -> Error - when opening/downloading 'NW04SP14EclipseThemesEditor.zip'.
    Regards,
    ...Naddy
    Edited by: Naddy on May 14, 2008 11:06 PM

    Hi Naddy,
    Export the them from the file system of portal through BSP_UPDATE_MIMEREPOS and  change it then import the theme using BSP_UPDATE_MIMEREPOS program and apply the theme.
    go through this links hope these help you to solve your probelm.
    [url]http://help.sap.com/saphelp_nw2004s/helpdata/en/4e/7feef553415e4fb357e80f7a6223b1/content.htm [url]
    [url]http://help.sap.com/saphelp_nw04s/helpdata/en/43/d8e0a488ef05f6e10000000a11466f/content.htm [url]
    [url]/people/sergio.ferrari2/blog/2007/04/06/bsphowto--customizing-the-design-of-system-logon-page-in-netweaver-04 [url]
    [url]/people/sergio.ferrari2/blog/2007/02/16/sap-web-ashowto--customizing-the-design-of-system-logon-page-new-options-of-the-netweaver-04s [url]

  • 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

  • Web Dynpro ABAP - ALV - insert data

    hi,
    I have got the following task.
    I need to insert a new row into an alv table that shall be editable (data to be edited in the table, where
    a) the other rows of the table, that already exist must not be editable
    b) some columns of the new row are to be initialized with values when creating new row
    can you help here?
    more precise description of the task/problem
    to a) all I found is the possibility to make columns editable, if I wanted to edit new inserted fields directly in the table. This would give the possibility to also edit the rows that are already there and where the data should not be modified...
    to b) I tried with a propriarity button in wddoinit.  DATA lr_btn_new TYPE REF TO cl_salv_wd_fe_button.
      DATA lr_fct_new TYPE REF TO cl_salv_wd_function.
      CREATE OBJECT lr_btn_new.
      lr_btn_new->set_text( 'Request New').
      lr_fct_new = lo_model->if_salv_wd_function_settings~create_function( id = 'BTN_NEW' ).
      lr_fct_new->set_editor( lr_btn_new ).
    and than call an on_function event handler, but now got the problem that I do not know how to insert the row to the table....

    Hi,
    Inserting new row is very simple,just modify your internal table which is attached to the ALV table in the onFunction Event handler method like.
    data: wa_tab type wd_this->elem_flights. "work area is of type context node(structure),now this is empty
    it_flights type table of wd_this->elem_flights,
    v_lines type i.
    Now read the context node data into internal table.
    navigate from <CONTEXT> to <FLIGHTS> via lead selection
      lo_nd_flights = wd_context->get_child_node( name = wd_this->wdctx_flights ).
    CALL METHOD LO_ND_FLIGHTS->GET_STATIC_ATTRIBUTES_TABLE
      IMPORTING
        TABLE  = lt_flights.
    Modify the internal table from workarea.
    describe table lt_flights lines v_lines.
    modify lt_flights from ls_flights index v_lines. This is to add empty row at the last in the table
    Now bind the internal table to context node.
    To make entire row is editable check this forum threads and articles which i already answered.
    Cell Edit/ Row Edit in ALV WDA
    How to make all columns of alv editable
    Also check this article for conditionally editable.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393

  • Web Dynpro ABAP ALV On Data check

    Hi
    If i push the check button and i find an error in my on data check event and send an error message l_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE. It will not check again when i am pushing of the check button again, i guess because no data has been changed. But if no data has been changed, the user will not have cleared the error for sure.
    Now as i write this i have an idea for an work around.
    But anyway. It seams to me that others should have faced this problem and i believe i am doing something wrong. I have tried to set the value again, but this will not trigger an change.
    So what i will try next is to save my error messages and just clear them when the data_check is done again. (I am not sure how to do this at the moment, but i will see.)
    Still does anybody know a better way, or how it's meant to be done?
    thanks.

    my solution is:
    on the data check event i save the changes to tables in my class.
    i have put an own check button in the alv, which is realy checking the data.
    the save button is then using my tables to do the actual changes to the dso.

  • Web Dynpro ABAP Unwanted Menu Bar

    Goodday,
    I'm calling a custom transaction in the back end from my WD App by using
    CALL METHOD lo_window_manager->create_external_window
    I have 'sentenced' all the 'bars parameters ' to abap_false.
    In the back end a custom transaction gathers all info and does all checks after which a SmartForm is called and in the external WD window an invoice is shown in PDF format which reads from above:
    " Print Preview in LOCL"
    Buttons: MENU BACK CANCEL SYSTEM
    My Question:
    Is it possible to suppress these four buttons and just show the PDF invoice?
    Is there perhaps some further manipulation possible with
            control_parameters   = h_control
            output_options       = h_output
    (I'm testing the WD-App with SE80 but I assume the buttons will also appear when running in the Portal)
    Thanks,
    Mike

    Hi
    Found the answer:
      DATA: lr_febutton TYPE REF TO cl_salv_wd_fe_button.
      lr_febutton->set_image_source( '@4B@' ).
    Just used a wrong class.
    Best regards
    Lars

  • Web Dynpro ABAP ALV Filter Dropdown

    Hi,
    I have a question regarding the filter in the ALV.
    I would like to implement a filter with a dropdown box showing all possible values of a DDIC domain. The results should look like on the following screenshot (Taken from a POWL list)
    [Screenshot|http://dl.dropbox.com/u/958234/ALV_Filter_Dropdown.png]
    How is this possible with a normal SAP List Viewer?
    Thanks a lot
    Kind regards,
    Swen

    Yes,
    You can do it.
    lr_filter_element = i_filter_node->create_element( ).
            lr_filter_element->set_attribute(
             name  = 'FIELDNAME'
             value = <lfs_field>-fieldname
            lr_filter_element->set_attribute(
             name  = 'T_DROPDOWN_VALUES'
             value = lt_key_values
            i_filter_node->bind_element(
             new_item = lr_filter_element
             set_initial_elements = abap_false
    Best regards,
    Rohit

  • Web dynpro abap ALV link to (hyperlink)

    Hi all - It is possible to make values in a column Hyperlink? I know that regular tables has an attribute (link to) but in ALV I don't see it. If is possible can you explain to me how to?
    Thanks!
    Jason P-V

    Hi,
    You can have it in ALV also.
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_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(
    data: lr_col type ref to cl_salv_wd_column,
          lr_colH type ref to cl_salv_wd_column_header,
    lr_link1    TYPE REF TO cl_salv_wd_uie_link_to_action.  "Link to action type
    CALL METHOD lv_value->if_salv_wd_column_settings~get_column
      EXPORTING
        id     = 'BEGDA'
      receiving
        value  = lr_col.
              CREATE OBJECT lr_link1.
              lr_link1->set_text_fieldname( 'BEGDA' ).
              CALL METHOD lr_col->set_cell_editor
                EXPORTING
                  value = lr_link1.
    Regards,
    Lekha.

  • Web Dynpro ABAP - ALV: Export to Excel | Export to PDF

    Hello,
    I was wondering which settings I need to configure and where to configure these, for the "Print Version" and "Export to Microsoft Excel" to work.
    Print version Communication Failure: RFC destination SALV_WD_EXPORT_PDF does not exist
    Thanks in advance,
    Dragovian

    Refer this :
    Print Version: RFC Destination SALV_WD_EXPORT_PDF doesnt not exists

  • 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

  • How to display an status Icon in Table UI web dynpro ABAP?

    Hi Experts ,
    How to display an status Icon ( Traffic light ) in Table UI web dynpro ABAP? can somebody tell with a coding example. also I need to update status on condition so whats the best way?
    Thanks in advance.
    Regards,

    Hi Laeeq,
    click on table cntrol n place it on the screen..
    now click on the icon button n place it in the table control area.. a column of icons get created. name it (say) ICON.
    in the PBO..
    loop at internal table and call module in the loop (say) .
    MODULE ICON_DISP.
    now in the module try the foll code :
    module icon_display output.
    check some condition and assign the icon to the variable icon_r
      icon_R = 'ICON_GREEN_LIGHT'.
      CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name                        = ICON_R
        TEXT                        = ' '
        INFO                        = ' '
        ADD_STDINF                  = 'X'
       IMPORTING
         RESULT                      = ICON
      EXCEPTIONS
        ICON_NOT_FOUND              = 1
        OUTPUTFIELD_TOO_SHORT       = 2
        OTHERS                      = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      endmodule.
    where icon(35) and icon_r(35) type c .
    hope this helps u..
    Regards
    Aparna

  • 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

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

  • Calling a smart form on click of a button in web dynpro abap

    Hi experts,
    I have a requirement like if I click a button in a view i need ti generate a PDF through smart form.
    Is this possible. If so please tell me the way..
    Thanks & Regards

    Hi Sharma,
    Create Interactive form in your view, create one node say PDF_SOURCE under this one attribute PDF_SOURCE of type XSTRING.
    Bind this to IF form Datasource and pdfsource.
    in your button action write code to call your smartform
    using SSF_FUNCTION_MODULE_NAME
    using FM  CONVERT_OTF and attach_file_to_response
    *convert to pdf
      call function 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = lv_bytecount
        TABLES
          otf                   = ls_job_output_info-otfdata
          lines                 = lt_lines
        EXCEPTIONS
          err_conv_not_possible = 1
          err_bad_otf           = 2.
      loop at lt_lines into ls_line.
        lv_string = ls_line.
        export mydata = lv_string to data buffer lv_buffer.
        import mydata to l_xline from data buffer lv_buffer in char-to-hex
        mode.
        concatenate l_pdfstring l_xline into l_pdfstring in byte mode.
      endloop.
      call method cl_wd_runtime_services=>attach_file_to_response
        EXPORTING
          i_filename      = 'ZWTY_PACKINGSLIP'
          i_content       = l_pdfstring
          i_mime_type     = 'BIN'
          i_in_new_window = abap_false
          i_inplace       = abap_false.
    also check this..
    http://abapcodexperiments.wordpress.com/2011/03/20/smartform-pdf-webdynpro-abap/
    Call smartform in web dynpro abap
    Cheers,
    Kris.

  • 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

Maybe you are looking for

  • New Zen need a new firmware upd

    I was looking for some solution to some problems I encounter with the new Zen 8gb . I notice that when you turn on the device it flicker and the Zen display Flicker after it is on. But here is a list of suggestion I found on line that I agree needed

  • How can I search sub categories in iBooks?

    Okay, after generally loving apple products, this one has me raging mad. When I search iBooks, there is a drop down list of categories and authors. But sub categories -- as found in any normal bookstore -- are nowhere to be found. For example, search

  • Firefox 4.0 beta download stalls at 38 seconds remaining in download

    when trying to download the new firefox setup 4.0 beta 12.exe it stopped with 38 seconds left on download time. this is after i downloaded beta 3.6.9

  • My library shows up on my apple tv but does not load

    My library shows up on my Apple tv2 but does not load.  Everything else works I can watch trailers, rented movies and things like that.  I could watch movies from my library through home sharing but it stopped working in the middle of a movie and has

  • I want to add memory to my CM2320nf printer

    I have a CM2320nf HP color laserjet MFP running under Windows 7 64-bit, and I want to add memory to it, but I cannot find any specs for the memory in my manuals, or online on the HP site.  does anyone have any specs for this memory?  Most SO-DIMMs th