Web Dynpro Tree with Hyperlink

Hello experts,
i´ve got a WebDynpro Abap application which conaints a tree - UI Element. This tree is filed with WD-Component names and by clicking a tree element the named WD-Component is loaded. Now i need a tree-node which sends the user to an external url, for example www.google.de
Does anybody know if this is possible?

Hi Benjamin,
Here you can use the concept of exit plugs. Refer this online help: http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm
I hope it helps.
Regards
Arjun

Similar Messages

  • Problems with tutorial: "Creating a Web Dynpro Tree"

    Hi!
    I'm a rookie and therefore I'm practicing on compleating some tutorials like "Creating a Web Dynpro Tree" (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ec6622-8da5-2a10-349b-868b6a553efa)
    I did just as the tutorial told me to (I think) but still I get a java.lang.NullPointerException when I deploy and run my application.
    In the bold line is where it is something wrong:
    public static void wdDoModifyView(IPrivateTreeView wdThis, IPrivateTreeView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
           if (firstTime) {
                IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TreeNodeType");
                /* parameter mapping from parameter "path" to
    parameter "selectedElement"
                treeNode._mappingOfOnAction()._addSourceMapping("path", "selectedElement");
                /* parameter mapping from parameter "path" to
    parameter "element".
                treeNode._mappingOfOnLoadChildren()._addSourceMapping("path","element");
        //@@end
    What I don't understand is what the function/meaning of the parameter path is. The parameters selectedElement and element I do recognize and have written. And I don't understand why there is a difference between the two underscored line of code (see above) even though the comments claim that it does the same kind of mapping.
    Best regards
    /Johan

    I tried to get "addSourceMapping()." underscored so people would better understand what I was referring to but it didn't work and that's why it looked weired.
    Thanks for your help Armin, now it works fine.
    It was as you said.
    if (firstTime) {
    IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TreeNodeType");
    When I changed "TreeNodeType" to it's real ID, "TheNode" I didn't get a nullPointerException. I think it must be wrong in the tutorial because I followed the instructions which said to name it "TheNode" but then the author mus have forgot to change it from the default ID ("TreeNodeType").
    Best Regards!
    /Johan

  • Examples of 'calling a web dynpro application with parameters'

    Hi!!
    I'm I have been watching manual 'Web dynpro for abap: advanced concepts' in the sections 'url parameters' and 'calling a web dynpro application with parameters'.
    Is there some example where these terms are seen.
    Thanks in advance.

    Hi Ana,
    a window inbound plug can have parameters.
    These parameters are automatically fished out of the URL by the framework.
    So your inbound plug handler method has easy access to the parameters.
    URL
    http://<host>:port/sap/bc/webdynpro/sap/<your application>?param1=xyz&param2=abc
    The application is configured to call an inbound interface(window) and plug.
    The plug can be declared with parameters.
    Double click on window inbound plug and add your parameters.
    The parameters are made available by framework if present in Launch URL.
    You can also call an application that has parameters  directly entered on the parameters tab.
    ie Parameters can be part of the application launch.
    regards
    Phil

  • Web dynpro screen with multiple rows with columns that can be edited

    Web dynpro screen with multiple rows with columns that can be edited individually:
    Hi
    I am busy creating a screen in web dynpro for ABAP which we would like to make available via Portal ESS (Portal 7).
    I need to add 'n type of table (or almost something like Excel) or something in which someone can type a few paycode numbers (there should be lets say 10 blank rows in which info can be typed in and if I click on a button or so, more rows must be added if necessary.  Then in the other colums stuff like amounts must be entered which one should also be able to edit then and there.
    Can anyone assist in what I can use for this?  There does not seem to be some existing element that I can use.
    Help will be appreciated.
    Regards
    Debbie

    Hi Debbie,
    Whiel Creating table you need to be care full that use chose INPUT FIELD as the CELL EDITOR. Just guessing that if ur table is not editable u might have choosen TextView as default cell editor type.
    check link for details on TABLE UI
    [http://help.sap.com/saphelp_erp2005/helpdata/EN/b5/ac884118aa1709e10000000a155106/frameset.htm]
    easy way is to first add UI ELEMENT TABLE to your VIEW, then right click over it & select create binding from context. After you have a pop up where you can select what columns you want what should be its cell editor etc.
    Greetings
    Prashant

  • Web Dynpro integration with R/3

    Dear all,
    We have the following requirement in Web Dynpro integration with R/3
    We have to update the local SQL tables based on R/3 system return values. R/3 system should call the webdynpro business method for updating local SQL Status table.  In the R/3 system after purchase order is created, via user exit it should call and update some fields in the local SQL tables. To solve this problem we have thought of following solutions possibility:
    1.       In R/3 system based on user exit, it calls the ABAP Proxy ->  XI (SOAP Adapter) -> Web Dynpro Web Service in WebAS->  XI -> ABAP Proxy -> User exit – PO continues.
    2.       In R/3 system based on user exit, it calls directly web service then web service goes to user exit.
    3.       In R/3 -> user exit -> ABAP Proxy – JDBC Adapter -> SQL stored procedure call - > user exit.
    Please give your valuable suggestion or any other options to solve above problems.
    And another one question is how to create web service and deploy into WebAS through webdynpro project?. Kindly guide us to the correct document for creating webservice through webdynpro or any other related url link.
    Advance thanks,
    S.Saravanan.

    Hi Sarvanan,
    Please refer to the following link for help on webservice,
    Creating webservice, http://help.sap.com/saphelp_nw2004s/helpdata/en/db/99c04ba22fe64f96a8651df68eab92/frameset.htm
    Consuming a Web Service in JAVA,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/81/12703e5da3e946e10000000a114084/frameset.htm
    Consuming webservices in webdynpro,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/91/9c2226df76f64fa7783dcaa4534395/frameset.htm
    I feel once you go through these links you yourself will be in a much better position to decide upon to your design options.
    Reply back for more help,
    Guru.

  • Web Dynpro Java with Adaptive Model

    when i Created Web Dynpro Java with an Adaptive Model I got  Some error in webdynpro.  the error is
    com.sap.dictionary.runtime.DdException: Type com.sap.cust.model.types.Zcustdata does not exist
    what would be the problem .
    can u anybody please help me out in this.

    Hi ,
    i re-imported the and checked even though i got the same problem
    com.sap.dictionary.runtime.DdException: Type com.sap.cust.model.types.Zcustdata does not exist
    com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type extern:com.sap.cutm.model.model.types.CustmModel:com.sap.cutm.model.model.types.Zcustdata2 could not be loaded: com.sap.dictionary.runtime.DdException: Type  com.sap.cutm.model.model.types.Zcustdata2 does not exist
    can u please help me out
    or can u please send me the sample pdf documents which contains step by step process.
    Thanks in advance,
    Venkat.

  • Closing window of web dynpro application with exit-plug don't run in the EP

    Hi everybody,
    I want to close a window that contains a Web Dynpro with a close button, because it's used and create as a popup from an other iView (that's not created with web dynpros) in the EP. I read the different threads how to close a window in web dynpro, like JavaScript in WD
    I create a HTML file with the javascript code to close the window and it works fine, when I start the application separately.
    If I used it in the portal and click the close button I get the following error message:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!
    I tried also: ...wdFirePlugExit("javascript:self.parent.close();") or some other javascript code, but got the same error message.
    Then I tried:
    WDPortalNavigation.navigateAbsolute(url,WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null,(String) null);
    instead of fireing the outbound plug in the action of the close button
    (...InterfaceViewController().wdFirePlugExit(url);)
    but than a new window with the EP open and the old is still there!
    We use the NWDS2004s an the EP 7.00.
    It must be possible to close a (this) window!
    Thanks for any hint
    christian

    Hi,
       This is what you can do:
    1. You have already created the HTML file with the necessary javascript in the foloowing folder structure :
    src->Mimes->Components-><your component name>-><fileName.html>.
    2. Create a new iView of type URL in your portal.
    3. Get the absolute URL of this HTML file inside your project. This will be in the following format:
    http://<server>:<port>/webdynpro/resources/sap.com/<development ComponentName>/Components/<namespace>/<fileName>.html
    You can find it thus:
    try {
    String u = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"filename.html");
    wdComponentAPI.getMessageManager().reportSuccess(u);
    } catch (WDURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    4. Now enter this URL string as the URL for the iview.
    5. Do a normal portal navigation to this iview on-click of the button.
    Regards,
    Satyajit.

  • Web Dynpro Tree expanding

    Hi there!
    I am using the tree element in web dynpro.
    Not the tree in the table.
    I need to expand a part of the tree during loading
    I do not find an example.
    Any help is warmly appreciated.
    Thanks in advance, Frank

    Hi,
    the "dynamic" tree expansion depends on who you populate the tree content e.g. how you load the data to your tree.
    In my application, I have choosen to load the root nodes, first - all over sub-nodes (including items) are loaded "on demand" that means the user clicks on the node. This click will trigger the the action onLoadChildren which pulls the data from a data provider and binds the retrieved data to the corresponding
    context node.
    This expansion can be perfomed automatically by a recursive method which is called when a user pushes a button called "Expand all"....
    I don't have much time to explain the details, but I will provided the source code..., hope it helps!
    Darko
    Source Code -
    Import to the Method:
    i_node_ref type IF_WD_CONTEXT_NODE = Reference to the context node
    METHOD nav_tree_expand_all.
    Data declaration
      DATA node_elements TYPE wdr_context_element_set.
      DATA node_element  LIKE LINE OF node_elements.
      DATA child_node    TYPE REF TO if_wd_context_node.
      DATA ls_tree_attr  TYPE zlm_str_tree_gen.
      DATA lt_tree       TYPE zlm_tty_tree_gen.
    Get all node elements
      node_elements = i_node_ref->get_elements( ).
    Loop over each element
      LOOP AT node_elements INTO node_element.
        " Get Static attributes
        node_element->get_static_attributes( IMPORTING static_attributes = ls_tree_attr ).
        " Check if data has already been loaded
        IF ls_tree_attr-children_loaded = abap_true.
          " now we know that the data has been loaded, only the elements have to be declared as expanded
          ls_tree_attr-is_expanded = abap_true.
          node_element->set_static_attributes( EXPORTING static_attributes = ls_tree_attr ).
          " get possible other nodes recursively
          child_node = node_element->get_child_node( 'SUBTREE' ).
          me->nav_tree_expand_all( EXPORTING i_node_ref      = child_node
                                             i_screen_id     = i_screen_id
                                             i_component_id  = i_component_id ).
        ELSE.
          " data has not been loaded yet...
          " First load the nodes...
         clear lt_tree.
          me->get_nav_tree_nodes( .....importing lt_tree.). Custom specific data retrieval
          IF lt_tree IS NOT INITIAL.
            child_node = node_element->get_child_node( 'SUBTREE' ).
            child_node->bind_table( lt_tree ).
            " Update Attributes of the node
            ls_tree_attr-is_expanded     = abap_true.
            ls_tree_attr-children_loaded = abap_true.
            node_element->set_static_attributes( EXPORTING static_attributes = ls_tree_attr ).
            " Call the method again recursively...
            me->nav_tree_expand_all( EXPORTING i_node_ref      = child_node
                                               i_screen_id     = i_screen_id
                                               i_component_id  = i_component_id ).
          ENDIF.
          " ... then load the items
          CLEAR lt_tree.
          me->get_nav_tree_items( .....importing lt_tree.).  Custom specific data retrieval
          IF lt_tree IS NOT INITIAL.
            " Update Attributes of the node
            ls_tree_attr-is_expanded     = abap_true.
            ls_tree_attr-children_loaded = abap_true.
            node_element->set_static_attributes( EXPORTING static_attributes = ls_tree_attr ).
            child_node = node_element->get_child_node( 'ITEM' ).
            child_node->bind_table( lt_tree ).
          ENDIF.
        ENDIF.
      ENDLOOP.
      RETURN.
    Edited by: Darko Mocelj on May 7, 2008 8:57 PM

  • Opening External Window in Web Dynpro ABAP with URL disabled or Hidden

    Hi Experts, I have a requirement where-in we want to open the Web Dynpro ABAP application using tcode WDYID (by passing the application name  and startmode), but the URL of the newly opened explorer should be disabled or hidden. To achieve the same, I have created a component (lets name it PARENT) and inside that in DOMODIFY/DOINIT method have written code to invoke the required WDA (lets name it CHILD) in external window (by using lo_window_manager->CREATE_EXTERNAL_WINDOW) and is successfully able to open the application with URL disable using different parameter of method CREATE_EXTERNAL_WINDOW. But in this case there are 2 window which opens, one is for PARENT view and other is for CHILD. Now I only want to keep the second view (CHILD) to be opened and want to close the PARENT view. When I used EXIT_PLUG to close the PARENT window, it closes both the window. Need your inputs on my approach or if you have any. Regards, Harish

    Hi,
    If you open the popup, it opens as Modal Window, originating from Parent window. Without external window( where you can pass has_location = abap_false ), you cannot hide the URL/Address bar.
    If you want to partially hide the URL( if you dont want to show the full URL with application path), you can create an Alias for the service in SICF.
    Go to SICF, and create an alias for your WDA application; say original URL: domain:port/sap/bc/webdynpro/sap/<ZAPPLICATION_NAME>
    This URL you can convert( partially hide) as, domain:port/sap/<ANY_NAME>
    Refer creating Alias in this help: http://help.sap.com/saphelp_sem320bw/helpdata/en/55/361a3c9c004866e10000000a11402f/content.htm
    Hope this helps u,
    Regards,
    Kiran

  • Interaction ABAP Web Dynpro popup with Windows

    Hello,
    I have made a view ‘Z_Y’ in Web dynpro for ABAP. In this view I call a standard external window with the statement:
      lo_window = lo_window_manager->create_external_window( url = lf_url ).
      lo_window->open( ).
    The lf_url field is a location on the Windows(XP) network. It could happen that the file doesn’t exist. In this case I get a standard Windows error message in a popup that the directory can’t be found with a ‘OK’ button. When I click ‘OK’ the popup is closed and I can use other functionality of the ABAP dynpro view.
    I integrate view ‘Z_Y’ in another dynpro window (W_WINDOW) that is called as a popup using the following statement:
    create popup window **********************************************************************
      DATA: l_window_manager          TYPE REF TO if_wd_window_manager.
      DATA: l_api_componentcontroller TYPE REF TO if_wd_component.
      l_api_componentcontroller = wd_comp_controller->wd_get_api( ).
      l_window_manager          = l_api_componentcontroller->get_window_manager( ).
      wd_this->m_popup_window = l_window_manager->create_window(
                                      close_button = abap_false
                                      button_kind  = '2'
                                      modal        = 'X'
                                      window_name  = 'W_WINDOW'
                                      title        = 'Popup' ). "#EC NOTEXT
      wd_this->m_popup_window->open( ).
    Then I call from view ‘Z_Y’ the external window using this statement again:
      lo_window = lo_window_manager->create_external_window( url = lf_url ).
      lo_window->open( ).
    If the directory doesn’t exist I get the same standard Windows error message in a popup that the directory can’t be found with an ‘OK’ button. But when I click ‘OK’ I can’t get back to the web dynpro application. I get a throbber/popup “please wait” and I have no interaction anymore with the button ‘close’ of the dynpro popup. The buttoner size still works.
    Can someone help me?
    Kind regards,
    Yan Cazarelly

    Hi
    You ca use this function to Create a new window..
      CALL METHOD wd_window->create_window
          EXPORTING
            modal             = abap_true
            window_name       = 'MMPUR_CPPR_RFQ_WDW'
            title             = lv_otr_text
            close_button      = abap_true
            button_kind       = 3
            close_in_any_case = abap_true
          RECEIVING
            window            = wd_comp_controller->window.
        wd_comp_controller->window->open( ).
    here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
        CALL METHOD wd_comp_controller->window->subscribe_to_button_event
          EXPORTING
            button            = if_wd_window=>co_button_ok
            action_name       = 'RFQ_WT_VENDOR'
            action_view       = l_api
            is_default_button = abap_false
            button_text       = lv_otr_text
            tooltip           = lv_otr_text.
        wd_comp_controller->window->open( ).
    Please let me know if you have any issue. Please reword if its solve your problem.
    Regards
    Satrajit

  • Is it possible to integrate web dynpro java  with xPD screens?

    We have a requirement to integrate the xPD screens with Adobe using web dynpro java. The UI has to be completely Adobe and the xPD transactions would be triggered through Adobe.
    Is it possible?? Please let me know how if anyone worked on this.
    We are using SAP NW SP12 and NWDS 7.0.1
    Thank you,
    Vasu

    Vasu,
    I'm in the same boat as you because I have no idea where to start either.  Right now we are just evaluating some possible solutions for our UI needs that our Business is asking for.  Originally I only heard about the Adobe Forms.  Then I heard about this Web Page Composer which could also provide us a way to display our iViews and other links in a more user friendly page.
    So learning how to display xPD in either area is new to me and I am just starting to learn SAP all together.  If I hear anything or read anything, I will share with you.  Maybe we can help each other out. 
    Jennifer

  • Can we use MDM 7.1 Web Dynpro UI with MDM 5.5 ?

    Dear Experts,
    Is there any possibility to use new MDM Web Dynpro UI (which has got released with MDM 7.1 SP04).
    with MDM 5.5 SP6 as a backend.
    I wonder, if we deploy MDM 5.5 Java API with MDM 7.1 Web Dynpro components,
    then it should work with MDM 5.5 setup also!
    Any thoughts on this?
    Regards,
    Shailesh.

    Hi Shailesh,
    Is there any possibility to use new MDM Web Dynpro UI (which has got released with MDM 7.1 SP04).
    with MDM 5.5 SP6 as a backend.
    As per my knowledge is concern for MDM7.1 will support .NET API,ABAP API.......
    I wonder, if we deploy MDM 5.5 Java API with MDM 7.1 Web Dynpro components,
    then it should work with MDM 5.5 setup also!
    I dont think so....
    Thanks
    Yugandhar

  • Securing Web-Dynpro application with Netegrity

    Hi,
    I'm developing a web-dynpro application that will be secured by Netegrity SiteMinder. SiteMinder is a reverse-proxy that authenticates the user and adds the user details as additional headers to the HTTP stream. According to the documentation I found in SDN with regards to JAAS and NetWeaver it looks like SAP has added callbacks so that I can retrieve HTTP headers in my custom login-module. I've implemented a simple login-module and deployed it, but now am stuck with the following issues:
    (1) I can't seem to be able to debug the module (even when I create a simple HelloWorld.jsp and require the use of this module in the visual administrator, the debugger seems to ignore the break-points).
    (2) I can't find any possibility to configure the engine so that this specific module is required for authenticating my deployed web-dynpro application.
    My questions are as follows:
    (1) Is it possible to use standard JAAS authentication with web-dynpro applications?
    (2) How do I debug JAAS login modules?
    Regards, Chris.

    <b><b>Hi Adrian
    During the Life cycle of your application Your connection will be Released when it is inactive for particular Time (The inactive time limit will be specified in the JCo Pool Settings that would be in milli seconds)
    The RFC Connection can be Monitored using the Gateway process .
    There are Some Predefined Connections in the Gatewway Process and each connection Requires approximately 200Kb of Memory.
    So the memory cosumption of the Gateway process is proportional to the number of Active RFC Connection.
    For More Details Check This
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/85a483cb-0d01-0010-2990-c5168f01ce8a">JCo Connection Pools</a>
    Regards
    Chandran S</b>

  • Active a URL in web dynpro iview with out using LinkToURL button?

    Hello everybody;
    Is it possible to directly activate a URL in iview without using any buttons (e.g. LinkToURL)?
    I've develloped a Web Dynpro project. I have placed my code in the INIT function in iview, and I want the URL to activate automatically when INIT is opened. At the moment I have used the LinkToURL function to activate the URL, but I want to avoid this step.
    In EP iview it is possible to do this using Javascript, but Javascript is not allowed in Web Dynpro.
    Any ideas and suggestions are very welcome.
    Reza

    Look here
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f1cfe990-0201-0010-22ac-dbe4cbdef504
    Use the code for open "www.google.com" into yuor wdInit or wdModify
    if (firsttime) {
       // THE CODE
    method.

  • Create a Table Dynamically in WEB Dynpro Java with diferent type of column

    Hi everyone, I have a question if is possible to create a table dynamically in Web Dynpro Java?, depending of the RFC consults create the rows dynamically, ,this table must have diferent type of columns, for example link column (when the user click this link execute an action and show a adobe interactive form in another view), image column (show an image depending of the information)
    Thank you everyone
    Atte Israel

    Hello,Israel.
    Yes , it is possible through dynamic programming in wdModify of the View.
    You can do this ,for example, using cell variants.
    IWDTable tab = (IWDTable) view.getElement("TABLE_NAME");               
    IWDTableStandardCell cellV= (IWDTableStandardCell) view.createElement(IWDTableStandardCell.class,"TableStandardCell"+i); 
    cellV.setVariantKey("NotEditableVariant");
    cellV.setCellDesign((WDTableCellDesign)wdContext.nodeTableDaysTitle().currentTableDaysTitleElement().getAttributeValue("CellDesign"+i));
    IWDTextView textViewi= (IWDTextView) view.createElement(IWDTextView.class,"TextView"+i);  // -- here you control the type of the object that is displayed in the cell
    textViewi.bindText(dayAttrib);
    cellV.setEditor(textViewi);          
    tabColumn.addCellVariant(cellV);
    tab.addGroupedColumn(tabColumn,tab.numberOfGroupedColumns());     
    Using this code you can control even specific cells in the table and not only columns.
    Hope this helps you,
    Constantine

Maybe you are looking for

  • How to import pictures that have already been imported

    I have old pictures on my Iphone that I've already imorted onto my computer, that file was deleted from my computer.  I can't figure out how to get them back onto my computer.  It wont recognize those old pictures any more and I don't want them takin

  • Commas in the weblogic.properties file

    I hate to ask this question because I'm sure the answer is a)obvious, and b)well-known, but I'm playing in the slow group today. How does one include a comma in a property value in the weblogic.properties file. Specfically, I'm trying to set weblogic

  • How to exclude Special G/L Transactions in FDM_COLL01 (Process Receivable)?

    I try to find a way to exclude Special G/L Transactions in FDM_COLL01 and Worklist (Process Receivable). Whenever a transaction is created in AR, it immediately shows up in FDM_COLL01, regular or special GL transactions.

  • ? When I try to use Adobe reader or open a PDF file

    I get the Error "Invalid plugin detected Adobe will quit" How do I fix this?

  • Debugger seems to loose connection

    Hi ! I've written a package and want to debugg some procedures in it. Starting with "compile for debug" and then starting debugging I get: Connecting to the database DART @ apexdart. Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE Executing PL/S