Calling Webdynpro Java Application from Webdynpro ABAP Application.

Hi,
We have developed one Application using Webdynpro Java and I m in need to call the Webdynpro Java application from Webdynpro ABAP.
Require Suggestions to acheive this.
Thanks In advance.
Reg,
Ajay.

Dear Ajay,
Assuming that both your applications WDA & WDJ are in the portal & you don't have to pass any parameters to the WDJ application.
Write the following code on the action  where you would call the WDJ application.
  DATA:
        lr_compcontroller TYPE REF TO ig_componentcontroller,
        l_component TYPE REF TO if_wd_component ,
        lr_port_manager TYPE REF TO if_wd_portal_integration ,
        wa_navigation TYPE navigation.
  lr_compcontroller =   wd_this->get_componentcontroller_ctr( ).
  l_component = lr_compcontroller->wd_get_api( ).
  lr_port_manager = l_component->get_portal_manager( ) .
* The value inserted into the navigation-target field can be found in the Portal
* content administration tab of your portal. It is the ID or PCD Location field
  wa_navigation-target = pcd. " Please provide the PCD Location of the WDJ Application here.
  wa_navigation-mode   = '0'.  "0 = INTERNAL(same page) and 1 = EXTERNAL(new page).
  CALL METHOD lr_port_manager->navigate_absolute
    EXPORTING
      navigation_target = wa_navigation-target
      navigation_mode   = wa_navigation-mode.
You can get the PCD from the Page properties of the WDJ application page in the Portal.
Hope it helps!
Warm regards,
Upendra Agrawal

