ABAP WebDynpro: pass a param into action

Hello,
Is it possible to pass a parameter into action?
I have something such code:
drop_down_figure = cl_wd_dropdown_by_key=>new_dropdown_by_key( bind_selected_key = 'REPOSITORY.FIGURES' on_select = 'GET_OPERATOR' ).
I need to be able to pass a parameter to GET_OPERATOR action. Is it possible to define such an action?
Thank you.

Hi Georgy,
Check this "Parameter Mapping" http://help.sap.com/saphelp_nw04s/helpdata/en/33/b11042705a5533e10000000a155106/frameset.htm
Best regards, Maksim Rashchynski.

Similar Messages

  • ABAP Webdynpro passing parameter

    I am trying to pass a parameter to an ABAP webdynpro.
    i have a parameter defined in the application "PLANNING_SEQUENCE"
    if i run the webdynpro via a direct url and pass the parameter ?PLANNING_SEQUENCE=<sequence> it seems to receive the parameter ok.
    if i run the webdynpro through an abap webdynpro iview and try to pass the parameter via ApplicationParameter=PLANNING_SEQUENCE=<sequence> it doesn't.
    anyone know how this can be done??

    Hi,
    I think for the webdynpro Iview this parameter works fine when integrated in portal.
    First try running in Portal otherwise do this way.
    When you call this Webdynpro in Poratl Iview then there are also portal application parameters
    where you need to pass it.
    Please give it a try as I have not tried.
    Regards,
    Lekha.

  • JRC with JavaBeans datasrc - how to pass params into javabean.getResultSet?

    Hi.
    I'm developing javabeans data sources for crystal reports for the java/JRC engine.  I've seen the document entitled Javabeans Connectivity for Crystal.  It TALKS ABOUT passing params into the methods that return java.sql.ResultSets but there is absolutely no example code anywhere that I can find on how to do it.
    What I don't understand is:  Since the JRC engine is basically controlling the instantiation of the javabean, other than calling some type of fetch method in the constructor, how the heck am I supposed to pass in db connection info and a sql string? 
    Anybody got sample code for how to call/where to call parameters that I would put in a custom getResultSet method??
    Thanks.

    I don't think that a Connection Pool class would be an ideal candidate for becoming a JavaBean. One of the most prevalent use of a JavaBean class it to use it as a data object to collect data from your presentation layer (viz. HTML form) and transfer it to your business layer. If the request parameter names match the Bean's property names, a bean can automatically get these values and initialize itself even though it has a zero argument ctor. Then a Bean could call methods in the business layer to do some processing, to persist itself etc.

  • Passing data from report to abap webdynpro

    Hello,
    I'm calling an abap webdynpro from an abap report through CALL_BROWSER MF.
    I need to pass data from a report to a webdynpro. It is a table that I want to pass. I've tried to user memory ids, but as I was suspecting, it doesn't work.
    Is there a way of doing it?
    Thanks and best regards,
    Vasco Brandã

    Hi,
    Please read this thread : Is it possible to pass a table as input parameter to a web dynpro app?
    Regards,
    Pierre

  • Pass pernr from employee search iView to abap webDynpro in Related Activity

    Hi All,
    I have seen many threads explaining how to pass pernr from employee search iView to custom ABAP webDynpro application in the "Employee profile" page. Also seen sap note 1112733.
    I am trying to launch custom ABAP webDynpro application from "Related Activities" view found in the employee information page in MSS.  I want to pass pernr selected from Employee Search iView to the ABAP webDynpro application in "Related Activities" view.
    In the ABAP webDynpro application, I am listening to the portal event (as per note 1112733) but the ABAP webDynpro can not catch the event.
    Anyone has passed pernr from employee search iView to the ABAP webDynpro application launched from "related activities" view?
    Regards
    Ashutosh

    Hi Ashutosh,
    can you tell me exactly what you did? I have the same issue.
    Thanks,
    Joeri

  • Passing params into an iFrame

    Ok last question.  I promise. 
    I have an iframe that in my irpt that I would like to pass a param from the main page into the iframe.
    Can I use the below javascript:iframe as a src= instead of href= and instead of ('Cored Wire') can I use document.Line.getBrowserObject().getSelectedDatalinkValue();
    I need to be able to stick the ibrowser value into this function so the iFram updates with the correct information.
    href="javascript:iFrame('Cored Wire');"
    function SelectLine(X)
         var LineID = document.Line.getBrowserObject().getSelectedDatalinkValue();
         var strUrl = "FR_Input_Production_History.irpt?Line=" + X;
         document.ifrReport.window.location.href = strUrl;
    href="javascript:iFrame('Cored Wire');"

    So, if I understand you correctly, you have a drop down iBrowser on the main page.  When a user selects a Line from the iBrowser, it fires the SelectLine(X) JS function and you want the iframe on the page to load the FR_Input_Production_History.irpt page with the correct Line as a URL param?
    So if your iframe is defined something like this:
    <iframe id="ifrReport" src=""></iframe>
    Then your JS code "document.ifrReport.window...." could be replaced with:
    document.getElementById("ifrReport").src = strUrl;
    I hope this isn't your last question!  I like SDN points and T-shirts...

  • How to pass params to Action Event handler in treeNode?

    Trying to use Tree in portlet I found impossible to determine selected node. (bug # 6354989).
    But I can (despite what is written in manual) use Action Event Handler. It works now (at least, I hope so).
    But I generate tree dynamically and cannot write event handlers for all its nodes. May be there's a way to write one event handler but distinguish node that triggered it? May be by passing additional params to handler?

    The tree component does not work well in portlets. This is a known problem.
    It uses cookies to pass the value of the selected node, but cookies do not work inside of portlets. So, the methods that would normally tell you which node is selected, return nothing. There are also no javascript properties which would allow you to output javascript to store the value somewhere in the page.
    Unfortunately there is no workaround for the bug you mentioned so far so far.
    Rose

  • How to launch an ITS screen from an ABAP WebDynpro Button Action

    Hello All,
    I have a requirement to launch an ITS Screen from ABAP WebDynpro. There will be abutton on the WebDynpro screen and when the user will click on that button, the ITS Screen will be launched.
    Can anyone please provide us some sample applications or sample code to achieve the above functionality.
    Points will be rewarded.
    Thanks
    Shyam

    Hi Shyam,
    You can achieve by using Launchpad Customizing and the Launchpad Navigation API's. Just make and entry on transaction LPD_CUST, create a launchpad role, add you target application there.
    At run time under the UI button you can call the API provided by CL_APB_LAUNCHPAD_API -->LAUNCH_APPLICATION to open the application. You can find many material on Internet for the same, with examples, even try some where-use in your system.
    I found one more helpful link.
    http://sapignite.com/call-sap-tcode-using-webdynpro-for-abap/
    Regards
    Vineet

  • Display pdf into an abap webdynpro view: disable navigation

    Hello
    is it possible to disable the navigation panes and/or the toolbar and/or statusbar of acrobat reader inside your abap webdynpro application?
    When you specify for example #navbar=0 as parameter then you disable the navigation pane.
    Eg: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/cfb80249-0801-0010-3eaa-829afeac170f#navpanes=0 and https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/cfb80249-0801-0010-3eaa-829afeac170f
    Is it possible in an abap webdynpro with a interactive form element?
    Thanks
    Luc

    Hi Luc M,
    We can Disable the ToolBar of Interactive Form, this can be done by writing the Code in WDDOMODIFY Method of the respective View.
    Do add the Following the Lines of Code in the WDDOMODIFY Method
    DATA: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
               LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'INTERACTIVE_FORM_UI_ELEMENT_NAME' ).
    LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    LR_METHOD_HANDLER->set_hide_toolbars( abap_true ).
    ***With the above code you can only disable the ToolBar.
    Regards
    Pradeep Goli
    Edited by: Pradeep Goli on Mar 17, 2009 2:45 PM

  • Passing command line JVM params into the code

    I am using a set of APIs that basically make a simple JDBC connection to an Oracle database and extract data out of it. However, the way the API has been written it requires the user to specify the Oracle driver parameter on the commad line...So to run the program you do:
    java -Djdbc.drivers=oracle.jdbc.driver.OracleDriver Test
    Is there any way I could read the -Djdbc.drivers=oracle.jdbc.driver.OracleDriver param into the code without having to include it in the command line? I am planning on making a call to the API via a servlet and not run it from a command line.
    Thank you

    There are two ways:
    1. The simplest one being to hard code the values in some variable in your code. But obviously, this is not the recomended solution since u can change the DB and so the Drivers change.
    2. Use Resource Bundle. Resource Bundle allows u to Pick Data from the Properties File(Any Text File with Name=value Pair named as <filename>.properties. Place your
    jdbc.drivers=oracle.jdbc.driver.OracleDriver
    in this File and then Use the Followint Code
    ResourceBundle resBun = ResourceBundle.getBundle("myapp");
    // Above Code will luk into the CLasspath for a file viz myapp.properties
    // so make sure this Directory where this file exists is within the Classpath.
    if(resBun != null)
    System.out.println("Checking Property: " + resBun.getValue("jdbc.drivers"));
    Hope this Helps.,
    Cheers,
    Manja

  • PR05 Transaction Iview from Abap Webdynpro

    Hi,
    From abap webdynpro, on action of one button, i'm calling PR05(Travel Expense Manager) screen by passing the parameters as follows and calling NAVIGATION_ABSOLUTE method:
    BUS_PARAMETER-KEY = 'PTP00-PERNR'.
      BUS_PARAMETER-VALUE = LS_EMPLOYEE_NODE-PERNR.
      Insert BUS_PARAMETER into table BUS_PARAMETER_LIST.
      CLEAR BUS_PARAMETER.
      BUS_PARAMETER-KEY = 'PTP1000-REINR'.
      BUS_PARAMETER-VALUE = LS_HEADER_NODE-REINR.
      Insert BUS_PARAMETER into table BUS_PARAMETER_LIST.
    It opens PR05 screen, with the correct employee list, but it does not populate the tripnumber and also it should skip the first screen.
    In the IView, i have already given OKCODE='MOD' for change of the trip and also PROCESS_FIRST_SCREEN=YES.
    In the business parameter i try to add for selecting the particular line in the table control of the PR05 screen, but that doesn't work.
      BUS_PARAMETER-KEY = 'PTP1000-MARKER(01)'.
      BUS_PARAMETER-VALUE = 'X'.
      Insert BUS_PARAMETER into table BUS_PARAMETER_LIST.
      CLEAR BUS_PARAMETER.
      BUS_PARAMETER-KEY = 'TRIPCHANGEINTERACTIV'.
      BUS_PARAMETER-VALUE = 'X'.
      Insert BUS_PARAMETER into table BUS_PARAMETER_LIST.
    So any inputs on how to auto select the line based on the trip number and go directly to particular change trip.

    Hi Alex,
    is there no possibility to open the transaction by calling a link? For example like this way:
    host, port, system, mandant, user, password, tcode (e.g.: 192.168.100.2:6000:xi?mand=300&user=xyz&passwd=xxx&tcode=se16).
    Do anybody other know if there is a possibility doing like this?
    Greetings, Alexander

  • Models in Abap Webdynpro.

    Hi All,
    I am a Java guy having knowledge in Java webdynpro, it happend for me to get into ABAP webdynpro just had a small query here.
    How does models functionality work in ABAp Webdynpro.
    How do we access RFC, BAPI, web services, EJBs etc in ABAP web dynpro.
    Thanks in Advance,
    Sai Krishna.

    Hi Sai,
    Model is nothing but the business logic similar to the Java webdynpro . I guess you have seen those Hook methods like WD_doinit, WD DOmodifyView some standard default methods which we get according to the requirement we write our code as and where we want . One basic thing is u must be aware of the Context which is the heart of the webdynpro abap applications the interaction between the screen and the database is done by this .
    Let me take a small example of how are we going to use the RFC or Bapis.
    EG:
    We have a screen UI elemnets in which we have one input field and a table our aim is to fetch the data into the table depending upon the input field or say selection field . and here we will be using say RFC or it may be a BAPI.
    SO step1. Intially we desing the screen UI elements , create a Node for the input field with cardinality (0:1). and create another node for the table binding with cardinality as (0:n).then bind the values of the screen .
    step2:  Now since after giving the value in the input filed we want to fetch the data. On action of the Button or on enter of the input filed we need to write our code.
    That means here our bapi or RFC comes into picture . what we need to do is get_attribute of the input field and call that RFC in import values pass the get_attribute value and see that it returns some table
    say lt_table.
    Now when you debug you can see the table values which we need to bind it to the table.
    lo_nd_table->bind_table( lt_table ).
    This will fetch the table values depending upon the input field values you giv .
    Hope it is clear and helpful.
    Have A GoodDay:)
    Regards,
    Sana.

  • Doubts in ABAP WebDynpro

    Hi Experts,
    I am new to ABAP WebDynpro and self-learning going through SDN stuff and other online-help. Please provide me
    your kind explanation on below doubts.
    1. When do we use GET_ATTRIBUTE and GET_STATIC_ATTRIBUTE
    2. How to read the index of a particular selected row in table?
    3. How do you change position of a particulr node dynamically?
    4. Is it possible to execute a component without a window?
    5. Is it possible to run a VIEW without embeding into a window in Webdynpro application?
    6. How to read the content entered in PARAMTER and SELECT-OPTION elements in ABAP Webdynpro? Can anybody pass code how to read entries?
    I mean GET_ATTRIBUTE or GET_STATIC_ATTRIBUTES is used for reading attribute value. 
    7. Is it possible to fix the Message window position? Show at the bottom of a screen? Please provide some code for this.
    8. Is it possible to change the color of a laber attached to a attribute dynamically? For example somefield is mandatory but you forgot to enter and press on u2018Continueu2019 then program should show that elementu2019s lable with redcolor text. Please provide me example code.
    Thanks in advance for the support and useful explanation!
    Regards,
    Meera.

    Hi
    Refer the answers inline
    1) When do we use GET_ATTRIBUTE and GET_STATIC_ATTRIBUTE
    GET_ATTRIBUTE
    Method to get the values of a context attribute.
    The prerequisite for this method is that the application knows the data type of the attribute.
    The value of the given attribute is copied to the export parameter. To do this the export parameter must have a data type to which a value can be written.
    GET_STATIC_ATTRIBUTES
    This method copies the static attributes to the transferred variable. If the structure is not identical, a move-correspondingis performed, which is not as efficient as a direct move, but is still useful in many cases.
    Static attributes are those that either have been declared or that belong to the structure with which the node was declared.
    2) How to read the index of a particular selected row in table?
    data: lr_element type ref to if_wd_context_element,
              lv_index type i.
      lr_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT'  ).
      lv_index = lr_element->get_index( ).
    3) How do you change position of a particulr node dynamically?
        Explain Bit deeply
    4) Is it possible to execute a component without a window?
        No it is not possible, actually the component view can be viewed by embedding it to the window
    5) Is it possible to run a VIEW without embeding into a window in Webdynpro application?
        No it is not possible, without window you cant run the view
    6) Is it possible to run a VIEW without embeding into a window in Webdynpro application?
      DATA LO_ND_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA LO_EL_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA LS_MAIN_NODE TYPE WD_THIS->ELEMENT_MAIN_NODE.
      DATA LV_INP_VALUE LIKE LS_MAIN_NODE-INP_VALUE.
    navigate from <CONTEXT> to <MAIN_NODE> via lead selection
      LO_ND_MAIN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'MAIN_NODE' ).
    get element via lead selection
      LO_EL_MAIN_NODE = LO_ND_MAIN_NODE->GET_ELEMENT(  ).
    get single attribute
      LO_EL_MAIN_NODE->GET_ATTRIBUTE(
        EXPORTING
          NAME =  `INPUT_VALUE`
        IMPORTING
          VALUE = LV_INP_VALUE ).
    7) Is it possible to fix the Message window position? Show at the bottom of a screen?
        Yes it is possible to show the messages by using the message area UI element in the needed position
    8. Is it possible to change the color of a laber attached to a attribute dynamically? For example somefield is mandatory but you      forgot to enter and press on u2018Continueu2019 then program should show that elementu2019s lable with redcolor text.
        Im working onit and let you know after i complete.
    Regards
    Arun.P

  • Calling different views at runtime based on my condition abap webdynpro

    Hi friends,
    Could you pls help me in this issue.
    I am new to webdynpro abap.
    I have an action on my first view.
    basically its a sales order linktoaction.  when i click it, i have to check a condition.
    if  process type = A,
    then navigate to view 2(different abap webdynpro component's view)
    elseif process type = B,
    then navigate to view 3(different abap webdynpro component's view)
    endif.
    I only have experience in calling one view for a action, so i dont have much idea on this how to acheive.
    I have this IF condition, on action event.ON that i need to call view of another application.
    thanks in advance,
    Niraja

    Hi Niraja,
    If you want to pass parameters to a WDA application you can pass them by URL link.
    Example: http://...?pass1=value1&pass2=value2 In this case you pass two parameters to the application.
    In WDA application you can control parameters in windows, you can add parameters in the plug 'Startup' which names are same as URL parameters, and then you can create notes/attributes in the context of windows then map them to the context of view. In the method of startup plug you can pass the parameters to the context of windows. You can search WDA help by WDA application parameters.
    You can check this [link |http://****************/Tutorials/WebDynproABAP/DynamicViews/Window.htm]for dynamic view navigation in a window. And no its a pdf file. It takes you to another website where they have explained it with step-by-step screenshots.
    You may also be interested in checking out this [link |http://****************/Tutorials/WebDynproABAP/views/navigation.htm]where they have explained Navigation from one View to other View along with parameters using Plugs with out using Component Controller context. It too isn't a pdf & does take you to another website.
    Hope these help.
    Regards,
    Uday

  • Calling an ABAP WebDynpro Popup from a BSP view

    I need to know if the following is possible.
    I have a requirement to call an ABAP WebDynpro Popup from a BSP view.
    When the Popup is triggered (eg via pushbutton) the BSP will pass data to the Popup, before the Popup is closed the Popup will pass data back to the BSP to be displayed in the BSP view.
    I do not want to rely on Portal Events as Portals may not be used, would really appreciate a clean simple solution.

    Hi,
    any webdynpro application has a URL behind it. Haven´t you tried to call that URL with Javascript code ??
    script language="Javascript"
          url = "test_page.htm" + "?field=" + param;
          window.open(url, "F4window", "width=400, height=400");
    /script
    You can pass data to the WD application using parameters as I show you after the "?".

Maybe you are looking for