Calling a Webdynpro Application in using WDURLGenerator.getApplicationURL

Hi,
I have to call a webdynpro application in an external window using the application name. Please note that no iViews are created out of the application which i am going to call.
I have DC1 and DC2 and from the Comp Controlller of DC1 , i need to invoke the application in DC2.
String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);
String url = WDURLGenerator.getApplicationURL(depObjectpart) ;
window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Test View");
window.show();
Is this the correct API to get getDeployableObjectName which is in the different DC.
Please let me know the correct API which i can use to get the getDeployableObjectName and the subsequently the Application which is availbale in the different DC.
Thanks and Regards,
Sekar

Hi Chintan Virani,
Thanks for your reply.
Is it possible to get to know through the APis that the Webdynpro Application Deployed in the server is started.
I hope some API's will be available.I need to open this application only when it is started.
I tried this,
IWDDeployableObject deplObj = WDDeployableObject.getDeployableObject("TestApp");
if (  deplObj.getState() == WDDeployableObjectState.STARTED ) {
    // do something
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object TestApp' since it is not a Web Dynpro object.    null
Thanks and Regards,
Sekar

Similar Messages

  • 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

  • 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 external application without using a webservice

    Hi all,
    How can we make a call to external application without using webservice from BPEL or OSB.Please share any links to refer.
    Thanks,
    Kiran

    Hi.
    Probably the options:
    1. Adapters. BPEL PM offers a different set of adapters that allows the process to communicate with external apps
    2. PRobably a basic HTTP POST could be an option
    3. Writing some code inside a Java Embedded activity
    Which application are u trying to communicate with?
    thx
    best

  • Problem in Running a Webdynpro Application Which uses itext.jar

    Hi,
    I have created a Webdynpro DC which uses a DC called xxx_lib which contains the external JAR Files. (itext.jar etc)
    This JAR file is in my library path as well.
    I have added the lib_dc as used DC under the webdynpro DC.
    The Compilation and build went fine without any error. But when in run the Application Under ---> Content Administration --> Webdynpro , I am getting the following Error.
    The initial exception that caused the request to fail, was:
    <b>java.lang.NoClassDefFoundError: com/lowagie/text/Element
    Failed to create delegate .....
    (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)</b>
    Please let me know if somebody knows the solution.
    Thanks and Regards,
    Sekar

    Hi Sekar,
    Please look into the link below.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7b8180e5-0601-0010-0c94-9bccb92de9c1
    Goto section 2.2.3.1 Defining Libraries Page No. 75
    It gives you the entire process of creating the library DC and referencing the same in your WebDynpro project.
    Hope this helps.
    Regards,
    Rekha Malavathu

  • 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

  • How to Call a WebDynpro application through html page.

    I have created a webDynpro application.How can i call this application through a html page?
    Thanks
    Pankaj Kumar

    Hi,
       You can add a link to your HTML page and set the anchor reference to the absolute URL of your WD application.
       The absolute URL of your WD application looks like
    http://<j2ee server>:<port>/webdynpro/dispatcher/<wd component name>/<application name>
       So your HTML code will look like:
    <a href="http://<j2ee server>:<port>/webdynpro/dispatcher/<wd component name>/<application name>">Link</a>
    Regards,
    Satyajit.

  • Is it Possible to call a WebDynpro Application from WebServices?

    Hi Gurus,
    I have the following problem:
    I have an application in which the user sent information from a webdynpro application to BD, we use a web service to pass the information from the dynpro app to BD. The user send the information using an iView in the dynpro app, and dynpro app gets de IP address of the user implementing the statement "WDProtocolAdapter.getProtocolAdapter().getRequestObject().getClientHostAddress()" this is with the purpose of knowing in which IP is executing the app.
    The problem is that sometimes the user doesn't use the dynpro app and sent the information using the web service directly, then when de user executes the web services in DB the record doesn't have de IP address, and there aren't way to know from which IP was sent the information.
    I tried to use the statement "InetAddress.getLocalHost().getHostAddress()", but; when the web service is executed it retrieves the IP address from the server where the webservice is exposed, but i don't can't get the IP address from the Client.
    Then my question is: is it possible to create an small dynpro app which being executed by my webservice for obtaining the IP address of the client?
    Thanks in advance.
    I hope you could help me.

    hi blanca ,
    use this code
    IWDRequest req = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
    req.getClientHostName();
    Regards
    Govardan Raj

  • WebDynpro Application is Using POWL Table

    Hello Expert,
    I have a query. We have a Standard Webdynpro application "HAP_START_PAGE_POWL_UI" which is using a POWL component . The output table in screen comes.
    We have a requirement we need to add some extra columns to the table and also need to hide some existing columns.
    As far as I know we can achieve this by changing the POWL query. But i am not able to find which query is being used for this application.
    Please help me!
    Thanks In Advance
    Pradeep

    Hello Manus,
    I understand that " If I need to add extra columns to my table in this "HAP_START_PAGE_POWL_UI_MSS" application I have to add those in the structure HAP_T_WD_DOCUMENTS and to populate those columns we need to add code in IF_POWL_FEEDERGET_OBJECT_DEFINITION and IF_POWL_FEEDERGET_OBJECT methods. And If I have a column with radio button then I have to define the action in IF_POWL_FEEDER~GET_ACTIONS method.
    Please let me know if I am wrong anywhere in my understanding.
    Also I think we can the existing columns from the POWL table without any coding via admin personalization.
    And I am not able to see the link for change query when I am executing the application in admin mode.
    Please suggest.
    Thanks
    Pradeep

  • How to call a Webdynpro application from a BSP page

    Hi to all,
              I have created a web-dynpro application, now i have to call this function through click event of a BSP page. How i can achieve it.
    Please help if anybody have idea.
    Thanks in advance.
    Pankaj Kumar.

    Hi Pankaj,
       Using portal eventing you can acheive that.
    WebDynpro and BSP communication
    Regards, Suresh KB

  • Problem acessing webdynpro applications deployed using SDM

    Dear All,
    We have two seperate boxes for ECC 5.0 and (WEBAS + EP).
    I am trying to run ESS and MSS on portal.
    I downloaded BP for ESS/MSS 100(for souce cose) and ESS/MSS 60.1(iview and other content) both.
    I deployed them both through SDM.
    I maintained all required JCo connection with ECC system as my target system.
    I maintained SAP_WEBDYNPRO_XSS system as my WAS system.
    I can see ESS/MSS roles and pages etc in portal.
    Also in webdynpro content administration i can see all deployed service i.e. ess/ar/pdata etc.
    When i select any of the service, and drip down to application node, i get error
    "Failed to find classpath for sap.com/ess~ben"
    or whatever service i select.
    when i run the application i get attached error.
    if you have any clue.. what is missing?
    thanks for your time,
    Regards,
    Sudhir
    java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/progmodel/api/IWDEventId
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
    at java.lang.Class.getConstructors(Class.java:865)
    at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:68)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:38)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doInit(ClientComponent.java:775)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:329)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:352)
    at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
    at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
    at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
    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:94)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

    Hi Shubham,
    Thanks for your reply..
    I am
    Installations and Upgradesè -> SAP NetWeaverè -> SAP NETWEAVERè -> SAP NETWEAVER 04 -> Business packages -> Portal content
    I have deployed ESS, MSS and SAPPCUI_GP files.. and in SDM i can see they are successful deployed..
    in ESS deployment there was some error for ess/tra
    and other component ess/tra/*
    no idea that will cause this issues. check the log in SDM.
    Starting Deployment of ess/tra
    Finished with warnings: development component 'ess/tra'/'sap.com'/'MAIN_xss04VAL_C'/'114133':
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application sap.com/ess/tra and wait. Reason: Clusterwide execption: server ID 2107050:<Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Failed implicit start for sap.com/esstratrr : Unknown state(5)', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Failed implicit start for sap.com/esstratrr : Unknown state(5)', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Failed implicit start for sap.com/esstratrr : Unknown state(5)', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Failed implicit start for sap.com/esstratrr : Unknown state(5)
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment of ess/tra finished with Warning (Duration 11282 ms)

  • Search  Webdynpro Application View using external Search Engine

    Hi,
    I need to search my Webdynpro Views (pages) from an external search engine eg Google. How to achieve this?
    Thanks in Advance
    Anish

    In an Iframe you can implement a website... is taht what you are searching for?

  • Calling WebDynpro Application and Passing parameters

    Hi,
    I want to call a webdynpro application from another application and also i want to pass parameters to the called webdynpro application.
    Is there an example on SDN which shows how this can be done. If not please advise how this can be done.
    Thanks and Regards
    Sidharth

    Hi Sidharth,
    until the tutorial is available, here's a step by step guide.
    1. Create an outbound exit plug, for example "CallApp" in an interface view controller belonging to the calling component.
    2. Add a string parameter 'Url' to the plug "CallApp". It's important that the parameter starts with uppercase 'U'.
    3. Declare a controller usage of the interface view controller for the view controller, which will fire the plug.
    4. Add an action to the calling view controller.
    5. Add the following code snippet to the method body of the action handler. Change the application name "CalledApp" to the name of your called application and the wdThis.wdGet<YourInterfaceView>Controller().wdFirePlugCallApp(url) so that it matches the names you defined. The example will not work, if the application is not part of the deployable object the calling component resides in.
    IWDDeployableObject componentDPO = wdComponentAPI.getDeployableObjectPart().getDeployableObject();
    String appName = "CalledApp";
    WDDeployableObjectPart[] applicationParts = componentDPO.getParts(WDDeployableObjectPartType.APPLICATION);
    WDDeployableObjectPart appPart = null;
    for (int idx = 0; idx < applicationParts.length; idx++) {
      appPart = applicationParts[idx];
      if (appPart.getShortName().equals(appName)) {
        break;
      appPart = null;
    if (appPart == null) {
      throw new WDRuntimeException(
        "The application: " + appName + " is not a part of: " + componentDPO.getName());
    Map urlParameters = new HashMap(1);
    urlParameters.put(ClientConstants.APPLICATION_PREFIX + "Param1", "Parameter sent by caller.");
    try {
      String url = WDURLGenerator.getApplicationURL(appPart, urlParameters);
      wdThis.wdGet<YourInterfaceView>Controller().wdFirePlugCallApp(url);
    } catch (WDURLException e) {
      throw new WDRuntimeException(e);
    6. Add a string value attribute named "ReceivedParameter" to the context of the component controller owning the target interface view.
    7. Declare a controller usage of this component controller for the target interface view controller.
    8. Add a startup plug to the target interface view controller. Add a parameter ("Param1" in this example) to the plug. It's important, that the name of the plug parameter is the same (case sensitive) as used for the URL generation.
    9. Add the following to the method body of the startup plug handler:
    wdThis.wdGet<YourComponent>Controller().wdGetContext().currentContextElement().setReceivedParameter(Param1);
    10. To check, if the parameter passing works, map a value attribute in a view controller to the component controller context and bind e.g. the text property of a TextView to that attribute.
    Hope that helps.
    Regards
    Stefan

  • Calling webdynpro application in standard POWL

    Hi Experts,
    I have a requirement  I need to call a webdynpro application from the POWL ALV list when I click on the one of the cell whihc contains the link, it triggers the Feeder_class->handle_action method, Here I am creating the URL ,
    COuld you please any one suggested me to use the URL, to call the webdynpro application, When calling he function module to execute the link I am getting the error like ,HTML_ERROR.
    Thanks in Advance'
    Swamy

    Try This:
    DATA:
      lv_val  type <type of parameter>,
      lv_url_string TYPE string,
      lv_url_c(250) TYPE c.
    get absolute URL of Application, first try HTTPS
    CALL METHOD cl_wd_utilities=>construct_wd_url
      EXPORTING
        application_name = <App_Name>
        in_protocol      = 'HTTPS'
      IMPORTING
        out_absolute_url = lv_url_string.
    Try without HTTPS
    IF lv_url_string IS INITIAL.
      CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = <App_Name>
        IMPORTING
          out_absolute_url = lv_url_string.
    ENDIF.
    append client and logon language to URL
    CONCATENATE lv_url_string
                '&sap-client=' sy-mandt                         "#EC NOTEXT
                '&sap-language=' sy-langu                       "#EC NOTEXT
      INTO lv_url_c.
    append parameter to pass variable
    CONCATENATE lv_url_c '&abcd=' lv_val INTO lv_url_c.
    start browser with URL
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        url                    = lv_url_c
      EXCEPTIONS
        frontend_not_supported = 1
        frontend_error         = 2
        prog_not_found         = 3
        no_batch               = 4
        unspecified_error      = 5
        OTHERS                 = 6.
    .. SY-SUBRC CHECK..

  • How to call webdynpro applications from outside

    Hi
    I have a requirement where i need to call below webdynpro application from outside (for ex CRM,ISA..) environments
    http://test.com/webdynpro/dispatcher/test/eomp~eompapp/EmpDisp?EmpNo=0500002203.  When i am running this application from
    browser , my application working fine and i am able to see call to the backend BAPI's.  But when I configure this url
    in the configurations of the above environment.  I am unable to run this application.
    Any Idea?
    Thanks
    Prasad

    Hi
    I am not getting any error, but the backend call not hapening.  I put a debugger in the backend BAPI and run the webdynpro application , no input parameters came or call came to the the backend BAPI.
    Thanks
    Prasad

Maybe you are looking for

  • HP Envy 100 e-all-in-o​ne D410a series

    Why can't I install onto my ipad2

  • Instant-Movie - hung?

    I am making an instant movie.  I added 129 clips (mostly very short - 15-30 seconds).  It indicated that it was analyzing all of the files and now it is stuck (apparently) at 100% Analyzing Media for the last file.  When I check Task Manager the prog

  • JSP - Changing font color

    Hi, Does anyone know if it is possible to change the font color on a jsp page with a condition. example: if qty1 > qty2 change font color to red else font color black end if; Is there anywhere I can put a condition like this? Thanks, Mary

  • How does adobe creative suite 2 run on the apple book pro?

    I am mainly using AfterEffects and Adobe creative suite2 on a powermac dual 2.5 gig. Do those run a lot slower on the apple book pro?

  • How to execute infopkage , if its in PC ?

    Experts, i need to execute one of my Infopkage, which is already in one of my PC. how do i execute just that infopkage ? i cant wait till the PC executes and run it. can i simply go to the infopkage and execute it ? i think its full update. Its just