JCo connection between java and ABAP

Hi,
Any pointers for some good material on establishing JCo connection between ABAP and Java to execute ABAP FMs.
Thanks and Regards
Arpita Saxena

Please find following link for your reference.
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/85a483cb-0d01-0010-2990-c5168f01ce8a?quicklink=index&overridelayout=true]

Similar Messages

  • Error while creating connection between Java and ABAP

    Experts
    I am getting the following error message when I am trying to test the connection between JAVA and ABAP systems.
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (s09f71v06.svr.bankone.net:8100)
    5. The host name s09f71v06.svr.bankone.net was resolved successfully.
    6. The server s09f71v06.svr.bankone.net *could not be pinged* successfully.
    I have JAVA and ABAP on the same system. I am trying to establish a connection. I have checked all the settings and they looks fine. I have also pinged from other system to this server and the Ping works fine.
    Please do let m eknow where do I need to check for the errros or logs for the above error message.
    Appreciate your quick help.
    Mahesh

    Check the relevant services are test are active on the Backend system through SICF trransaction.
    Also make sure that default icm services are running.See note 517484.
    More important the connector test in the portal system should work properly,recheck the WAS path etc are correct.
    Regards
    Ajay

  • ESS/MSS sso configure between java and abap instance

    Dear Gurus,
    I want to configure sso between java and abap instance for ESS/MSS. I couldnt find any guide for it, could you please help me gurus ?
    Other question is, is there any specific role for ESS/MSS users in JAVA instance. I want to create users and assign this role to them.
    Best Regards

    Hi Kemal,
    Hope you are doing good.
    There should be a / in the ITS path before SAP.
    Basically the entry that you have mentioned here should be accessible via browser as well. For eg in your case:
    http://<its hist name>/sap/bc/gui/sap/its/webgui should be accessible over browser.
    I also think you have put in a extra space in "w  ebgui". It should be "webgui".
    If the connector settings are working, then we can be sure that system connection is fine. You do not need to configure ITS settings.
    Also for SSO, refer the SAP note:1083421 and configure the SS0 settings again.
    Please run the SSO2 wizard and then make the automatic connection to
    the abap server. This will solve any inconsistencies on the server
    due to manual interventions.
    Most likely reason for the error is that certificates were loaded
    manually rather than using SSO wizard.
    More help:
    <http://wiki.sdn.sap.com/wiki/display/EP/Troubleshooting+SSO+between+AS-ABAP+and+AS-JAVA>
    The SSO enabling parameters should be set on the R/3 server.
    SSO Logon Ticket-> login/accept_sso2_ticket and login/create_sso2_ticket
    More info:
    <http://help.sap.com/saphelp_nw04/Helpdata/EN/22/41c43ac23cef2fe10000000a114084/frameset.htm>
    Thank you and have a nice day :).
    Kind Regards,
    Hemanth
    SAP AGS

  • Communicate link between Java and ABAP Stack for https

    I have configured https in both the java and abap stacks (we have a double stack configuration).  Due to our future configuration I have changed the hostnames to fully qualified hostnames per SAP instructions. 
    The question I have is does anyone know what RFC destinations or JCo settings I need to change to make https complete?
    I have the problem where when I fire off the Integration Builder from within the ABAP stack (SXMB_IFR) I get a straight hostname (no domain name).  Where is this configured?  Any help is appreciated..

    Check the exchange profile (Administratio tab in /rep/start/index.jsp page; you will have to enter it manually since it is throwing error from SXMB_IFR).
    Regards,
    Henrique.

  • Socket connection between Java and C

    I want to establish socket connection between Java client and C server (on Unix). Can anybody tell how to do it? Will the socket created in client be available in server. I tried out but there was no response from the server.

    We too can't connect the daemon server written by "c". The phenomena is below.
    << Execution of this Question1.class >> ---------------------------------------
    [kazuyuki@CryptOne tmp]$ java Question1 E 1.2.3.4 MFrame.java 195.211.1.1 15021
    << Output message >> ----------------------------------------------------------
    Quetion1 : flg_ = E
    Quetion1 : key_ = 1.2.3.4
    Quetion1 : fn_ = MFrame.java
    Quetion1 : adr_ = CryptOne.localhost/195.211.1.1
    Quetion1 : port_ = 15021
    java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
         at java.net.Socket.<init>(Socket.java:268)
         at java.net.Socket.<init>(Socket.java:122)
         at Question1.UPLOAD(Question1.java:65)
         at Question1.main(Question1.java:155)
    << Question >> ----------------------------------------------------------------
    Why the event "java.net.ConnectException: Connection refused" has occured ?
    The server to connect from Question1 can accept the connection request from
    the client program coded by "c" program. We have written down the daemon server
    program by "c" code tcp/ip socket functions (socket, bind, listen, accept).
    Security manager admits the access from this Question1.class, we have checked.
    Would you like please answer this Connction refuse occurrence ?
                                                                     2002.05.18 11:50:00.0(JST)
                                                                     K.Masuda
    << Java client code>> -------------------------------------------------
         (c)Copyright     All rights reserved.
              K.Masuda     2002.05.18
                   << Question1.java >>
    import     java.lang.String;
    import     java.io.InputStream;
    import     java.io.OutputStream;
    import     java.io.DataInputStream;
    import     java.io.DataOutputStream;
    import     java.io.FileInputStream;
    import     java.io.FileOutputStream;
    import     java.io.IOException;
    import     java.io.FileNotFoundException;
    import     java.net.Socket;
    import     java.net.InetAddress;
    import     java.net.UnknownHostException;
    import     java.net.ConnectException;
    import     java.net.NoRouteToHostException;
    class Question1 {
         char               flg_;
         String               key_;
         String               fn_;
         InetAddress          adr_;
         int                    port_;
         Socket               sock_;
         Question1(
              char          flg,
              String          key,
              String          fn,
              String          adr,
              int               port
              flg_     = flg;     
              key_     = key;
              fn_          = fn;
              try{
                   adr_     = InetAddress.getByName( adr );
              catch( UnknownHostException e ){
                   e.printStackTrace();
              port_     = port;
    System.out.println( "Quetion1 : flg_ = " + flg_ );
    System.out.println( "Quetion1 : key_ = " + key_ );
    System.out.println( "Quetion1 : fn_ = " + fn_ );
    System.out.println( "Quetion1 : adr_ = " + adr_ );
    System.out.println( "Quetion1 : port_ = " + port_ );
         public void UPLOAD(
              try{
                   sock_     = new Socket( adr_, port_ );
                   UpLoad();
                   DnLoad();
                   sock_.close();
              catch( UnknownHostException e ){
                   e.printStackTrace();
              catch( ConnectException e ){
                   e.printStackTrace();
              catch( NoRouteToHostException e ){
                   e.printStackTrace();
              catch( IOException e ){
                   e.printStackTrace();
         public void UpLoad(
              byte[]                         buf          = new byte[ 512 ];
              int                              rlen;
              int                              wlen;
              try {
                   OutputStream          sos          = sock_.getOutputStream();
                   FileInputStream          fis          = new FileInputStream( fn_ );
                   DataInputStream          dis          = new DataInputStream( fis );
                   DataOutputStream     dos          = new DataOutputStream( sos );
                   while( ( rlen =     dis.read( buf, 0, buf.length ) ) >= 0 ){
                        dos.write( buf, 0, rlen );
                   dis.close();
                   dos.close();
                   fis.close();
                   sos.close();
              catch( IOException e ){
                   e.printStackTrace();
         public void DnLoad(
              byte[]                         buf          = new byte[ 512 ];
              int                              rlen;
              int                              wlen;
              try {
                   InputStream               sis          = sock_.getInputStream();
                   FileOutputStream     fos          = new FileOutputStream( fn_ + ".cry" );
                   DataInputStream          dis          = new DataInputStream( sis );
                   DataOutputStream     dos          = new DataOutputStream( fos );
                   while( ( rlen =     dis.read( buf, 0, buf.length ) ) >= 0 ){
                        dos.write( buf, 0, rlen );
                   dis.close();
                   dos.close();
                   fos.close();
                   sis.close();
              catch( IOException e ){
                   e.printStackTrace();
         public static void main(
              String[] args
              char[]     chrs     = ( new String( args[ 0 ] ) ).toCharArray();
              Question1     clnt     = new Question1(
                                                                     // E or D
                                            chrs[ 0 ],
                                            args[ 1 ],               // key string
                                            args[ 2 ],               // file to be processed
                                            args[ 3 ],               // IP address
                                                                     // port
                                            Integer.parseInt( args[ 4 ] )
              clnt.UPLOAD();
    }

  • SAProuter for Jco between Java and ABAP stack

    When configuring Jco at Java only, there is an option to use SAProuter.
    This is not for SMP download or OSS support.
    So is there any document for this kind of SAProuter usage?
    Thanks!

    I don't quite understand why you need SAProuter between 2 SAP instances, which means they locate in 2 different network segments and cannot communicate each other directly. But let's assume this scenario:
    1. ECC in network A, IP 10.10.10.1;
    2. Portal in network B, IP 192.168.1.1;
    3. SAProuter has 2 adapters, IP 10.10.10.2 and 192.168.1.2.
    Make sure all message server and dispatch info are maintained correctly in service file (or corresponding file on other platform) on all 3 hosts, and then when you configure Portal Jco connection routestring you need is /H/<SAProuter IP>/S/3299 to enable them communicate each other. Usually this is for security purpose of potential network attack to SAP hosts from user IP, for instance:
    4. All public users in network C, IP 172...*, then you need a SAProuter which has 3 adapters.
    Regards,
    Effan

  • Java and abap stack connection

    Hello,
    how to check connection b/w Java and ABAP stack.
    I am getting below error :
    SAP:Code area="MAPPING">JCO_SYSTEM_FAILURE</SAP:Code>
      <SAP:P1>connection to partner 'localhost:0' broken / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 t</SAP:P1>
    We did some upgrades of kernel and jvm and started getting this error.
    Please suggest

    Hi,
    Check this threads
    JCO_SYSTEM_FAILURE
    JCO_SYSTEM_FAILURE
    JCO_SYSTEM_FAILURE . Pls help
    Regards
    Ramesh

  • ABAP Proxy connection Between PI and SRM for XMLs

    Hello Experts,
    We are trying to set up ABAP proxy connection between PI 7.1 and SRM so we can send XML from SRM into PI.
    Our SRM developer is getting an SLD error (below) and seems like something is not set up right in the SLD. Could you help me out with any kind of blog/documention on setting up an ABAP proxy connection between PI and an ABAP system. Something that talks about what steps we need to take in PI and SRM.
    error ...
    *We saw the error during debugging. This error is preventing XML output
    to be sent to PI.
    BBP_BD  002     An SLD system has not been assigned to logical system
    Thanks,
    Mayur

    Thanks all for a quick reply. I also had to take following step to achieve the task.
    adding the XI system to the SRM config - SRM Server -->
    Technical basic Settings --> Define  System Landscape?  (also please
    associated documentation in that link for XI)
    Thanks,
    Mayur

  • SMSY for ERP JAVA and ABAP Stack

    Hi Folks - I have installed SAP ERP 6.0 EHP5 in one database called T12. Now there is a need for a Java stack and I have installed the Java stack in another database called J12.
    I was able to define the ABAP stack on system landscape and MOPZ is working fine. However, I am not sure how I should go about the Java (J12) instance definidstion on SMSY.
    I am using Somlam 7.1 on Oracle Linux system.
    ABAP stack is on ERL 6.0 EHP5 and Java stack is Netweaver 7.0 EHP2.
    J12 and T12 systems are connected via JCO.
    SLD has been defined for both stacks and they are using the local SLD for the SolMan.
    Your help is much appriciated.

    Sunny - I checked the SLD and It is working fine. There were couple of issues that I fixed. Since I defined the Java system manually I delete it. Hopefully SLD will populate the definition.
    In same note, Would it be possible that installing ERP java and ABAP stack on different hosts (stand alone) is causing this issue, especially they are using different Sid's?
    I was reading SAP Note 1344564, It states
    III.Some Main Instances include other Main Instances (E.g., in SAP
    ERP 6.0, Main Instance SAP NW - Enterprise Portal includes SAP NW -
    EP Core.). If the including Main Instance is installed, it's not
    necessary to mark the included Main Instance(s) for relevance.
    Is this mean in SMSY I do not have to define any product for the Java engine? When installing the Java, I had to create the product manually to be able to generate the installation key.
    Your input is appreciated.
    Edited by: kourosh Ghouchkhani on Nov 22, 2011 1:20 AM

  • Users mapping between EP and ABAP system

    Hello
    I'd like to ask for some guidance in my quest
    Current situation looks like this:
    I've configured UME in AS Java to work with LDAP as read only data source. Then I've configured SPNego to run SSO - It works, users from MS AD can log into portal.
    Now I have application in WD which authorizes via EP/AD - works fine.
    And next step is users mapping between AD and ABAP backend (serving some BAPI's for WD app)
    I've found a bunch of help pages starting from
    http://help.sap.com/saphelp_nwce711/helpdata/en/0b/d82c4142aef623e10000000a155106/frameset.htm
    But somehow it's quite complicated to achieve this mapping. I've tried to set RFC destinations logon type to user mapping but without succes.
    Can anyone point me to some more clear example or give path to configure this scenario? Is there a way of configuring this with NWA or some XML file editing is required?
    Any help will be appreciated.
    BTW: whole environment is in version 7.11
    Best regards
    Maciej

    There is no equivalent to SPNEGO on the ABAP side.
    If your goal is to propagate the user, then possible options are:
    -> Wait for SAML 2.0 or invest now in a SAML 1.0 provider.
    -> Use the same kerberos ticket for the EP as what your ABAP system will accept: route = SNC and 3rd party libraries.
    -> Issue SAP logon tickets for the ABAP system from the EP, and use these in your WDA.
    Another option is to expose the service with saved logon data in the ICF. If the service is just a wrapper for the BAPI, then you can also consider using trusted RFC between the service and the backend, but this might not be acceptable for your service.
    I have only done experimental stuff with this and some of the above is not released yet. Also consider the consequences, even if it "does work"...
    Cheers,
    Julius

  • Communication between java and c++, help!

    i am c++ programmer and newly to java.
    now i am developping a client/server app. i use java transfers data (socket) between client and server, and use c++ to create user interfaces because c++ is easier for interfaces.
    my question is:
    in a single PC, java needs to tell c++ what info was read from socket and c++ needs to tell java what info will be written to socket.
    i want to use 2 files (read and write) as media between java and c++. that is: java writes data to a file and c++ reads from the file, and vice versa.
    i know it's not efficient. could you tell me better way to do?
    thanks in advance.

    thanks for reply.
    my problem is: socket is fare in java, not fare in c++
    (win/nt). could u use server in a non nt-server
    machine with c++?I'm not sure what you mean "fair". NT-Server is just a version of NT that Microsoft adds their server products to. Most of which you don't want to use because they are a security nightmare. I think what your asking is can you do the equivalent of Java's ServerSocket in C++. Sure, the socket libraries in Windows (at least last time I checked) were based off the BSD socket libraries. So you would basically do something like:
    // Open socket
    ss=socket(AF_INET, SOCK_STREAM, 0);
    if(ss==-1)
      cerr<<"Error opening socket."<<endl;
      return 0;
    // Fill in address
    struct sockaddr_in server;
    server.sin_family=AF_INET;
    server.sin_port=htons((unsigned short)port);
    server.sin_addr.s_addr=INADDR_ANY;
    // Bind to port
    if(bind(ss, (struct sockaddr *)&server, sizeof(server))==-1)
      cerr<<"Could not bind to port "<<port<<"."<<endl;
      return 0;
    // Ready to accept connections
    if(listen(ss, 5)==-1)
      cerr<<"Could not listen."<<endl;
      return 0;
    // Loop to accept connections
    while(/* some condition */)
      // Accept a connection
      int s=accept(ss, 0, 0);
    }This should work on any version of windows as long as you have winsock. The example code might need to be changed a little though since I copied it from a Linux program I had.

  • 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

  • HTTP type connectivity between XI and R3 - load balancing options ?

    Hi
       We have a http type connectivity setup between XI and R3 in order enable XI to communicate with R3 using ABAP proxies. We did this by creating a RFC destination on the ABAP stack of XI of type 'H' ( http connection between R3 systems ). Now, while setting up this rfc destination, there is no option to specify a message server on R3 - we just see a target server field that can be filled in.
    In an rfc destination of type 3 - on the XI box ( which is used for a XI --> R3 idoc adapter ) , I  can see an option for specifying message server.
    Does this mean that using type 'H' connectivity between XI and R3 does not give us an option of hitting the load balancing - message server on R3 and thus cannot use the load balancing setup on R3 ? Is this is a limitation of type 'H' connectivity between XI and R3 ?

    for HTTP load balancing the options seems to be somewhat different....check if these threads provide you any help:
    http://help.sap.com/saphelp_nw04s/helpdata/en/ae/9bfc3f9ec4e669e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/79/a1ce9569444647956b0ec1cf443c4d/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/43/39c7b227b91bcbe10000000a1553f7/content.htm
    Regards,
    Abhishek.

  • Connection between BI and XI

    Hi All,
    We are trying to establish a connection between BI and XI. This will be an inbound process from XI to BI ( A push to BI from XI). Can some body explain the technical steps we need to take to configure an XI source system in BI so that we can then create data source on that sources system.

    Hi All,
    Now I am writing the ABAP code for the method in Proxy class. I could not find a exception class that is needed to complete the abap code.
    Here is the code
    method ZII_DATA_TO_BW~EXECUTE_ASYNCHRONOUS.
    DATA: l_text TYPE string,
    l_s_data TYPE line of /BIC/WCQSENDXML00001000,
    l_t_data TYPE /BIC/WCQSENDXML00001000.
    FIELD-SYMBOLS <l_line> LIKE LINE OF input-data-item.
    LOOP AT input-data-item ASSIGNING <l_line>.
    MOVE-CORRESPONDING <l_line> TO l_s_data.
    APPEND l_s_data TO l_t_data.
    ENDLOOP.
    CALL FUNCTION '/BIC/CQSENDXML00001000'
    EXPORTING
    data = l_t_data
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO l_text.
    RAISE EXCEPTION TYPE ZCX___BIC__CQSENDXML00001000_E
    EXPORTING text = l_text.
    ENDIF.
    endmethod.
    In this code the ZCX.... class is not found in my class implementation. What could be the possible cause of this issue? In the how to paper it asks to click on the signature to check for the Exception but switching the Exception on only shows the type attribute and no exception class is visible.
    Please help.

  • Connection between O and BP is missing

    Hi,
      When i check inconsistency for a user, i am getting " Connection between "O" and "BP" is missing. When i check the Org.unit in PPOSA_BBP, i could see no BP exists for that Org.unit where user is assigned. I have replicated the org.unit from HR system but yet the BP hasnt been generated. Can you please share your idea on this.
    Regards,
    Prasath J

    Hi Prasath,
    This might be because you need to assign the user to a Purchasing Organisation or a Purchasing Group. If the user do not have BP created then you can do this by using tcode USERS_GEN.
    Go to USERS_GEN and follow below steps :
    1. Select Create User From Existing SU01 user
    2. Enter the org id of the POrg or Pgroup under which you want to assign the user
    3. Select country and execute
    4. In next window one popup will occur, select Area Of User
    5. In next popup enter the user id
    6. Next select the user and click Ok.
    7. This will create a BP and CP for the user and assigns the BP to the Org id of the POrg or Pgroup.
    8. Now check the consistency of the user it will show all green.
    It might give you error like eMail id for BP XXXXX is missing if the SU01 profile of the user does not contain any user id but it is not critical.
    You can open the BP in BP tcode and enter the email id of the user.
    Let us know if it solves your issue.
    Regards,
    Mayur

Maybe you are looking for

  • How can I improve quality of image when burning a movie to a DVD

    How can I improve quality of image when burning a movie to a DVD?

  • Images not loading with ML

    Pretty much trouble free with the upgrade except for a couple of issues: 1.  Images on Safari are not loading on a lot of webpages ... getting the deadly blue box instead. 2.  MBA is extremely slow to start up or shut down.  Prior to ML my MBA starte

  • Kernel crashes in osx 10.8.5

    My Macbook PRo would not start two days ago, when i booted it it would show the Grey screen with the apple icon and beep three times.  I tried to boot to the cd but no luck, I went to best buy to purchase new memory chips thinking that was the proble

  • Equipment Order Reporting Error

    Hi All, When I drill down callouts on back reporting level by company code, Reason code, and action code. I see two lines per service order.  I have two records in MP for the same service order. Is there any possibility that I get only one record in

  • Cinematic Tab missing Recon3d PCIe Windows 8.1

    I was upgrading the Creative software for my Recon3d sound card then i realized that the cinematic tab is missing now. any clues??