Using alv features in web dynpro abap

Hi Gurus,
I am new at WDA. I have an wda program which shows query results as ALV. This results give me some information about user messages but normally i can't display all of the message text because it is too long.
Now i want to give "hotspot" property to a cell(message text) and thus when i click it, i will see all of the message.
How can i enable these and another functions of ALV?  
Thanks

you can use link to action in table.So that when you click link you can see the message in window or where ever you want.
check this link how to insert link to action in ALV Table.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproABAP-UsingUIelementsinALVcomponentcells
thanks
Suman

Similar Messages

  • TechEd recording for New Features in Web Dynpro ABAP session

    This week's SAP TechEd lecture of the week is New Features in Web Dynpro ABAP - hence this posting in the WDA forum.  It covers heavily the new features that came in NetWeaver 7.01 as well as giving a bit of a preview of some of the new features in 7.02. This session was recorded in 2009 at TechEd Phoenix.
    http://www.sdn.sap.com/irj/scn/index?rid=/media/uuid/80726482-3d07-2d10-009c-c5a4db525ff0
    These TechEd Lectures of the week only last for free for one week and then you need a subscription to the Virtual TechEd to be able to view them. So this session will only be available until June 17th.

    you can use link to action in table.So that when you click link you can see the message in window or where ever you want.
    check this link how to insert link to action in ALV Table.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproABAP-UsingUIelementsinALVcomponentcells
    thanks
    Suman

  • 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

  • Excel download feature in Web Dynpro Abap using OAOR document

    Hi Friends,
    I am facing an issue in implementing excel download feature in Web Dynpro.
    Problem: I have stored an excel document in OAOR. I am displaying data on screen using ALV display in WDA.
    I will provide a button to download excel in toolbar of ALV. When user clicks on this button i need to pick the document from OAOR and fill that with my screen values and download it to users desktop.
    Please help me in this. Problem is when i am calling these classes c_oi_container_control_creator=>get_container_control and cl_gui_custom_container from my View's method they are returning error.
    Thanks & Regards,
    Saud

    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

  • How to use HR Macros in Web Dynpro ABAP

    Hai All,
         Am new to Web dynpro Abap working in HR req.
           Can u pls help me how to import HR Macros in webdy ABAP.
            It will be very much helpful to me. Pls provide any link or doc if available.
    Thanks in Advance,
    Nalla.B

    Hi Nalla,
    if you can't find any Function Modules or BAPIs as Kris suggested, you would basically do this (conceptionally):
    1. What is your business logic supposed to do (output)  and what information does it need (input) for processing.
    2. Build a class in se24 and implement static public methods with the business logic you defined in (1.).
    3. Call the static methods in your WD4A-Framework.
    If you are unfamiliar with the class builder, make a local class first in se80, in a test program or alike.
    Does this help you a bit?
    regards, Lukas

  • Configuration of alv table in web dynpro abap

    Hi,
    I'm using component SALV_WD_TABLE in my component. I have created a configuration for the alv.
    I want to hide a column in the alv.
    Do you know how to do it using the configuration?
    Thanks in advance
    Karim

    >
    Karim Ja wrote:
    > Thomas,
    >
    > In fact, i think that when user changes the global view and clicks on save button, a copy of the view is created(with the same name) and is then available for all other users. This copy can be delete but not the "standard" global one.
    > Is this possible?
    >
    > Now I'm thniking about creating an ehancement for the standard web dynpro component and hide the column using abap code.
    >
    > Is it a good idea?
    >
    > Kind regards
    > Karim
    Make sure that your security is setup correctly.  End users without administrative rights can not create globa views. When they get the Save View As Dialog, what values do they see for the Assignement field?  When I logon without Adminstrative mode, I only see Assignment of User:
    http://www.flickr.com/photos/tjung/3406367817/
    When I launch the same transaction in Administrative or Configuration mode, the Assignment Option is All and only then do I have the optoin to transport the View:
    http://www.flickr.com/photos/tjung/3407176898/
    Is it good to modify the standard ALV component?  I would say not.  First of all the functionality you seek is already in the system.  Perhaps you need a support package application if your system has a very old SP level. In genreal changing the ALV component, would be a bad idea because it is very widely used and very generic.  It is also quite often changed by SAP.

  • Dynamic ALV columns in Web Dynpro ABAP

    Hello masters:
    Does anybody know how to build an ALV with dynamic columns in a WD4A?
    I know how to make an ALV with a dynamic context node (dynamic DDIC structure), but it isn't the problem. First, I need to validate data entries, and then I will know how many fields I have to show.
    I've been reading about interface IF_WD_CONTEXT_NODE_INFO. I think some of its methods can be useful to me. Can you help me to solve that?
    Thanks.

    Hi Rodrigo,
    There are two ways for it:
    1) Creating an attribute dynamically under the Staticly defined node.
    2) Creating a new node dynamically with your desired columns in it.
    I am explaining the second process, Here it as follows:
    1. Create a WDC, and use the component SALV_WD_TABLE.
    2. Create a node in the context to store the defined strucutre name.
    3. Read the node and set the structure name to that node from which you want to get the columns.
    4. Use this structure name and create a new node dynamically.
    5. Set the data to this dynamically created node.
    6. Set this context node to ALV.
    Here is the sample code:
    To get the strcutre from where you want to fecth the fields.
    tabname_node->get_attribute( Exporting name = 'TABLENAME'
                                  Importing value = tablename ).
    translate tablename to upper case.
    *create sub node named TEST1 of structure (tablename)
    cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
       parent_info = rootnode_info
       node_name = tablename
       structure_name = tablename
       is_multiple = abap_true ).
    DATA: stru_tab type ref to data.
      field-symbols: <tab> type table.*Create Internal Table
    create data stru_tab type table of (tablename).
    assign stru_tab->* to <tab>.*Get table content
    select * from (tablename) into corresponding  fields of table <tab>.*get  instance of new node
    dyn_node = wd_context->get_child_node( name = tablename ).*Bind Internal table to context node.
    dyn_node->bind_table( <tab> ).*instantiate alv component
    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.*pass context node to alv
    data: l_ref_interfacecontroller type ref to iwci_salv_wd_table .
    l_ref_interfacecontroller =   wd_this->wd_cpifc_alv( ).
      l_ref_interfacecontroller->set_data( dyn_node ).
    Hope it helps..
    Good day!
    Regards,
    Shashikanth. D

  • 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

  • Shooping cart creation in SRM 7.0 using web dynpro ABAP classes.

    Hi,
    We have recently upgraded to SRM 7.0 from SRM 4.0. We are using customized portal application for the creation of the shopping cart.I am planning to create custom FM which will use the standard Web dynpro ABAP classes to create the shopping cart.
    Could you please guide with the classes that are need to be implemented and the sequence of the classes used in the shopping cart creation.
    I think these are the classes that are used in the standard web dynpro ABAP component.
    CL_FPM_EVENT ->                  Creates an instance of this class based on an event ID.
    CL_BADI_FLT_DATA_TRANS_AND_DB -> Data Handling: Transport and Database.
    CL_EXITHANDLER ->               Class for Ext. Services Within Framework of Exit Technique.
    CL_EX_BBP_DOC_CHANGE_BADI ->     BAdI Class CL_EX_BBP_DOC_CHANGE_BADI.
    CL_BBP_OBJECTS_ACCESS ->         Access Functions for Object Types.
    /SAPSRM/CL_PDO_BO_SC ->          Shopping Cart BO.
    Your expert comments will be appreciated...
    Regards,
    Naresh

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • 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

  • Pixel tracking in web dynpro abap

    Hi,
    I have a scenario where in we are tracking job applicant source. Lets say a job seeker goes to careerbuilder.com and searches for job. At that point, careerbuilder.com sets a cookie in the job seek's computer. when Job seeker clicks to appy for job that takes him to our company sap e-recruiting job application page. when job seeker finally clicks send application button from web dynpro abap,  we are rendering external https url as image using rfc destination from web dynpro abap. The external https url which basically reads the cookie ithat is set by careerbuilder.com site in the client computer. 
    External url as rfc destination is not reading the cookie even though I have enabled cookie read option and used http1.1 in rfc destination.
    does anyone have any idea how sap wda handles client cookie? how can we make a external url which renders as image can be set to no caching? any help is highly appreciated.
    thanks
    Vijay

    Hi,
    Please refer these links for cookies -
    Re: Get a cookie from web dynpro application
    Regards,
    Lekha.

  • Smart forms in web dynpro abap

    how to use smart forms in web dynpro abap ????
    what are the steps??

    Hi Ankit,
    1.create a node(Eg:PDF)  with attribute(SOURCE type xstring )  
    2.use Interactiveform UI element in the view
    3.Bind the pdfSource property of the UI to the attribute SOURCE
    4.in method write logic for call the smart form
      Pass the output of the smartform function call to
      function module CONVERT_OTF to convert it to PDF data.
    method displaypdf .
    data : l_x(1) value 'X'.
    data: lv_text type char3,
    lv_syucomm type char1,
    ls_pdf type xstring,
    lv_fm_name type rs38l_fnam,
    lv_control_parameters type ssfctrlop,
    lv_output_options type ssfcompop,
    lv_ssf_output type ssfcrescl,
    lt_otfdata type table of itcoo.
    data:
    node_input1 type ref to if_wd_context_node,
    elem_input1 type ref to
    if_wd_context_element,
    stru_input1 type
    ig_componentcontroller=>element_zinput.
    * navigate from <CONTEXT> to <INPUT1> via lead selection
    node_input1 = wd_context->get_child_node( name
    ig_componentcontroller=>wdctx_zinput ).
    * get element via lead selection
    elem_input1 = node_input1->get_element( ).
    * get all declared attributes
    elem_input1->get_static_attributes(
    importing
    static_attributes = stru_input1 ).
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM_NAME'
    importing
    fm_name = lv_fm_name
    exceptions
    no_form = 1
    no_function_module = 2
    others = 3
    if sy-subrc <> 0.
    * Error MESSAGE
    endif.
    * Set relevant control parameters
    lv_control_parameters-getotf = l_x. "OTF output
    lv_control_parameters-no_dialog = l_x. "No print dialog
    lv_control_parameters-preview = space. "No preview
    * Set relevant output options
    lv_output_options-tdnewid = l_x. "Print parameters,
    lv_output_options-tddelete = space. "Print parameters,
    call function lv_fm_name
    exporting
    * ARCHIVE_INDEX * ARCHIVE_INDEX_TAB *
    ARCHIVE_PARAMETERS control_parameters = lv_control_parameters
    * MAIL_APPL_OBJ * MAIL_RECIPIENT * MAIL_SENDER
    output_options = lv_output_options
    user_settings = space
    pernr = stru_input1-zpernr
    reinr = stru_input1-zreinr
    pdvrs = stru_input1-zpdvrs
    importing
    * DOCUMENT_OUTPUT_INFO job_output_info = lv_ssf_output
    * JOB_OUTPUT_OPTIONS exceptions
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    others = 5
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    refresh lt_otfdata.
    lt_otfdata[] = lv_ssf_output-otfdata[].
    call function 'SSFCOMP_PDF_PREVIEW'
    exporting
    i_otf = lt_otfdata
    exceptions
    convert_otf_to_pdf_error = 1
    cntl_error = 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.
    data: l_dummy type standard table of tline,
    pdf_data type xstring,
    pdf_size type i.
    clear: pdf_data, pdf_size.
    * convert otf to pdf
    call function 'CONVERT_OTF'
    exporting
    format = 'PDF'
    importing
    bin_filesize = pdf_size
    bin_file = pdf_data
    tables
    otf = lt_otfdata[]
    lines = l_dummy
    exceptions
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    others = 4.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    data:
    node_pdf type ref to if_wd_context_node,
    elem_pdf type ref to
    if_wd_context_element,
    stru_pdf type
    if_componentcontroller=>element_pdf ,
    item_source like stru_pdf-source.
    * navigate from <CONTEXT> to <PDF> via lead selection
    node_pdf = wd_context->get_child_node( name if_componentcontroller=>wdctx_pdf ).
    * get element via lead selection
    elem_pdf = node_pdf->get_element( ).
    * set single attribute
    elem_pdf->set_attribute(
    exporting
    name = `SOURCE`
    value = pdf_data ).
    endmethod.
    Thanks
    Chinnaiya P

  • 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

  • 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

  • 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

  • Back camera not working on iPhone 4S 7.0.4

    I had not issues from going to the new OS and everything worked fine.  Then there was small update for the OS 7. and now the back camera does not work.  It's either black or a grey image.  I have tried installing the suggest app "Awesome Camera" with

  • Problem understanding Aspect Ratio

    Please help, I thought I knew what I was doing, but I am afraid I am becoming more confused on this topic of Aspect Ratio. Ok, here's the scenario: I have a mixture of 4x3 and 16x9 footage in the timeline and the end product is going to be DVD. So as

  • Printer button invisible in CRXI Designer Release 2 SP 5 / Windows 7

    Hi, I'm using CRXI Developer Release 2 SP5 (11.5.11.1470, just updated from Release 1 as suggested in another thread)) under Windows 7. Under Windows XP, the dialog "page setup" contains a button "printer" (frame "print options"). This button is invi

  • Correctly done AIP needed for reader 10.0.1

    I just can't seem to get this.  Couldn't get for 9.4.2 either. msiexec /a acroread.msi /p adobetier1update.msp I click next and next and then it's done. It says 10.0.1 in add remove programs, but the install is still 10.0.0.  The C:\program files\ado

  • Create an iso of Windows 8 with custom OEM name and information

    I have searched EVERYWHERE for this. I installed the new windows 10 ADK on Windows 7 (They say it works on 7) and it has tons of features but I can't find a single guide or anything on how do just change the OEM info. Here is exactly what I want to d