Calling a WebDynpro Component from other

I have a WebDynpro Component. When i click on a button , i need to call another WD Component. How can i do this ?

Hi Manju,
You can proceed as shown below. You need to just get the URL of the component which you want to call from your component using the static method construct_wd_url of class cl_wd_utilities. You then just have to pass this URL to the create_external_window method of if_wd_window_manager. (This part can be done by using the code wizard itself.)
Regards,
Uday
METHOD onactioncall .
  DATA : lv_url TYPE string.
  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = 'Z187442_ALV1'
    IMPORTING
      out_absolute_url = lv_url.
  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( ).
  CALL METHOD lo_window_manager->create_external_window
    EXPORTING
      url    = lv_url
    RECEIVING
      window = lo_window.
  lo_window->open( ).
ENDMETHOD.

Similar Messages

  • Calling WebDynpro Component from PDK

    Hi
    I need to pass portal runtime information to a webdynpro component. How do i call a webdynpro component from PDK.
    Any Help please.
    Regards
    NagaKishore V

    Were you able to call Webdynpro component fro PDK? Can you tell me how did you accomplish this?
    I have a similar requirement.

  • How to call a Webdynpro view from BSP page (MVC) in a new window?

    Dear Experts,
    kindly advise how to call a webdynpro view from BSP application after performing an event (through button or hyper link).
    Regards,
    Sarat.

    Hi,
    This has been discussed many times in several forums.
    Please check the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL, to create a runtime url for your WD Application and call this URL.
    Refer thread: Call Webdynpro Application from BSP Application
    Hope this will be useful!
    Regards,
    Meganadhan S

  • Accessing a button in a Component from other component

    I have a two components Test_Interface.mxml & teacher_fullscreen. I called teacher_fullscreen.mxml from Test_Interface.mxml by
                  private var tfull:teacher_fullscreen = new teacher_fullscreen();
                  tfull.title = "Teacher Window";            
                  tfull.maximizable=true;             
                  tfull.systemChrome = 'none';
                  tfull.minWidth = 800;
                  tfull.minHeight = 600;             
                  tfull.open();              
    Now I created an instance of Test_interface in my 2nd mxml by
    public var par:Test_Interface=new Test_Interface();
    Actually, I wanted to disable a button in Test_interaface.mxml with id = "b1" from my 2nd mxml using the object created above.
    So I gave par.b1.enabled=false; It did not give any compile errors but during run time cannot access object or method of null reference sandbox error was returned for the statement par.b1.enabled=false. So how do I change the property of a button in one component from other. Please Help me.

    We need more information.
    1) Is this an AIR application?
    2) What is the name of the main app MXML file??
    3) Please boil this down to a minimal yet complete set of code files and post the entire code here for all files.
    I think based on what you mentioned you should be able to boil it down and post just a few lines of code for each file and the answer to your problem should come soon. But with the error you are getting it is too easy to make assumtions that may not reflect your situation.

  • Calling A Webdynpro Application From Another Webdynpro Application

    Hi,
    i want to call a webdynpro application from another webdynpro application with sending parameters.
    i used this method,
    CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = lv_webapp
        IMPORTING
          out_absolute_url = lv_url.
    CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
    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_EXTERNAL_WINDOW(
        URL = LV_URL
    lo_window->open( ).
    but this method shows the parameters on the address bar.
    is there a method to send the parameters to another webdynpro application without show the parameters on the address bar?
    Can somebody help me pls?
    Thanks.

    I've used a server cookie before. This was built for BSP, but it is really usable anywhere.  It just writes the data temporary into the database.  This way you can just pass one meaningless URL parameter - like a GUID and use this key to read the data (the server cookie) upon initialization of the new application.  I generally serialize all the data that I want into one server cookie by serializing a class. I can then restore whatever attributes of the class that I want on the receiving side.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/4cd23a09313b37e10000000a11405a/frameset.htm

  • Call a portal component from a Command IU Java Class

    Hello,
    Please, how can I do to call a portal component from my Command IU Java Class?
    Thanks & Regards,
    Hassan

    Hi Hassan,
    a portal component can be called directly through URL.
    The general syntax to call the portal component (iView, page) is as follows:
    <http/https>://<server>:<port>/irj/servlet/prt/portal/prtroot/<pcd_path_of_iview_or_page>
    Replace all ":" in the pcd path by "!3a". Also replace all "/" by "!2f" in the pcd path in the URL.
    Hope this helps.
    Best regards,
    Denis

  • Can we call a pdk portlet from other pdk portlet

    Hi friends,
    Can i call a pdk portlet from other pdk portlet when an event happens.
    Scenario:
    I have a pdk portlet with 10 html links. When anyone clicks on a link then a new portlet should be displayed in the same page.
    Is it possible to call one portlet from others.
    Please help me out with ur ideas or any workarounds.
    Thanks & Rgds,
    Dhanu

    Neeraj,
    Let me state my requirements very clear to u.
    1)I have a search portlet at top right corner.
    2)Below there is a region with 3 tabs(say A, B, C).
    3)When anyone searches for anything in the search portlet then the results should be displayed in new search tab(say D).
    4)If any one navigates to other tab(ie A or B or C) then the search tab(ie D) should not be displayed.
    This is my requirement. Can u please suggest me with how this can be achieved. I am just a beginner to Oracle portals10.1.4 and i am using JPDK to create portlets.
    Please do reply ASAP.
    With thanks & Rgds,
    Dhanu

  • Calling one component from other

    Hi,
       I want to call a portal component,with in the event handling routine of cellClick.
    Actually what I need is,in cellClickEvent method,I need to store the clicked value in session and then redirect it to another component based on the clicked value.
    Can any one help me in achieving that?
              Thanks in Advance
    Regards,
    Santhosh

    Hi Santhosh,
    You can do that using the EPCF service provided by the Portal.EFCF is used to communicate between Iviews and pass data between them.Exactly what you need.
    Please reward points, if helpfull.
    Regards,
    Vivek

  • Launch webdynpro component from a assignment block

    Hi,
    I am trying to launch a webdynpro component on click of a hyperlink from a assignment block.
    This works fine but, on click of hyper link i set a global attribute GV_url = 'X'.
    based on this, i call the webdynpro link in the .htm page of the view.
    <%
    if ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url is not initial.
    %>
    <a href="<%= ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url %>" target="_blank"> Sample URL to launch Web Dynpro Application</a>
    <%
    clear: ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url.
    endif.
    %>
    using this i get an additional hyperlink in the assignment block which on click gets the webdynpro page.
    This is an additionaluser click which is not required.
    How can we skip this , instead directly navigate on click of the attribute in the assignment block?

    have solved this using the script window.open
    <%
    if ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url is not initial.
    %>
    window.open("<%= ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url %>).focus();
    <%
    clear: ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url.
    endif.
    %>
    This helped me open the link directly but have a new problem with this.
    I am able to navigate to the link in a new window only the first time i click the hyperlink.
    once i close the new window and if i try to click the hyperlink again, i am not able to open this again.
    Have tried to debug but, everything is in place.
    Pointers on this scripting would be very helpful.
    Should i clear the link before exceuting again or do any additional scripting?.

  • Exception calling a WD Component from another one

    Hi all,
    I have an application that searches some KM files and displays their names in a WD Table.
    I used an example from SDN to download the content of this table into an Excel file... I copied the Excel component from this project and pasted it into my own project, so I can reuse it instead of writting all over again
    When I click on the "Excel File" button the first WD Component calls the Excel Component but I'm getting this exception:
    <b>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to get deployable object part info for component com.polar.excel.WDC_ExcelExport</b>
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getComponentDeploymentDescription(ClientComponent.java:776)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:926)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:176)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:116)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createInstanceIfDemanded(ComponentUsage.java:728)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceControllerInternal(ComponentUsage.java:346)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceController(ComponentUsage.java:335)
         at com.polar.listactualizacion.wdp.InternalWDV_ResultListActualizacion.wdGetExcelExportInterface(InternalWDV_ResultListActualizacion.java:228)
         at com.polar.listactualizacion.WDV_ResultListActualizacion.onActionact_btnExcel(WDV_ResultListActualizacion.java:425)
         at com.polar.listactualizacion.wdp.InternalWDV_ResultListActualizacion.wdInvokeEventHandler(InternalWDV_ResultListActualizacion.java:187)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Any ideas about this??
    Thank you...
    Felipe

    Felipe,
    Check name of component used in Component Usage or in code: com.polar.excel.WDC_ExcelExport.
    Seems that you mistyped the name.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Through Enhancement, how to call a Webdynpro method from another webdynpro?

    I have a standard page with 2 iViews with a standard abap webdynpro in each.
    The first webdynpro needs to refresh the second webdynpro.
    Through enhancement, I tried to follow the solution below:
    first of all in the child component's component controller method(which you want to expose to another component) must be checked in the interface column.
    Double click on the webdynpro project(parent component)->In the used components tab, in the column of component type the child project name(whose method you want to call) and in component usage column give any name->save the project.
    goto the controller(VIEW or COMPONENT) from where you want to call the method->click create controller usage->select the interface controller of the child component->save the project.
    click the code wizard->select method call in used controller->select the child component interface controller ->select the method you want to call.
    Link of thread: Calling a method of other webdynpro component
    But this solution doesn't worked because in this standard webdynpro is not possible to check the method as Interface.
    Is there other way to do this?
    Thanks.

    Hello,
    you can refer the following documentation for portal eventing
    http://help.sap.com/saphelp_nw70/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
    Br, Saravanan

  • Calling a WebDynpro application from a SRM Badi

    Hi - I will like to call a WebDynpro Abap application from Badi/method IF_EX_BBP_SC_MODIFY_UI~SC_MODIFY_SCREEN in SRM. The purpose is to force certain users to put in som "standard" values to be used in the following steps in the purchase procedure. As it not possible to use ordinary Abap POPUP functions modules I have made a small WebDynpro program to do the wanted function. But when I start the url with CALL FUNCTION 'CALL_BROWSER' or CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE the return code indicates a frontend error from ITS.
    Is there any way that I can get over this error and start my WebDynpro from a Badi in SRM?
    Or is there maybe another way to send a POPUP for information to the internet user?
    Thank you in advance:
    Bg Steen Pedersen

    Hi Radhika
    Have used fm WDY_EXECUTE_IN_PLACE to start my application. Bu I still get errors as shown below. Do you have any idea of the problem?  
    Følgende fejltekst blev behandlet i systemet SRD : Template interpretation failed. Template does not exist.
    Fejlen forekom på applikationsserver SAPSRMUDV01_SRD_00 og i arbejdsproces 0 .
    Afbrydelsesart var: RABAX_STATE
    ABAP-kaldhierarki var:
    SYSTEM-EXIT of program SAPLWDY_PRGN_NODES
    Function: WDY_EXECUTE_IN_PLACE of program SAPLWDY_PRGN_NODES
    Method: IF_EX_BBP_SC_MODIFY_UI~SC_MODIFY_SCREEN of program ZCL_IM_BBP_SC_MODIFY_UI=======CP
    Method: IF_EX_BBP_SC_MODIFY_UI~SC_MODIFY_SCREEN of program CL_EX_BBP_SC_MODIFY_UI========CP
    Form: SC_UI_MODIFY of program SAPLBBP_SC_UI_ITS
    Function: BBP_SC_UI_ITMCHOICE_SCENARIO of program SAPLBBP_SC_UI_ITS
    Form: LINKS_DEF_SCREEN_SET of program SAPLBBP_SC_UI_ITS
    Form: UI_SCENARIO_SET of program SAPLBBP_SC_UI_ITS
    Form: APP_INIT of program SAPLBBP_SC_UI_ITS
    Form: WIZARD_INIT of program SAPLBBP_SC_UI_ITS

  • Calling a module component from a diff form

    Hi guys,
    Does any one know how to:
    call a module component of a form from a nother from using call form procedure or any diff method.
    Thanks

    Hello,
    Open the on-line help of the Forms Builder : Ctrl+H
    click the Index tab, enter CALL_FORM then click : Calling Modal Forms with CALL_FORM then the OPEN button.
    You can find the example you search.
    Francois

  • Calling JAVA webdynpro applications from SAP Business workflow

    Experts,
    Is it possible to call JAVA webdynpro application as a task from SAP Business workflow? If yes, please pass on any links to relevant documents.
    Thanks,
    Deepak

    Hello,
    You would probably want to use UWL in the portal. From UWL you can launch tasks from portal, and with proper configuration (for example with the help of transaction SWFVISU) you can easily start web dynpro applications from UWL.
    I suggest you go trough the SAP documentation about UWL. Start for example here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/39/a1bb5c4c0d4ab4a417e87ef35f1efa/frameset.htm
    Regards,
    Karri

  • CALL A WEBDYNPRO JAVA FROM ABAP

    From the abap code of the transaction BBP_BID_INV i want to call a webdynpro java that shows a table´s content, that is the main problem , anyone has any experience with this?
    Can i use portal eventing with epfc?, or bapis? maybe badis? object navigation though the pcd?
    Whatis the best option?
    Cheers.
    R.Cabrera.

    Hi,
    And as you said it Java Webdynpro application, it should be possible to generate the URL for the Application at runtime.
    I also haven't tried, but it should work. Please let me know if LinkTOURL doesnt suffice, we can try and check if it works.
    Thanks,
    Anand

Maybe you are looking for