Similar Messages

  • Calling Java screens from Oracle Forms application

    I am working with a client that has a large Oracle forms application. Since rewriting the entire application in Java is not an option at this time, the strategic direction is that any new modules that are to be created for the application are to be done in Java and called from the Forms menu. The decision as to what tool to use to develop the Java modules is still under debate. What is the best (most seamless) way to do this...calling a Java screen from a Forms application? If anyone has any experience in this, or can direct me to some literature on it, it would be greatly appreciated. Thanks.

    This is a web app in Forms/Reports 10g R2 running off Oracle AS and an Oracle db. The challenge for us is that the direction is that any new enhancements (screens) are to be built using Java (in either ADF Faces or Swing, another point for debate later) and then called from the Forms app. The business client is only paying for the enhancement. They don't care about moving off Forms to Java, so any extra work on the part of IT to do this, has to be fairly minimal and doable within the project budget. The movement to Java is an IT direction. Is there a way to do this without having to build a java framework for the entire Forms application (which I assume would take some time and involve retesting the entire app)?

  • Call a Java file from ABAP

    Hi,
    I would like your help in identifying a mechanism in calling a Java Program from an ABAP program. The requirement is that I need to pass enough parameters(possibly in a single object like a <i>table</i>) and fetch that in a Java Program residing in a jar in the J2EE engine. The possibility of this java file interpreting this incoming object and also be able to return something to ABAP which can eventually be printed on the screen needs to be known.
    I also would like to validate an assumption of mine which is that, the jar(the receipient java file) file needs to be put under the directory
    "\usr\sap\<i>SystemID</i>\<i>instancenumber</i>j2ee\deploying\lib"
    Appreciate your time and effort in helping me with this.
    Regards,
    Sam.

    i am not sure about
    I also would like to validate an assumption of mine which is that, the jar(the receipient java file) file needs to be put under the directory
    "\usr\sap\SystemID\instancenumberj2ee\deploying\lib"
    but for your case what you could do is, on the java side get developed a jsp page which will receive data and use the jar to proces and return the results as xml. once thats done.
    from abap you can use cl_http_client class to call this jsp page to pass parameters and get the processed results from jsp page.
    Raja

  • How can I call a java object from Web dynpro ABAP application?

    I made Web dynpro ABAP application and posted it to SAP EP.
    For certain business purpose, we need to call external 3rd party java object using 3rd party's java api in Web dynpro application.
    Is there anybody who experienced this kind of java interface issue?
    I know Web dynpro Java environment can fully support this kind of requirement. but regarding Web dynpro ABAP, I couldn't find any clue for this.
    Any comment or suggestion would be greatly appreciated.
    Thanks,
    Raymond, ABAP Consultant

    if you have jco configured, then you can make calls to java api from ABAP .
    check out this weblog.
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    Raja

  • Calling POWL Application From Webdynpro

    Hi Experts,
    I have a requirements wherein I have to call a POWL application from Webdynpro. Please let me know how to achieve this.
    POWL - Personal Object Work List
    Any help is welcome.
    Thanks
    Divakar

    Hello Diwakar,
    Based on your query i understand that you need to embed your powl into a web dynpro application to view it.
    u can do it in two ways..
    the first one is just for testing..
    prerequisites...
    just check ur web dynpro service is activated.
    Use transaction SICF
    On the Maintain Service screen leave the default values as they are and choose Execute
    In the Virtual Hosts/ Services tree control locate the node sap/bc/webdynpro. Right click on
    the node and choose Activate Service from the context menu.
    1. Navigate to the initial screen of the SAP Easy Access Menu.
    2. Do a right-click on Favorites and choose Add other objects from the context menu.
    3. Choose Web Dynpro Application from the upcoming dialog box list.
    4. On the Web Dynpro Application subscreen, make the following entries.
    Web Dynpro Applicat.-->POWL
    Parameter -> APPLID   (Be sure to select the parameter via input help.)
    Value ->Specify the APPLID defined for the POWER List to test.
    Leave rest unchanged.
    click OK.
    By double-click on the created favorite, the specified POWER List will be displayed in a separate
    Browser window..Only the basic functionalities can be tested this way.
    The second way is in which you manually insert a powl component in web dynpro appl..
    1. create a web dynpro component.
    2. Specify POWL_UI_COMP as the used component in the properties and give a suitable name.
    3. In the main view. insert a ViewcontainerUIelement.
    4. In the component controller properties . click on create controller usage. and select POWL_UI_COMP
    INTERFACECONTROLLER
    5. Go to the windows selection and right click and select embed view on the ViewcontainerUIelement of the Main view. select POWL_MASTER from input help.
    6. Create an outbound plug , name it as 'OUT'. link it with DEFAULT plug by dragging.
    7.Go to the methods tab and in the Handle Default method .
    and paste the following code..
      DATA: lv_inbox_query TYPE string,
            lt_query_params TYPE rsparams_tt,
            lwa_param TYPE rsparams.
      DATA lv_qname TYPE POWL_QUERY_TY.
    lv_qname = 'QUERY1'.
      CALL FUNCTION 'POWL_ENCODE_SELPARA'
        EXPORTING
          i_selpara        = lt_query_params
          i_escape         = '\'
        IMPORTING
        e_selpara_string = lv_inbox_query  .
        wd_this->fire_out_plg(
          applid =  'POWLappl'                          " powl_applid_ty
          forallq =   'X'                        " powl_xflag_ty
          qselpara =   lv_inbox_query                       " string
          refresha =   'X'
          refreshq = 'X'                    " powl_xflag_ty
          srvgroup =   'X'
          qname =    lv_qname                " rzlli_apcl
    where QUERY1 is the name of your default query and POWLappl  is your powl applid.
    7. create application and test

  • How to call an external server from Webdynpro program?

    Hi All,
    i have a requirement in which i have to call an external server from Webdynpro ABAP program.
    how to imp

    hi ,
    do u mean u need to call the external link from ur WD ABAP application ?
    if so , u either create
    1 a Link to URL ( LTU ) UI element  and call the external link using that
    2 if u wish to use some other fuctionality and thn wish to call the URL in ur application ,u write this piece of code in ur relevant on Action method :
    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.
    data:  ld_url type string.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    ld_url =  ''.  // ur external sever link here
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW     
    EXPORTING     URL                = ld_url           
    RECEIVING     WINDOW         = lo_window.
    lo_window->open( ).
    I hope u wud be able to create URL now .
    regards,
    amit
    Edited by: amit saini on Oct 13, 2009 11:25 AM

  • CALL A JAVA PROGRAM FROM ABAP -- NEED HELP

    Hi all,
    Can somebody tell me how to call a java xml code from an ABAP program? First let me know if at all, is it possible to call a java program from SAP that is from an ABAP executable progam?
    Please suggest me in this. All your inputs in this is valuable to me and highly appreciated.
    Thanks in advance,
    Vaishnavi Varadarajan

    Hi,
    Previous explanation i gave is not correct.
    ABAP web services expose the function modules outside R/3, so that other technologies like Java can consume that webservice and read the data in R/3 using the function module.
    For your requirement, create a Java web service to read the XML. Consume this webservice in ABAP. This way you can read the XML from ABAP.
    Regards
    Srikanth KV.

  • Call a Java Function From Abap

    Hi, I need to call a java function from ABAP,  I have a WAS 640 to deploy the module.
    I have found this tutorial...
    [ABAP calls Java via RFC|/people/thorsten.franz3/blog/2008/11/21/abap-calls-java-via-rfc-1-introduction]
    The problem is that it uses a newer version of WAS and it implements EJB 3.0 wich only works on Java 5, but my WAS has java 1.4.2.
    Anyone knows how to adapt this Blog to a WAS 640 version ?
    Or Perhaps there is another way of doing this, maybe publishing my function as a web service.
    Regards.
    Mariano.

    Why don't you expose your Java functionality as a Web Service and consume it in ABAP program. That should be much easier and the web service can be used in other places as well.
    Best regards,
    Ritesh Chopra

  • I want to call External Java class from the PL/SQL

    Hi,
    I am using Oracle Apps R11i (11.5.7), I wanted to call external Java class from the PL/SQL. This external Java class is residing in another application server.
    How do I do this.
    I know one way. Develop C routine in Oracle Apps to call external java class and call this C routine from the PL/SQL.
    Is there any simple method available? or any other method?
    Thanks in advance.
    -Venkat

    First of all, this is a Java application you're talking about, right (i.e. it has a main() function)? It's not just a class that you're trying to instantiate is it? If it's an application, you obviously have to start a new virtual machine to run it (rather than using the virtual machine built into the database like stored java). I'm a little leary of your mention of an "application server" as this would more commonly mean that a virtual machine is already over there running with access to this class. In which case, you'd typically interface with SOAP or some other RPC API.
    All that aside, as long as you have physical disc access (through NFS or whatever) to the class file, you could use a java wrapper class with a system call to do this. In fact, there is a thread in just the last day or so on this very forum that has the code to do just that (see " Invoking OS Commands from PL/SQL"). However, it's worth noting that the virtual machine will be running on the database server in this case and not the application server.

  • How can I call a java class from within my program?

    I was wondering if there's a platform independent way to call a java class from my program.

    Here's my scenario. I'm working on a platform independent, feature rich, object-oriented command prompt program. The way I'm designing it is that users can drop classes they write into my bin directory and gain access to the class through my program. For example, they drop a class named Network.class in the bin directory. They would type Network network at my command prompt and gain access to all the methods available in that class. They can then type system.echo network.ipaddress() at my prompt and get the system's ip address. I have it designed that there's a server running in the background and the clients connect to my port. Once connected the end-user can enter their user name and password and gain access to the system. When they type a command they actually call another java program which connects to my server using a seperate thread. They can then communicate back and forth. I have it set that everything has a process id and it's used to keep track of who called what program. Once the program is done it disconnects and closes. Rather than getting into the nitty gritty (I didn't want to get into heavy detail, I know how everything will work) I'm really interested in finding out how I can call a java program from my program. I don't want it to be part of the app in any way.

  • How to call a Java class from another java class ??

    Hi ..... can somebody plz tell me
    How to call a Java Class from another Java Class assuming both in the same Package??
    I want to call the entire Java Class  (not any specific method only........I want all the functionalities of that class)
    Please provide me some slotuions!!
    Waiting for some fast replies!!
    Regards
    Smita Mohanty

    Hi Smita,
    you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
    e.g.
    you have developed A.java and B.java, both are in same package.
    in implementaion of B.java
    class B
                A obj = new A();
                 //to access A's methods
                 A.method();
                // to access A's variable
                //either
               A.variable= value.
               //or
               A.setvariable() or A.getvariable()

  • How to call a BW Query from an ABAP program?

    How to call a BW Query from an ABAP program?

    hi
    check this link
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    hope this helps
    cheers

  • Calling a Java Class from PL/SQL

    Hai,
    I need a technique of calling a class file and invoke its
    methods written in Java by PL/SQL for my intranet development.
    PLease let me know if you have really experienced and won.
    Thanks
    JOhnson

    First, to call a Java class from PL/SQL the class needs to be
    deployed to the database. you can check the 8i documentation for
    the instructions for loading Java into the database(LoadJava).
    The document contains information on how to load the Java and
    call it from PL/SQL. The following links should help.
    Loading Java:
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
    java.817/a83728/03write6.htm
    Invoking a Java Method in the database:
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
    java.817/a83728/04jserv2.htm
    Gary (JDev Team)

  • Calling a Java Function from PL/SQL

    Hi,
    I would like to call a Java API from a java class residing on the middle tier ($OA_JAVA)
    from the subscription code of a business event. The business event will have a
    subscription with java rule function as my Java API. And the business event will be
    raised from PL/SQL code using WF_EVENT.RAISE API. I want the Java API to
    executed SYNCHRONOUSLY without deferring the event. Can you please provide
    pointers to this.
    Regards
    Ramesh

    Documentation here: http://download-uk.oracle.com/docs/cd/B14117_01/java.101/b10983/datamap.htm#sthref185
    says JPublisher can publish records too.
    But when I change the example given at http://download-uk.oracle.com/docs/cd/B14117_01/java.101/b10983/datamap.htm#sthref190 as following:
    PACKAGE "COMPANY" AS
    type emp_rec is record (empno number, ename varchar2(10));
    type emp_list is varray(5) of emp_rec;
    type factory is record (
    name varchar(10),
    emps emp_list
    function get_factory(p_name varchar) return factory;
    END;
    then I see <unknown type or type not found> at sql or java files generated. Any ideas?

  • Is it possible to make a call to an Infotype from an ABAP program?

    Dear friends,
    I created a new infotype 9*** using transaction pm01 and it works fine. What i need to do is to make a call to this infotype from an abap program without going through transaction pa30. Is it possible to do that? Thank you in advance.
    Sincerely,
    hajar

    Hi,
    The HR_MASTERDATA_DIALOG might need some tweaking.. we use a custom Program on the lines of SAP's
    'perform rp_infotyp(sapfp50g)'  that is more user friendly.. let me know if u need more info..
    Good Luck,
    Suresh Datti

Maybe you are looking for

  • XI/PI

    XI/PI - what is this PI?

  • Proxy settings in OSX 10.4.6 iBook G4

    Hi, I recently changed proxy settings to using a pac file (http://wpad.bham.ac.uk)as my university stated that this was the best way to access athens and suchlike. However, I keep getting a pop up box telling me to enter my username and password- eve

  • To print goods receipt note

    Hi friends, I have a SAPScript YPCC_GOODRV2 this is for Goods Receipt Note, The print program attached to this SAPScript is SAPM07DR. Output type is WE02. Can any one tell me the traction code to run the above mentioned print program. Thanks in advan

  • HT4972 How can I update my iPad ...

    I tried to go to settings then general, then software update...but in my general I don't have a button that says software update ,..so then how do I update my iPad??

  • How to download WeChat on Nokia Asha 202?

    How i download wechat on asha 202 Moderator's note: The subject was amended as the post was moved to a more appropriate board.