JCO Connector

Hi,
Can anyone explain functionlity of JCO Connector ?
Can we use java code in abap ?
In which editor ?
Bye,
Satya.

Hi Satyanarayana,
<b>SAP Java Connector - Excample 1: Simple RFC call
Scenario
We will call the RFC function module ZNAS_HIE1_GET_MEMBER_FARM.that returns members that have owned a farm. Input to the function is a farm number, and output is a table of members that have owned the farm and Owner number (Sequence number of owners).
Class testJCO is excuted and calls class GetMemberFarm method GetMemberFarmFromSap. Input parameters to GetMemberFarm are Farm and Owner number.
GetMemberFarmFromSap executes RFC ZNAS_HIE1_GET_MEMBER_FARM, that returns a table of members that have owned the farm from the input parameters.
GetMemberFarmFromSap loops through the table and finds the member where ZZCHCODE (Owner numer), is equal owner number from the input-parameters. and returns the member.
Code
Class testJCO
public class testJco
     public static void main(String[] args)
          GetMemberFarm testGetMemberFarm = new GetMemberFarm();
          String memberFarm= testGetMemberFarm.GetMemberFarmFromSap("0111020155","02");
          System.out.println("Memberfarm: " + memberFarm);
Class GetMemberFram
import com.sap.mw.jco.*;  //The JCO
public class GetMemberFarm {
  public String GetMemberFarmFromSap(String farm, String OwnerNumber)   
  {  String zzmemb ="";
        String memberFarm = "";
     JCO.Repository mRepository;
     JCO.Client mConnection = null;
     JCO.Function myFunction = null;
     //Create Connection to SAP
       try
            mConnection = JCO.createClient("800",           //SAP client
                                        "HFR",       //User ID
                                        "vimmer3",     //Password
                                        "EN",            //Language
                                        "53.205.22.71", //Host
                                        "03");           //System
         mConnection.connect();
         System.out.println("Connection OK");
       catch (Exception ex)
            System.out.println(ex);
      // Create function and parameters
      try
        //Create repository
        mRepository = new JCO.Repository( "GetMember", mConnection );
        //Get a function template from the repository
        IFunctionTemplate ftemplate = mRepository.getFunctionTemplate("ZNAS_HIE1_GET_MEMBER_FARM");
        //Create function
        myFunction = new JCO.Function(ftemplate);
        System.out.println("Function created");
        //Set import parameter
        JCO.Field zzfarm = myFunction.getImportParameterList().getField("ZZFARM");
        zzfarm.setValue(farm);
        System.out.println("Parameters ok");
     catch (Exception ex)       
          System.out.println(ex);
     // Execute function
     try
          mConnection.execute(myFunction);
        System.out.println("RFC Call OK");          
     catch (Exception ex)      
      {  System.out.println(ex); //Exception from function          
     // Handle return table GT_HIERARCHY
     // Loop over the table and find the record that
     // has ZZCHCODE = OwnerNumber from the
     // method parameters, and return Member for the
     // record
     JCO.Table gt_HIERARCHY = null;
     try
          gt_HIERARCHY=myFunction.getTableParameterList().getTable("GT_HIERARCHY");
          //Loop thhrough table and return the member that has
          // changecode (ZZCHCODE) = 02
          for (int i = 0; i < gt_HIERARCHY.getNumRows(); i++)
          {   gt_HIERARCHY.setRow(i);
              String zzchcode = gt_HIERARCHY.getString("ZZCHCODE");
              if (zzchcode.equals(OwnerNumber))                        
                   zzmemb = gt_HIERARCHY.getString("ZZMEMB");                   
     catch (Exception ex)      
      {  System.out.println(ex);           
     // Disconnect from SAP
     try
         mConnection.disconnect();  
         System.out.println("Disconnected from SAP");
      catch (Exception ex)
           System.out.println(ex);
      return zzmemb;
} //public class GetMemberFarm
Example: 2
SAP Java Connector - Example 3: Create Salesorder
This example shows how to make a sales order using the SAP java Connector and BAPI_SALESORDER_CREATEFROMDAT2. First the ABAP code for using the BAPI is shown, and next the Java implementation is shown.
ABAP Example
REPORT z_bapi_create_sales_order_test .
Order header:
- Order type: OR  Important you must use the german code TA
- Sales org: 1000
- Distrb. chan.: 10
- Division: 00
- Sold to party: 1032
- Ship to party: 1032
- Purch order: DG-19970626-3
Order item:
- Material: P-100
- Qty: 1
DATA:
Order partners
li_order_partners    TYPE STANDARD TABLE OF bapiparnr,
l_order_partners     LIKE bapiparnr,
Structures for order header
l_order_header_in    LIKE bapisdhd1,
l_order_header_inx   LIKE bapisdhd1x,
Tables for order items
li_order_items_in    TYPE STANDARD TABLE OF bapisditm,
l_order_items_in     LIKE bapisditm,
li_order_items_inx   TYPE STANDARD TABLE OF bapisditmx,
l_order_items_inx    LIKE bapisditmx,
Return table from bapi call
li_return TYPE STANDARD TABLE OF bapiret2,
l_return  TYPE bapiret2,
Sales document number
  l_vbeln LIKE bapivbeln-vbeln,
Error flag
  l_errflag(1) TYPE c.
START-OF-SELECTION.
Build partner information
  CLEAR l_order_partners.
  l_order_partners-partn_role = 'AG'.          "Remember German codes !
  l_order_partners-partn_numb = '0000001032'.
  APPEND l_order_partners TO li_order_partners.
Build order header
Update flag
  l_order_header_inx-updateflag = 'I'.
Sales document type
  l_order_header_in-doc_type    = 'TA'.        "Remember German codes !
  l_order_header_inx-doc_type   = 'X'.
Sales organization
  l_order_header_in-sales_org  = '1000'.
  l_order_header_inx-sales_org  = 'X'.
Distribution channel
  l_order_header_in-distr_chan = '10'.
  l_order_header_inx-distr_chan = 'X'.
Division
  l_order_header_in-division = '00'.
  l_order_header_inx-division = 'X'.
Purchase order
  l_order_header_in-purch_no_c = 'DG-19970626-300'.
  l_order_header_inx-purch_no_c = 'X'.
Build order item(s) - Only 1 is used in this example
  l_order_items_in-itm_number = '10'.
  l_order_items_inx-itm_number = '10'.
  l_order_items_in-material = 'P-100'.
  l_order_items_inx-material = 'X'.
  l_order_items_in-comp_quant = '1.000'.
  l_order_items_inx-comp_quant = 'X'.
  APPEND l_order_items_in TO li_order_items_in.
  l_order_items_inx-updateflag = 'I'.
  APPEND l_order_items_inx TO li_order_items_inx.
CALL Bapi
  CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
       EXPORTING
            order_header_in  = l_order_header_in
            order_header_inx = l_order_header_inx
            testrun          = 'X'
       IMPORTING
            salesdocument    = l_vbeln
       TABLES
            return           = li_return
            order_items_in   = li_order_items_in
            order_items_inx  = li_order_items_inx
            order_partners   = li_order_partners.
END-OF-SELECTION.
Check and write Return table
  CLEAR l_errflag.
  WRITE: / 'Sales dcoument: ', l_vbeln.
  LOOP AT li_return INTO l_return.
    WRITE: / l_return-type, l_return-message(50).
    IF l_return-type = 'E'.
      l_errflag = 'X'.
    ENDIF.
  ENDLOOP.
No errors - Commit
  IF l_errflag  IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
  ENDIF.</b>
Good Luck and thanks
AK

Similar Messages

  • JCo Connector  (jco.jar) version 2.1.8 certified for use against R/3 4.6c ?

    I would like to know if SAP has certified the JCo connector version 2.1.8 for connecting with R/3 4.6c systems.  The JCo connector is used by an iWay connector in an Oracle application server version 10.1.2.
    Can anyone comment on this? Thanks!

    Hello Philip,
    the offical supported release by JCo 2.1.8 are listed on the given link above:
    https://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000463654&
    ->  "Supports R/3 3.1I and higher (and other SAP Components that have BAPIs or RFMs)."
    So this is a SAP product/technology we support always the highest version number. Have a look at SAP note 549268 under the chapter "Solution Support Strategy for SAP JCo" for official support statements.
    Of course i cannot comment on the support level of the other vendors which are using this technology. If you want you can open a support call at SAP to get a more specific answer to your question.
    Hope this information is useful for you,
      Juergen

  • Problems creating JCO connector

    We are having some problems when attempting to follow the steps indicated in the Post-Installation Slide Deck of RAR version 5.3. In step 4 (Create JCO Connectors) we are not able to create a new JCO connector associated with the given models in the WebDynpro Content Administrator. The "create" button displayed next to each model is disabled and the status indicated is "Status Unknown" (gray color).
    When we test the SLD connection it is pointing to the default URL,  while a different URL was specified during installation given an SLD already existed previous to SAP GRC installation.
    Any ideas of where we need to be looking in order to fix this?

    Hi Pablo,
    This happens because your SLD bridge is not configured correctly ,
    Please follow the steps as under :
    Login to  Visual Administrator.
    Expand Navigation menu under J2EE Server Name ,
    Expand Services List
    Click On SLD Data Suppllier
    Click On http settings tab
    Enter Host name and port number , user name /password for your system connection.
    Click Save.
    Click on CIM Client Generation settings tabs
    Enter host name port , user account details you entered in http settings tab .
    Click Save.
    Click Supplier ( data transfer)icon on top of pane to transfer data information you have entered in sld supplier.
    A pop up window appears  " trigger SLD data transfer" )
    Click = yes.
    A pop-up with appear indicating transfer successful.
    If this window does not appear , then SLD needs to be configured properly,
    launch http://<hostname>:<portnumber>/sld
    Click on Administration > Initial setup
    Fill in values for :
    Object server name :Name of computer <SPACE> 1
    E.g AG500900A 1
    Gate way host : Name of computer as above.
    gateway port : portnumber as used in URL .
    Import software catalog check box = OK
    Import SLD objects
    (close to 95791 objects need to get imported , wait for sometime till they are imported )
    After importing is done , refresh once.
    This should resolve, however if you still face it then setup technical system at
    http://<hostname>:<portnumber>/sld
    HOME > Techinical systems .
    Click new technical system
    Select webas ABAP
    the details need to be fetched from SAP R/3 system for which JCO is to be created.
    thnks

  • Reg JCO Connector download and advice

    HI friends...
    using  service user name i can downlaod the JCO connector ?
    my doubt is shall i use the same JCO connector in some other server (Other customer) for installation purpose ?
    and also JCO connector downlaod in market place is free of cost for customer or chargable ?
    regards
    deva

    You Can download From service.sap.com/connectors
    For more details Pls chk the HELPhttp://help.sap.com/saphelp_nw04/Helpdata/EN/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
    Kanagaraja L

  • MII 12.1: SSO with JCO Connector

    Ok so I'm trying to setup MII 12.1.5 Build 87 to pass SSO ticket through JCO connector onto the respective SAP System.
    MII is getting the ticket because it logs in automatically. So that's covered.
    The checkbox for use of "SSO" in System Connection Editor is checked
    The checkbox for AutoBind in the XacuteConnector is checked
    Transaction property of "MYSAPSSO2" has been created and mapped to SAPSSO2Ticket property of JCO action
    Now is all this supposed to override the system and user alias in the configuration of the JCO block?
    What am i missing here that it's not working?
    One thing I haven't tried yet is to export the MII TicketKeystore - SAPLogonTicketKeypair - cert , certificate and import it into the respective R/3 system....will try now since it just came to mind.
    Anyone have any thoughts because i'm hitting a dead end here...

    Alin here is the solution...
    You are right to have these steps...
    The checkbox for use of "SSO" in System Connection Editor is checked
    The checkbox for AutoBind in the XacuteConnector is checked
    Transaction property of "MYSAPSSO2" has been created and mapped to SAPSSO2Ticket property of JCO action
    But you also need...
    Create a transaction property called MYSAPSSO2 and assign a value of SAPSSO2Ticket
    Open your existing JCO Action block --> Configure Links --> Incoming --> <JCO Action Name> -->
    Assign SAPUserName a value of "$MYSAPSSO2$"
    and
    Assign SAPSSO2Ticket a value of Transaction.MYSAPSSO2
    Start and Stop SAPMMC and test the SSO
    Also, there were some talks of SAP and MII servers having the same timezone, but I tested it with the same and without the same timezone and it appears to work either way.

  • CC 5.2 JCo connectors not visible in CC

    We have installed Compliance Calibrator 5.2 on our NW04S system, which already had Access Enforcer 5.2 installed. We have created and successfuly tested our JCo connectors in NW. Our SLD connector is tested successfully.
    When we try to create a connector from within CC, we get nothing in the drop-down for JCO Destination. If we try to search for a connector name in AE, we get nothing.
    We have verified that our CC user account is OK in SAP, and has the CC Administrator role in SAP.
    We have verified that the SLD account is not expired or locked.
    Any help will be appreciated.
    Thanks!

    Jennifer,
    I would suggest you try this also.,
    VIRSAR3_01_MODEL
    VIRSAR3_01_METADATA
    And I believe you have defined your SLD data supplier in the SLD.
    Thanks.
    Regards,
    Muthu Kumaran KG

  • RTA, JCo & Connectors

    Hello All,
    What is the difference between a JCO, RTA and a connector (in RAR config TAB). Please do let me know the same with relevance to the following scenario:
    I have two SAP Development systems, whom I need to connect to one GRC DEV system (with RAR and CUP). In this case, what will be the RTAs, JCOs and connector (in RAR config TAB).
    I am facing a lot of issues understanding this is I am a non-basis person but usually encounter these terms while doing the SAP GRC implementation as a security consultant. Kindly help me knowing these a bit better.
    Tx.
    Amitra

    Hello Sunny,
    Thanks for answering. It clears a lot now. Can you please confirm based on the reply you just sent, if my assumptions to the scenario as under are are correct:
    *Scenario:* i have 2 SAP systems, say DE1 and DE2, which are development systems, with no HR installed on either.
    *ASSUMPTIONS:*
    Now, if I need to connect both of them to my GRC server, I would:
    1. Install VirsaNH on both DE1 & DE2, which are the backend systems.
    2. Create 2 JCO connections - one each for DE1 & DE2. These JCOs will be created from RAR tool. These two JCOs are in itself, a type of connectors.
    Are the assumptions based on point 1 & 2 mentioned above correct?
    Tx.
    Amitra.
    Edited by: ApnaMitra on Apr 14, 2011 3:35 PM

  • Error when connect to SAP with JCo Connector on linux

    Dear all,
    Please, i need help. i was tray to connect to SAP with SAP JCo on linux ubuntu, but i have an error.
    this is the error :
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  GWHOST=myhost, GWSERV=sapgw00, ASHOST=myhost, SYSNR=00
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       hostname 'avatar-bumi' unknown
    TIME        Thu Feb 14 15:25:48 2008
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -2
    MODULE      niuxi_mt.c
    LINE        388
    DETAIL      NiPGetHostByName2: hostname 'avatar-bumi' not found
    SYSTEM CALL gethostbyname_r
    ERRNO       110
    ERRNO TEXT  Connection timed out
    COUNT
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
            at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
            at sapjco.Main.main(Main.java:34)
    Exception in thread "main" com.sap.mw.jco.JCO$Exception: (121) JCO_ERROR_NULL_HANDLE: Invalid rfc_handle = NULL encountered
            at com.sap.mw.jco.rfc.MiddlewareRFC.nativeGetAttributes(Native Method)
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.getAttributes(MiddlewareRFC.java:1233)
            at com.sap.mw.jco.JCO$Client.getAttributesInternal(JCO.java:2940)
            at com.sap.mw.jco.JCO$Client.getAttributes(JCO.java:2994)
            at sapjco.Main.main(Main.java:38)
    How to resolve this error....
    Regards,
    Lisa
    Edited by: Lisa Yanti on Feb 14, 2008 9:35 AM

    I was resolve this error by my self.
    We can handle this error with registering our current IP and host name on /etc/hosts.
    example:
    content of /etc/hosts:
    127.0.0.1 localhost
    127.0.1.1 myhost.workgroup
    The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    added the ip and host name to be like this configuration
    127.0.0.1 localhost
    127.0.1.1 myhost.workgroup
    172.20.17.74 myhost
    The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

  • JCO Connector Value Converstion.

    Hi,
    We have developed a Function Module by using BAPI . And the Java People are calling that function Module and Sending the Data for MIGO Transaction. When they are sending Quantity field has been declared as String in JAVA . In SAP when are Collecting from JAVA we declared our field as data type ERFMG means QUANTITY with 3 Decimal Places . But It is giving the error like Maintan Serial Numbers for total quantity.
    How can we resolve this problem .. ?
    How can we convert that string data to Quantity in the SAP ?
    Bye,
    Satya.

    Hi,
    We have developed a Function Module by using BAPI . And the Java People are calling that function Module and Sending the Data for MIGO Transaction. When they are sending Quantity field has been declared as String in JAVA . In SAP when are Collecting from JAVA we declared our field as data type ERFMG means QUANTITY with 3 Decimal Places . But It is giving the error like Maintan Serial Numbers for total quantity.
    How can we resolve this problem .. ?
    How can we convert that string data to Quantity in the SAP ?
    Bye,
    Satya.

  • Problem in Connectors in GRC AC 5.3

    Hello all,
    While we are creating the connector in RAR the JCo destinations are not visible. In the drop down list of JCo destinations we are able to see the Value as <Host Name>_<null>_<Client Number>   For Eg: GRRDEV_NULL_200 i am not able to see the JCo destinations which we activated in Java content administration
    We have installed the latest patch SP18 and using the HR Module also.
    What could be the cause?
    Activated: JCo Destinations
    VIRSAHR_MODEL & VIRSAHR_METADATA
    VIRSAHR_01_MODEL & VIRSAHR_01_METADATA
    *VIRSAHR_02_MODEL & VIRSAHR_02_METADATA *
    Thanks in Advance.
    Regards,
    Kumar Rayudu

    Hello Kumar,
    Yes, you can use "VIRSAXSR3_01_METADATA" and "VIRSAXSR3_01_MODEL JCo destinations for HR backend. As mentioned by our friends in this thread it doesn't matter what kind of backend you use. You can still use these JC0 destinations.
    With these JCo(Adaptive RFC connection) destinations, maximum number of system one can connect are 15. If you have more than 15 systems it is recomended to use SAP JCO connector type for RAR.
    SAP JCo connector doesn't have any limitation like JCo(Adaptive RFC).
    Hope this answers your question.
    Best Regards,
    Sirish Gullapalli.
    Edited by: Sirish Gullapalli on Jul 28, 2009 12:03 AM

  • JCO - Connection reset by peer - after 5 minute timeout

    Hello
    We're using SUP with the JCO Connector. This has been working flawlessly since project inception. Now, after switching to a new data center (Windows Server 2008 Server Enterprise Edition, SP2 on VMWare) we're observing a mysterious behavior with timeouts of idle connections. I hope someone in this forum knows what this might be.
    JCO connections originate from SUP servers. When such connections are idle for more than 5 minutes they get disconnected from SAP -- this is in agreement with SAP timeout parameter of 300 seconds.
    On our new systems we noticed that requests sent 5min+ (after timeout) show following error:
    Thread-8 [22:08:55:343]: [JNI-LAYER] RFC.nativeExecute() before RfcCallReceive(2,"Z_U_ONEMOBILE_SWO_SEARCH",0000000010CDC850,0000000000000000,0000000010C81530,000000000C79CA88)
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeExecute() after  RfcCallReceive(2,"Z_U_ONEMOBILE_SWO_SEARCH",0000000010CDC850,0000000000000000,0000000010C81530,000000000C79CA88) = RFC_SYS_EXCEPTION
    Thread-8 [22:08:55:344]: [JAV-LAYER] JCO.Client.execute (Z_U_ONEMOBILE_SWO_SEARCH) threw a NON-ABAP exception: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: CPIC-CALL: 'CMRCV : rc=20
    ERROR       connection to partner '---removed!---:3299'
                broken
    TIME        Fri Feb 11 18:08:55 201
    RELEASE     710
    COMPONENT   NI (network interface)
    VERSION     39
    RC          -6
    MODULE      nixxi.cpp
    LINE        4448
    DETAIL      NiIWrite: P=161.88.23.170:3299; L=0.0.0.0:49730
    SYSTEM CALL WSASend
    ERRNO       10054
    ERRNO TEXT  WSAECONNRESET: Connection reset by peer
    COUNTER     3
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect()                                       enter, [SUCCESS]
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() before RfcClose(2)
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() after  RfcClose(2)
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect()                   with rc = RFC_OK   leave, [SUCCESS]
    Our suspicion is that the JCO client doesn't notice the fact that it gets disconnected. We used Network Monitor 3.4 to look at network traffic. Indeed, after 5 minutes the client gets a single frame (with reset flag) and no acknowledgement goes back.
    What could this be?
    We use
    JCO 2.1.8 AMD 64-bit (contains librfc 6.40) and
    JCO 2.1.9 AMD 64-bit (contains librfc 6.40) but replaced this with librfc 7.10 (after seeing Note 825494). Behavior was exactly the same. We did confirm in jco/rfc trace that those versions were actually used.
    Any ideas?
    Thanks and regards
    Edited by: B. Gottipati on Feb 14, 2011 9:17 PM

    Hello
    We're using SUP with the JCO Connector. This has been working flawlessly since project inception. Now, after switching to a new data center (Windows Server 2008 Server Enterprise Edition, SP2 on VMWare) we're observing a mysterious behavior with timeouts of idle connections. I hope someone in this forum knows what this might be.
    JCO connections originate from SUP servers. When such connections are idle for more than 5 minutes they get disconnected from SAP -- this is in agreement with SAP timeout parameter of 300 seconds.
    On our new systems we noticed that requests sent 5min+ (after timeout) show following error:
    Thread-8 [22:08:55:343]: [JNI-LAYER] RFC.nativeExecute() before RfcCallReceive(2,"Z_U_ONEMOBILE_SWO_SEARCH",0000000010CDC850,0000000000000000,0000000010C81530,000000000C79CA88)
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeExecute() after  RfcCallReceive(2,"Z_U_ONEMOBILE_SWO_SEARCH",0000000010CDC850,0000000000000000,0000000010C81530,000000000C79CA88) = RFC_SYS_EXCEPTION
    Thread-8 [22:08:55:344]: [JAV-LAYER] JCO.Client.execute (Z_U_ONEMOBILE_SWO_SEARCH) threw a NON-ABAP exception: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: CPIC-CALL: 'CMRCV : rc=20
    ERROR       connection to partner '---removed!---:3299'
                broken
    TIME        Fri Feb 11 18:08:55 201
    RELEASE     710
    COMPONENT   NI (network interface)
    VERSION     39
    RC          -6
    MODULE      nixxi.cpp
    LINE        4448
    DETAIL      NiIWrite: P=161.88.23.170:3299; L=0.0.0.0:49730
    SYSTEM CALL WSASend
    ERRNO       10054
    ERRNO TEXT  WSAECONNRESET: Connection reset by peer
    COUNTER     3
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect()                                       enter, [SUCCESS]
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() before RfcClose(2)
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() after  RfcClose(2)
    Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect()                   with rc = RFC_OK   leave, [SUCCESS]
    Our suspicion is that the JCO client doesn't notice the fact that it gets disconnected. We used Network Monitor 3.4 to look at network traffic. Indeed, after 5 minutes the client gets a single frame (with reset flag) and no acknowledgement goes back.
    What could this be?
    We use
    JCO 2.1.8 AMD 64-bit (contains librfc 6.40) and
    JCO 2.1.9 AMD 64-bit (contains librfc 6.40) but replaced this with librfc 7.10 (after seeing Note 825494). Behavior was exactly the same. We did confirm in jco/rfc trace that those versions were actually used.
    Any ideas?
    Thanks and regards
    Edited by: B. Gottipati on Feb 14, 2011 9:17 PM

  • Web services on SAP and JCo

    Hi I have two questions:
    1) I'm using a third party connector (JCo based) which is able to expose RFC/BAPIs into Web Services.  (I know I could do this with SAP directly as well on ECC 5.0 and up, but for now let's say I have to use the JCo connector).    If I write a custom RFC and want it to be called through that JCo connector, what are the steps that I need to go through to properly configure the custom RFC?  Is there any documentation written for that?
    2) In some other scenarios I need to call standard SAP web services.  Some web services are transactional and commit/rollback needs to be called explicitly.   What is the best practice for that?  Do I need to make a custom RFC from the standard one, and add commit into it, and then expose it as a web service?   Anyway for me to call that web service and commit in one connection?  
    Thanks much in advance,
    Ye

    Hi  Ye
    just have a look on these links may be useful ...
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8798be90-0201-0010-d093-85f728778d37
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c63bca90-0201-0010-59ae-e0db32750209
    Properties for an AS ABAP Data Source... user must have authorizations to use RFC, and to create, Refer to the SAP Java connector documentation for details
    http://help.sap.com/saphelp_nw04s/helpdata/en/84/10594aecd3e1408845e66c432b955e/frameset.htm
    Regards
    Abhishek

  • GRC AC Connectors

    Hello Experts,
    Is the following process correct for creating connectors for GRC AC 5.3:
    1. JCO connector (Meta & Model) is created for a system say P6E and client 100
    2. Using this, a system connector P6E100 is created in RAR
    3. A JCO destination is created with this name i.e., P6E100
    4. Now the system connectors are created for all other three components CUP, SPM, ERM with same JCO destination.i.e., P6E100.
    Is this process correct?
    Thanks
    Ram

    Hi Ram,
    Yeah this is exactly what we've done and it works.
    Best regards.

  • JCO error partner no reached

    Hello experts,
    I want to connect external java applications with my ERP 6.0 (ABAP stack).
    The JCO connector soft is installed in a separate server from SAP application server.
    When i try to establish the connection the result is:
    [10 jul 2008 10:41:42,016 INFO] - SAPConnectionManager connectSAP: Inicio
    [10 jul 2008 10:41:42,016 INFO] - SAPConnectionManager connectSAP: mshost:10.1.8.77
    [10 jul 2008 10:41:42,016 INFO] - SAPConnectionManager connectSAP: r3name:T01
    [10 jul 2008 10:41:42,016 INFO] - SAPConnectionManager connectSAP: group:BILBIDE
    [10 jul 2008 10:41:42,018 ERROR] - SAPConnectionManager connectSAP: ERROR Connecting to SAP [Connect to SAP gateway failed
    Connect_PM  GWHOST=127.0.0.1, GWSERV=3300, ASHOST=127.0.0.1, SYSNR=00
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       partner not reached (host 127.0.0.1, service 3300)
    TIME        Thu Jul 10 10:41:42 2008
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -10
    MODULE      nixxi_r_mt.cpp
    LINE        8588
    DETAIL      NiPConnect2
    SYSTEM CALL SiPeekPendConn
    ERRNO       111
    ERRNO TEXT  Connection refused
    COUNTER     11
    Anyone knows how can be the problem?
    Thank in advance, i will give a lot of points!!
    Regards
    Carlos

    Hi,
    This is related to your connectivity. Please check it your connection status or getway setting.
    Regards,
    Anil

  • Maintaining JCO destinations

    HI experts,
                     We are using a standard sdn example for flight booking . We have downloaded zip file from sdn. We did all the steps to build the project in the netweaver studio help. After deployment we are not able to maintain JCO destinations. The error is " Unable to obtain JCO destinations and it a system landscape exception". We tried to create our own JCO destinations but the same.

    Hi,
        Login to http://host:port/index.html
    Go to Webdynpro -> Content Administrator. Click on 'Maintain JCo Destinations'.
    The JCo connections you have created should be in green colour. If so, try to test the two connections (meta and model data) first. If both are successful, then ping them and check. If it works, then check from the project if you are using the right JCo connectors. If everything is fine, then it should work.
    Regards,
    Harini S

Maybe you are looking for

  • Curve 8900 Text Problem

    It says that i have 2 text msgs that are unread on the home screen but i don't have any texts waiting..what can i do to get rid of that ?..i dont know why it shows up..i wanna know when i get new ones but wanna get rid of that 2 new msgs when i dont

  • IMac shuts down while updating at startup.

    And it won't go past the start up screen now. The apple logo is displayed, and there is a loading bar underneath. It gets about 1/4 of the way completed, and then shuts down completely. I have a lot of work I need to finish, so any help would be grea

  • Ipod broken. how do i use warrenty?

    my ipod doesnt work anymore. but i can n e thin on the site that says how i can activate my warranty and send it in to get a replacement. can someone help me with this? and then another quick question. i bought my ipod nano 4gb when it was $250. if i

  • IOS button press causes "unrecognized selector sent to instance"

    Newbie Obj-C / iOS programmer here.  I'm sure this is a common and simple newbie problem; nothing complicated here. I created a view-based application with the following files: MainWindow.xib PushbuttonAppDelegate.h & m PushbuttonViewController.h & m

  • Anyone with a clear workflow of what to do with projects after burned DVD

    I am in dire need of help. I've completed a project using FCE-export to iMovie-shared over to iDVD-and burned on a DVD I want to keep the project in case the client wants another copy, or even to make changes. I tried to start another project, but it