Call to metod in java from abap

Hi,
there is a way to use method of java  in abap ?
Regards

If you search Google for
ABAP jco outbound
you should be able to find a wealth of info - for example
[SAP Java Connector (SAP Library - Components of SAP Communication ...|http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm]
Jonathan

Similar Messages

  • Call java from ABAP

    JCo connectivity is used to call RFCs from Java. can i call Java from abap?
    thanks in advance.....
    regards,
    Sundararamaprasad

    Hi Sundar ,
             This link will surely give u an idea about calling java fro ABAP using Jco.
    http://www.thespot4sap.com/Articles/SAP_Netweaver_Java_Connector.asp
    regards,
    aravindh.

  • Is it possible to call std. SAP transaction from abap wd

    Is it possible to call std. SAP transaction from abap wd so that transaction appears and work as in gui? Without portal ofcourse.
    I know that using webgui and/or ITS it is possible so then it must be somehow possible....

    Hi,
    see Web Dynpro ABAP call transaction in the foreground and just carry out a simple search in this forum, then you'll find several threads with similar questions...
    Regards, Heidi

  • Calling java from abap

    Hi Colleauge,
        I have a scenario in which i have a program in java. This program expects few parameters and this java program needs to be called from an ABAP program.
    Please let me know how can i achieve this.
    Thanks & Regards,
    Ritwik.

    Hi
    the concept of Web Dynpro is common for Java as well as SAP.
    if you have the SAP Netweaver Developer Studio on your machine you can use it to generate proxies for the Java-SAP calls (and maybe SAP-Java too). This will generate Java classes (which will use JCo) and these classes can be used on your Java system.
    You will get help from this concept.
    Regards,
    Shamma

  • Calling external Java from ABAP using JCo?

    Does anyone know if one can use JCo to write a server application that can be called from ABAP.
    We are presently using JCo to communicate from Java to SAP.
    But we need to call an external Java program from within ABAP.
    Is this possible?
    Thanks for any input.
    Fred

    Hi Gregor,
    I was hoping you would reply to this -- these posted messages had been here for quite sometime now.
    Anyway, here's the case. Our Basis team is installing the JCo in our SAP development server. This is our first time to implement this technology, so no one has a clue at all.
    Got a couple of questions for you...
    1. What do we need the JDK for? Is it mainly for editing, running, and compiling java files (e.g. Example5.java)?
    2. Does the JDK need to be installed at the SAP server as well? Or it doesn't matter, as long as the java files will be accessible from where it was installed at?
    Thanks for any response!

  • Java from ABAP?

    Hello!
    How can I start (=call) a java program from ABAP? I have only .class and .java files.
    Thanks!

    Hi,
    Using the SAP Java Connector
    SAPu2019s new Java middleware, the SAP Java Connector (JCO) allows customers and partners to easily build SAP-enabled components in Java. JCO supports both inbound (Java calls ABAP) and outbound (ABAP calls Java) calls in desktop and server applications.
    Sample program
    Import statements: Any program using JCO should contain the following import statement:
    import com.sap.mw.jco.*;
    Otherwise, you have to fully qualify each class and interface which is very inconvenient.
    Connecting to SAP
    JCO.Client mConnection;
    A connection (or session) with SAP is handled by class JCO.Client
    try {
    mConnection =
    JCO.createClient("400", // SAP client
    "c3026902", // userid
    "********", // password
    "EN", // language
    "iwdf5020", // host name
    "00"); // system number
    mConnection.connect();
    catch (Exception ex) {
    ex.printStackTrace();
    System.exit(1);
    "A Client object is created via a call to createClient(). You can use a specific application server (as in the above code) or a server group (load balancing)." REFER the JCO Javadoc for the overloaded createClient() method for the latter possibility.
    "The Client class's connect () method tries to log on to SAP. If that fails for any reason, an exception is thrown. If the call succeeds, we can now stay connected for as long as we like. When we are done, we can call disconnect () to explicitly log off."
    Hope this sample would help you..
    Regards
    Narin Nandivada

  • Create an SAP Web Service Consumer (calling External Sharepoint Web Service from ABAP)

    hi all,
    i am trying to
    Create an SAP Web Service Consumer (calling sharepoint Web Service from ABAP) using blog given on following link
    Create an SAP Web Service Consumer (calling External Web Service from ABAP) 
    but when i am using my url at the end of step 3, i am getting error as follows:
    i dont want to use local file option. Can anyone help me in this??
    thanks in advance
    regards,
    SDS

    Hi SDS,
    you recieved a http 404 error when trying to access the Sharepoint Web service. Http 404 indicates that the resource is not reachable (cf. HTTP 404 - Wikipedia, the free encyclopedia). There could be different reasons for that. I'd suggest rubble checking the URL of the Web service first. Try to access it from a browser on you desktop. If the URL is correc. Most likely the SAP system is not able to connect to the URL. This could, for example, be due to some firewall restrictions. You should ask a SAP Basis colleague if they are able to access the URL of the Web service from the server on which the SAP system is running.
    Christian

  • 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

  • How to Call Java from ABAP

    Hi all,
    I have installed JCO & created the RFC in SAP. i have used below code to test my RFC connection & it's working fine.
    But In the below report, where to call the JAVA Program & what code i should use to call java code .
    Actually my ABAP requirement is to download a file. Then i need to call JAVA program, inside ABAP, to encrypt the downloaded file. Here, Java program is used to encrypt the file. Now question is, how to call the Java program inside the ABAP code.  Please advice with the code sample. Thanks a lot.
    REPORT  z_jco_test.
    PARAMETERS: requtext LIKE sy-lisel.
    DATA: echotext LIKE sy-lisel,
          resptext LIKE sy-lisel,
          rfctest TYPE TABLE OF rfctest,
          wa_rfctest TYPE rfctest.
    wa_rfctest-rfcdata1 = requtext.
    wa_rfctest-rfcdata2 = 'Hello World'.
    APPEND wa_rfctest TO rfctest.
    CALL FUNCTION 'RFC_PING'
      DESTINATION 'JCO'.
    CALL FUNCTION 'STFC_CONNECTION'
      DESTINATION 'JCO'
      EXPORTING
        requtext = requtext
      IMPORTING
        echotext = echotext
        resptext = resptext
      TABLES
        rfctest  = rfctest.
    WRITE: 'Echo Text: ', echotext.
    WRITE: 'Response Text: ', resptext.
    LOOP AT rfctest INTO wa_rfctest.
      WRITE: / 'rfcdata1: ', wa_rfctest-rfcdata1.
      WRITE: / 'rfcdata2: ', wa_rfctest-rfcdata2.
    ENDLOOP.

    Hi,
    You might accomplish your goal using external operating system commands.
    1) Define in SM69 an external command, letu2019s say ZJAVA. This command will execute a script on the operating system, letu2019s call it calljava.sh.
    2) In script calljava.sh you just call java, passing some parameters. For example, java $1 $2 $3 $4 $5 $6 $7
    3) In your ABAP program you call the ZJAVA external command and pass parameters to it. Of course, one of the parameters must be your Java program name.
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          commandname                   = l_command
          additional_parameters         = l_param
          trace                         = 'X'
        IMPORTING
          status                        = l_status
          exitcode                      = l_exitcode
        TABLES
          exec_protocol                 = l_exec_protocol_itab
        EXCEPTIONS
          no_permission                 = 1u2026

  • How to separate JAVA from ABAP in BI 7.0

    Hello Experts,
    we think about a separated BI (ABAP and BI-JAVA) on two servers
    during a migration to a new Hardware!
    The existing system is a double-stack (BI 7.0).
    So we should find out how to do this, how to separate the
    Java instanz from the ABAP during the migration.
    Does anybody know the right procedure or a "How To Guide"?
    Thanks in advance.

    Hello Experts,
    we think about a separated BI (ABAP and BI-JAVA) on two servers
    during a migration to a new Hardware!
    The existing system is a double-stack (BI 7.0).
    So we should find out how to do this, how to separate the
    Java instanz from the ABAP during the migration.
    Does anybody know the right procedure or a "How To Guide"?
    Thanks in advance.

  • Calling KM navigation iview from ABAP

    Hi All,
    I am trying to call the KM Navigation iview from ABAP webdynpro view. it is like implement the same functionality as currently available for Repository filters through ABAP coding. I have to create a new Folder in the KM and call the KM Navigation iview for that specific folder. I know KM has provided few new webservices which I can use to create a new folder in the KM repository but I am unable to open the KM navigation iview with the newly created folder through coding.
    I am using the navigate_absolute Portal Navigation method to call the KM Navigation iview from ABAP code. Currently it is opening iview with the folder set as root folder in the iview property but I need to open it with the newly created folder through the code. The same sort of functionality is implemented from java code by passing the Business parameter with navigate_absolute method. The problem with ABAP code is that I don't know what is the exact format of the Business parameter to be passed.
    In the java code the Business parameter is passed as
    Uri=/documents/cprxrpm/46A73F1FEED21B0DE10000000A4241A8:DFM_450_MIT3_SAURABH/RIH/47B44774254208CCE10000000A4241A8:wonder-item-01 :WONDER-ITEM-01
    Does anybody have idea how can i implement the same scenario in ABAP and what should be the format of the to be passed as Business Parameter from ABAP code ?
    Regards,
    Vikash

    In the abap web dynpro view create an exit out bound plug with url as parameter.
    In your wddoinit call the the url. The url can be accessed by previewing the km iview in content management. Hope this helps.

  • How to run Java codes from ABAP

    Hi Gurus,
    I have .JAVA & .CLASS files which connect to the website through HTTPS connection and generates the TEXT file at C:\ by obtaining some data from WEB Site. This java files needs SSL certificate Which has been imported in SAP. How can i run the Java files from SAP R/3, Please help me.
    Thanks
    Ganesh

    hiii
    refer to following link..
    Java from ABAP?
    Re: Calling Java API from ABAP using JCo
    i hope it will solve your problem
    regards
    twinkal

  • Calling and manipulating data on an Interactive Adobe form from ABAP report

    Dear All,
    Can you please tell me how to call an interactive adobe from from a custom adobe form?
    If so how can we pass and receive data between the interactive adobe form and the abap report program?
    Thank you.
    Regards,
    Prosenjit.

    Hi,
    It is possible to call an Interactive Adobe form from ABAP report and pass data into the form. If you search the forum, you will get many threads explaining the process. Let me know if you have any specific questions on this.
    Regards,
    Sanoosh

  • Calling a secured external web service from ABAP

    Hi,
    I've created a client proxy from a wsdl to call a secured external WS from ABAP.
    The question is: how to pass in the user/password in the client proxy?
    thanks

    Hi Rika,
      have a look to the blog: https://weblogs.sdn.sap.com/pub/wlg/1645. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
      Screen shots are "old" but the concepts are already there. Serach the chapter "SAP Side - Setup".
      Basically: define your RFC destination via SM59 of type G. There you'll define the target host and the user/password.
      Then in LPCONFIG you can specify the defined RFC destination.
      Have a look also to http://help.sap.com/saphelp_nw2004s/helpdata/en/16/285d32996b25428dc2eedf2b0eadd8/content.htm
      and to
    http://help.sap.com/saphelp_nw04s/helpdata/en/da/11df3a9b10355ae10000000a11405a/content.htm
    Sergio
    PS
    Kindly close the thread and award appropriate a points to the answer given.
    Message was edited by:
            Sergio Ferrari

  • SAP NetWeaver 70 - Java and ABAP VMware Trial.part02.rar CRC error?

    HI,
    I've downloaded the file:
    SAP NetWeaver 70 - Java and ABAP VMware Trial.part02.rar
    of SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition
    four times and everytime a get a CRC error in the RAR file. Is the file wrong or the download incorrect?
    Regards, Edwin Slee

    Hi Henry.
    I’ve downloaded the file again. Now it is called:
    SAP NetWeaver 70 - Java and ABAP VMware Trial.part02.tgz
    But it is a RAR file.
    As you suggested I open the file with WINRAR 3.61 and select
    Tools -> repair archive
    In the directory a file:is created with the name:
    rebuilt.SAP NetWeaver 70 - Java and ABAP VMware Trial.part02.tgz
    The WINRAR message box reads:
    Detecting archive type...
    ---> RAR
    Build fixed.SAP NetWeaver 70 - Java and ABAP VMware Trial.part02.tgz
    Searching for recovery record
    ---> recovery record not found
    Build rebuilt.SAP NetWeaver 70 - Java and ABAP VMware Trial.part02.tgz
    Found SLES10SP1_Test_Drive(2)-s002.vmdk
    Found SLES10SP1_Test_Drive(2)-s003.vmdk
    Found SLES10SP1_Test_Drive(2)-s004.vmdk
    Found SLES10SP1_Test_Drive(2)-s005.vmdk
    When I open this file with WINRAR again a try to extract
    SLES10SP1_Test_drive(2)-s003.vmdk I still get a CRC error, the archive file is corrupted.
    I think the error isn’t due to the download, because I’ve downloaded the file using three different internet connections (8 times now) and all the files are identical, with a CRC error !
    Regards, Edwin Slee

Maybe you are looking for