Regarding link to action.

Hi all,
In my case i have to diplay list of records in ALV.in that ALV ,we have provide link to action,by click on this it has to display another view.
i m able to calling the next view whenever click on this .but i need to carry value of clicked one.how can i get the value of selected .
Regards,
Ravi

Hello,
Do the following to get the selected value:
You need to code this in the event handler method related to the event ON_CLICK from the ALV component.
  DATA lr_bookingid TYPE REF TO bapisbodat-bookingid.
* Get the selected booking id
  lr_bookingid ?= r_param->value.
R_PARAM is an importing parameter in the event ON_CLICK from the ALV component.
Regards.

Similar Messages

  • Question regarding GO URL link with &Action=Navigate in OBIEE 11g

    Hello All,
    Actually I am working with the GO URL Links in OBIEE 11g.When I am trying to use the link as
    &Action=Navigate&p0=3&p1=bet&p2="Time%20Periods".Date&p3=2+ '01/01/2011'+'01/31/2011'
    The data is not getting filtered.It is giving me all the data which I don't need also..Is this a bug or am I doing any mistakes..Please let me know..

    Actually I have a few parameters or filters and I am using those filters in the GO URL Link but that filters when I am applying in
    &Action=Extract it is working properly.But When I am trying the same with &Action=Navigae it is not gining me the results what I want..

  • How to handle "link to action" in a GUIBB

    I have a GUIBB table, where a specific column is link to action.
    So if the user clicks on such a cell i want to navigate to another application.
    The question from my side is, how/where can i handle the link to action?

    Hi Rene,
    You can use IF_FPM_GUIBB_LIST~PROCESS_EVENT method of component configuration feeder class. In common case on manipulation with 'link-to-action' column if_fpm_guibb_list=>gc_guibb_list_on_cell_action action is triggered.
    Example:
    if if_fpm_guibb_list=>gc_guibb_list_on_cell_action.
         io_event->mo_event_data->get_value(
              exporting iv_key   = if_fpm_guibb_list=>gc_event_par_column_name
              importing ev_value = lv_column ).
              if lv_column = 'LINK_TO_APP_COLUMN'.
                   io_parameter->get_value(
                          exporting iv_key   = if_fpm_guibb_list=>gc_event_par_row
                          importing ev_value = lv_row_index ).
                   " read data by index and call application
              endif.
    endif.
    Kind regards, Aliaksandr.

  • Link to action doesn't work in a POWL application

    Hi,
    I have developed a web dynpro ABAP application and it is called by portal,
    This WD calls standard POWL, in a POWL there is a LinkToAction field.
    When I click on field the system should open a new window (shopping cart detail),
    but it doesn't happen anything.
    which could the problem be?
    Thank you.
    Best regards.
    Al

    Hi Alberto,
    1. Define an Action (corresponding to your Link to action which is typically the FIELD Name of the column in POWL Table) in your POWL feeder Implementation "IF_POWL_FEEDER~GET_ACTION" .
    IF_POWL_FEEDER~GET_ACTION is a standard object of custom feeder class, how can I define a new Action?
    <Vineet> See the Wiki Link http://wiki.sdn.sap.com/wiki/display/WDABAP/DocumentationInformationabout+POWL
    This has a document (POWL.doc) for POWL, refer page number 20. You can use parameter C_ACTION_DEFS for explicitly defining Actions.
    2. Handle the defined action in another feeder implementation "IF_POWL_FEEDER~HANDLE_ACTION".
    this code could be rigth?
    METHOD if_powl_feeder~handle_action.
    FIELD-SYMBOLS: <shopping_cart> TYPE STANDARD TABLE.
    IF i_actionid = 'SELECTION'.
    triggers the event
    e_portal_actions-fire_wdevent = abap_true.
    Pass parameters to event
    ASSIGN c_result_tab TO <shopping_cart>.
    i_shopping_cart = <shopping_cart>.
    selected row
    READ TABLE c_selected INTO ls_selected INDEX y_index.
    Read selected POWL data
    READ TABLE i_shopping_cart INDEX ls_selected-TABIX INTO s_shopping_cart.
    CHECK sy-subrc = 0.
    Pass parameters
    ls_parameter-key = 'OBJECT_ID'.
    ls_parameter-value = 'I_'.
    APPEND ls_parameter TO e_portal_actions-parameters.
    ENDIF.
    ENDMETHOD.
    <Vineet> Seems good provided you have defined the action name in "your class->IF_POWL_FEEDER~GET_ACTION" as 'SELECTION'.
    3. Now you need to raise an portal event from the method "IF_POWL_FEEDER~HANDLE_ACTION".
    where a portal event has to be raised?
    <Vineet> You have alrday raised it when you used "e_portal_actions-fire_wdevent = abap_true", as above you can additionally pass parameters as you have done in pushing some data in "e_portal_actions-parameters".
    4. This Portal event will be again captured in the event "POWL_FOLLOW_UP" from POWL WD component "POWL_UI_COMP"
    <Vineet>Let's assume your WD component is "MY_COMP" which uses "POWL_UI_COMP". then in the component controller or View you can handle an event "POWL_FOLLOW_UP" which is a POWL Interface event. This vene has the same action "SELECTION"a nd the parameters which you have raised from "your class->IF_POWL_FEEDER~HANDLE_ACTION".
    5. You can handle this event "POWL_FOLLOW_UP" in your WD which uses "POWL_UI_COMP" and throw a pop-up from your WD component.
    it is not clear point 5.
    <Vineet> From the event handler of "POWL_FOLLOW_UP" you can launch another webdynpro in a po-up or a new winmdow.
    Please let me knwo in case you face issue.
    Regards
    Vineet
    thanks.
    Best regards.

  • Link to action in editable ALV

    Hi experts,
    I have an editable alv with a column where I implemented the UI Element "Linktoaction" for the cells of this column. I implemented it in the WddoInit-Method in my view with the alv:
    lr_column_settings ?= l_value.
      lr_column = lr_column_settings->get_column( 'LINK' ).
      CREATE OBJECT lr_linktoaction.
      lr_linktoaction->set_text( value = 'Go to Detail' ).
    If I have an normal InputField I need:
    lr_column->set_cell_editor( lr_input_field ).
    What have I to do for getting an action for clicking on the Link? The link with the text "Go to Detail" is displayed in the editable alv. But how can I navigate to another view by clicking?
    Thanls a lot for your help!!
    Best Regards
    Ingmar

    Hi Ingmar,
    Implement 'ON_CLICK_EVENT' in the same view where u have ALV. Clicking on the link in the cell using link to action gives you the following information which u can use (pass to other view etc..) -
    COLUMN_ID
    INDEX
    ATTRIBUTE
    VALUE
    You can read these values and store them in a node.
    Create one node in the view by name 'EVENT_PROPERTIES' with attributes 'NAME' and 'VALUE' of type string both and use the below code in on_click_event. Here I am navigating to the next view after clicking the link, you can do whatever u want depending on ur requirement.
      DATA: lr_node TYPE REF TO if_wd_context_node,
            lt_event_properties TYPE if_models_list_view=>elements_event_properties,
            ls_event_properties TYPE if_models_list_view=>element_event_properties.
      FIELD-SYMBOLS: <l_value> TYPE ANY.
    fill internal table
      ls_event_properties-name = 'COLUMN_ID'.
      ls_event_properties-value = r_param->column.
      APPEND ls_event_properties TO lt_event_properties.
      ls_event_properties-name = 'INDEX'.
      ls_event_properties-value = r_param->index.
      APPEND ls_event_properties TO lt_event_properties.
      ls_event_properties-name = 'ATTRIBUTE'.
      ls_event_properties-value = r_param->attribute.
      APPEND ls_event_properties TO lt_event_properties.
      ASSIGN r_param->value->* TO <l_value>.
      ls_event_properties-name = 'VALUE'.
      ls_event_properties-value = <l_value>.
      APPEND ls_event_properties TO lt_event_properties.
    navigate to context node EVENT_PROPERTIES
      lr_node = wd_context->get_child_node( 'EVENT_PROPERTIES' ).
    bind internal table to context node
      lr_node->bind_table( lt_event_properties ).
      wd_this->fire_to_pi_main_view_plg( ).
    Regards,
    Gaurav

  • Link to Action - How to call a DynPro application?

    I am new to ABAP Web DynPro. I have a basic question with regards to accessing any dynpro application with Link to Action object. Basically I created a WebDynPro page with some links (Link To Action).  On click of these links I want to call another DynPro application.   Can anyone just provide me with a code snippet for the onAction event that calls the dynpro application and opens it in the same browser.
    Thanks.

    Hi Shan,
    wven i am new to Web dynpro,what i can think of is when we create new webdynpro appplication we get hyper link and we can call our application using this link and we have Fm to call teh same .in your onaction event we can call this FM 'CALL_BROWSER'
    Sample code for the same :
    CALL FUNCTION 'CALL_BROWSER'
    EXPORTING
    URL = 'http://iginsapecc.in.intelligroup.com:8100/sap/bc/bsp/sap/zvin_tran1/first.htm'
    WINDOW_NAME = ' '
    BROWSER_TYPE =
    CONTEXTSTRING =
    EXCEPTIONS
    FRONTEND_NOT_SUPPORTED = 1
    FRONTEND_ERROR = 2
    PROG_NOT_FOUND = 3
    NO_BATCH = 4
    UNSPECIFIED_ERROR = 5
    OTHERS = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards
    Poornima

  • Table Cell Editor - Link To Action UI

    Hi,
    I have a Table UI element in the first view and i need that the first column should have Link To Action UI as the cell editor.
    For this the requirment is that Context Attribute Type should be Boolean. please let me know why this is so.
    Also i want that Link To Action UI should have the text property set to a values from another context attribute. How will this be possible. Please provide some suggestion on this.
    Regards
    Sidharth

    Hi,
    Do you use the table binding wizard? There the first option for the binding property of a Link to action is "enabled" as far as I can remember... And <b>this</b> of course has to be boolean.
    If you want to bind the text property to a Context element you can do it by choosing text as binding property.
    You may also bind the text property to a Context element after completing the wizard.
    Does this answer your question?
    Rgds
    Daniel

  • ABAP WD ALV Link to action for a Field

    Hi,
    I got a special question to Webdynpro ALV developing:
    How can I generate a link to a seperate Cell or Field of the ALV depends on the content of other field-values in the same row.
    e.g. Depends on a response status value of an record in the table I want to allow a link to action for another field in the same row.
    Currently, I have "link to action"s for all cells in a column. What I need, is only some cells in the column depends on values in the same row.
    Thanks for your help,
    Eugen

    Eugen, the fallowing link may be help you.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8?overridelayout=true
    Regards,
    Edson Thomaz

  • Adobe form on Link to Action

    Hi Experts,
    I an working on WDA application in which i have to call an adobe form on table column which is a link to action.
    form is already created thorugh SFP of standard form type.
    In some cases This form will be interactive and for some its not......which is through parameters in the form.
    With ABAP driver program it is working fine but i donno how to use this in WDA.
    Please suggest what to do...
    Regards
    Nik

    Hi Nikhil,
    The solution which I had suggested was for displaying the Adobe form in a new window on click of the LinkToAction field. Say suppose I have a view by name AIF & it is embedded within a window W_AIF. Then upon clicking on the LinktoAction within the MAIN view I can put the below code within the LinkToAction's onAction event to display the form in a new window:
    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
    DATA lo_api_component  TYPE REF TO if_wd_component.
    DATA lo_window         TYPE REF TO if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = 'W_AIF'
    *                  title                  =
    *                  close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
    *                  close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).
    You can generate the above coding through the code wizard by selecting the option as, "Generate Popup" & select the window name as the 2nd window that you have created.
    Anyways now that you have specified that you want the form to be displayed within the same view as the LinkToAcion you can go ahead as how specified by Saketh. Define a context attribute say VISIBILITY of type WDUI_VISIBILITY. Give it a default value of 01 which would make it as invisible by default. Bind the "visible" property of the InteractiveForm UI element to this attribute. Now within the LinkToAction's onAction method you can just set the context attributes value to "02" which would mean making the form visible within the same view.
    METHOD onactioncall_aif .
      wd_context->set_attribute( EXPORTING name  =  'VISIBILITY'
                                           value = '02' ).
    endmethod.
    Regards,
    Uday

  • Preserving PDF links and actions created in Acrobat after editing in Illustrator

    I created an interactive PDF in Acrobat from an Illustrator file saved as a PDF.  It's basically an interactive prototype that simulates dropdown menus, highlighted selections and navigation between screens.  Using the Link Tool, I set layers to appear through the layer visibility action, and certain layers to toggle through javascript.  Since the prototype is evolving, however, I have to periodically make minor edits to it in Illustrator.  Once I make an edit and save the PDF again, when I open up the saved document in Acrobat, all the link tool actions are gone.  This is highly frustrating because most of the edits take just a minute or two in Illustrator, but I have to re-create all the links in Acrobat when I'm done, which takes a very long time.  How can I make minor edits in Illustrator while preserving the action elements I created in Acrobat?

    Well, that's a bummer.  It's so close to a feasible workflow for generating quick early-stage prototypes that you can continue to work on. 
    Thanks for the info.

  • SAP QM Issues regarding follow-up action after Usage Decision

    Dear Gurus -
    Kindly need your expertise to resolve these issues regarding follow-up action.
    1. After taking the UD i need to trigger the follow-up action to send an email with the long text to a group of people. As per standard SAP the email goes to the person taking the UD. Kindly can some one explain what & where do i need to make the changes. Also please let me know what is the customized Email ID table where mail ID's will be stored which fuction module can extract.
    2. Can i also use the same functionality for partial lots during inprocess inspection. I need to send an email to a group in case the valuation is rejected for that operation.
    Any response is highly appreciated.
    Thank You.
    Edited by: sunil t on Jan 6, 2010 7:03 PM

    Hi
    Please go through my recent thread
    Incomming Inspection Auto mail if Rejected
    Regards
    Sujit

  • Command link / button action is not taking place if i use it in iterator.

    Hi,
    I am new to ADF, i am facing 1 issue while implementing ADF mobile browser application.
    Issue: command link / button action is not taking place if i use it in iterator. its just refreshing the page it self and displaying as no records.
    Scenario is i am populating the search results in results page from search page using iterator, i want to get the complete details in different page (results page -> details page) .
    I have tried in different ways.like
    case1:
    <tr:panelGroupLayout id="pgl2" layout="vertical" styleClass="af_m_panelBase">
    <tr:panelHeader text="#{classviewBundle.SEARCH_RESULTS}" id="ph1"/>
    <tr:iterator id="i1" value="#{bindings.SubjectVO1.collectionModel}" var="subject"
    varStatus="subIndx" rows="100">
    <tr:panelBox text="#{subject.Subject} #{subject.CatalogNbr} - #{subject.CourseTitleLong}"
    styleClass="af_m_listingPrimaryDetails" id="pb1">
    <f:facet name="toolbar"/>
    <tr:table var="ssrClass" rowBandingInterval="1" id="t1" value="#{subject.children}"
    varStatus="clsIndx" rowSelection="none"
    binding="#{SessionBean.subjectTable}" verticalGridVisible="true"
    emptyText="No Records" width="100%">
    <tr:column id="c9" sortable="false" styleClass="width:100%">
    <*tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"*
    id="commandLink2" styleClass="af_m_listingLink"
    *action="#{pageFlowScope.BackingBean.searchaction}"></tr:commandLink>*
    //remaining code
    in this case commandlink action is not able to invoke serachaction() method
    case 2:
    <tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"
    id="commandLink2" styleClass="af_m_listingLink"
    action="classdetails}"></tr:commandLink>
    in this case its not able to navigate to classdetails page.
    I gave correct navigation cases and rules in taskflow,but its working fine when the command link is out of iterator only.
    i tried with actionlistener too.. but no use.. please help me out of this problem .
    *Update to issue:*
    The actual issue is when i use command link/button in an table/iterator whose parent tag is another iterator then the action is not taking place.
    the structer of my code is
    < iterator1>
    #command link action1
    < iterator2>
    #command link action2
    </ iterator2>
    < /iterator1>
    #command link action1 is working but "#command link action2" is not...
    Thanks
    Shyam
    Edited by: shyam on Dec 26, 2011 5:40 PM

    Hi,
    To solve my problem I used a af:foreach instead.
    <af:forEach items="#{viewScope.DataBySubjectServiceBean.toArray}" var="text">
    <af:commandLink text="#{text.IndTextEn}" action="indicator-selected" id="cl1">
    <af:setActionListener from="#{text.IndCode}" to="#{pageFlowScope.IndicatorCodeParam}" />
    </af:commandLink>
    </af:forEach>
    By the way you need to convert the iterator to an Array using a ManagedBean.
    public Object[] toArray() {
    CollectionModel cm = (CollectionModel) getEL("#{bindings.TView1.collectionModel}");
    indicators = new Object[cm.getRowCount()];
    for(int i=0;i<cm.getRowCount();i++){
    indicators[i] = cm.getRowData(i);
    return indicators;
    public static Object getEL(String expr) {
    FacesContext fc = FacesContext.getCurrentInstance();
    return fc.getApplication().evaluateExpressionGet(fc,expr,Object.class);
    Hope that helps-
    Edited by: JuJuZ on Jan 3, 2012 12:23 AM
    Add getEL Method

  • Hot Key of Link to action won't work

    Hi,
    tried to create a link to action witha hotkey, but unfortunately the action is not triggered. Action is triggered when I click the link
    using 7.1.1
    is there something else i need to activate? Tried it with IE7 and FF
    Stefan

    Hi,
    tried to create a link to action witha hotkey, but unfortunately the action is not triggered. Action is triggered when I click the link
    using 7.1.1
    is there something else i need to activate? Tried it with IE7 and FF
    Stefan

  • Creating a number of Link to Actions based on the Output of an ALV

    Hello Experts,
    I have an ALV table as an output in WDA in which the number of records are unknown.
    I want to limit the number of records to 500 at a point of time.
    Below the table i need to have link to actions placed like 1-500 501-1000 10001-1500 and so on.
    As the number of records are unknown i need to have these link to actions divided among total records.
    And if the table shows 1-500 records the Link to Action 1-500 should become text so that the user will not be able to click on it.
    So my requirement is
    1.How to limit the number of records to 500.
    2.How to place the link to actions dynamically based on the number of output records.
    3.How to change the Link to Action to Text.
    Please help me in this.
    Thanks in Advance,
    Shravan

    Hello Shravan,
    If you know the total number of records at runtime then its simple. Otherwise you need to write some complex logic. I assume that at runtime while launching the application you will know the total number records .
    1.How to limit the number of records to 500.
    As Srinivas mentioned call the set_visible_row_count method by passing 500
    2.How to place the link to actions dynamically based on the number of output records.
    Logic for the same.
    data i_total type i value 1250. "say total number of records
    data i_max type i value 500. "your max records to be displayed in aLV at anypoint of time
    data i_num type i.
    data i_rem type i.
    i_num = i_total div i_max.
    i_rem = i_total mod i_max.
    data lv_end_text type string.
    data lv_start_text type string.
    data lv_final_text type string.
    data i_start type i.
    data i_end type i.
    do i_num times.
      i_start = ( i_max * ( sy-index - 1 ) + 1 ).
      lv_start_text = i_start.
      i_end = i_max * sy-index.
      lv_end_text = i_end.
      concatenate lv_start_text ' - ' lv_end_text into lv_final_text RESPECTING BLANKS.
       "Write the logic to create the Link to Action - as suggested by Srinivas
    enddo.
    if i_rem > 0.
      i_start  = i_max * i_num + 1.
      lv_start_text = i_start.
      i_end = i_max * i_num + i_rem.
      lv_end_text = i_end.
      concatenate lv_start_text ' - ' lv_end_text into lv_final_text RESPECTING BLANKS.
    " Write the logic to add the last linkToAction
    endif.
    3.How to change the Link to Action to Text.
    If you set the enable property of the LinkToAction to abap_false then it will be disabled and displayed as text.
    Hope this helps.
    BR, Saravanan

  • Alv --link to action

    HI,
    I have 5 columns in alv ...in that 3 col.. having link to action...if i click on link to action it  should show some popup...in pop up which link to action i clicked that column name should be binded to one input field in pop up...can any one suggest me how to get col. name

    Hi,
    The event handler for link to action has two importing parameters.
    1.WDEVENT
    2.R_PARAM of type IF_SALV_WD_TABLE_CLICK.
    R_PARAM has these 4 attributes.
    You have attribute,column,index and value
    You can get your column name like
    ls_col_name =  r-param->column

Maybe you are looking for

  • Enhance screen for tcode FCH9

    I need to enhance the screen for tcode FCH9 to add more void reason. I do not want the check to be voided though. Is there is a user exit to enhance this screen or will have to create a custom transaction for this.

  • What to do with water damaged MacBook Pro?

    I've had my MacBook Pro 13" since late last year and since then have spilt soda on it 2 times. The first time it didn't seem to be damaged at all by it but the second time the macbook turned off and I left it for a while before trying to turn it on a

  • 3g dosen't work in iphone 5

    3g data problem in ios 8.0.2 please help....

  • Lenovo G360 - Screen fades to black

    The laptop screen will fade to black while in windows. The laptop is still on but the screen picture is gone. Its not the battery becuase its a new one. The only thing that brings the screen picture back is after I have put the laptop in the refriger

  • Execution Time in minutes

    Hi, it´s me again with another question. The Execution Time in the test report (xml) is always displayed in seconds. How can I change this in minutes? Thanks a lot. Daniel