JCO Server and SAP trfc queue

Hi,
we are sending IDocs from our sap system to a JCO server. Let's assume  we are sending 1000 IDocs to it. After sending there are no IDocs in the trfc-queue and the status of all IDocs is "green". Can we assume the JCO server received all 1000 IDocs? Is an  empty trfc-queue always an indicator for a successfull sending process even there are some problems with a weak network(network interruptions). I know IDocs are tansaction based. For my understanding a transaction is okay or not. So an empty trfc queue should indicate everything went fine and all IDocs were received?
I appreciate any comments on that issue ...
-Steffen

If the status of all idocs is green which indicates the communication layer is ok. As you said, the idocs are transaction based. You need to make use of transaction id to confirm everything is fine from the viewpoint of your business logic.
Dennis

Similar Messages

  • Communication problem between external web server and SAP WebAS

    Hello Experts,
    We are having a serious problem over here where we had one external server is pushing XML string using a HTTP-POST request to our SAP WebAS server (a BSP application is handling this request). We are not able to see the request coming to SAP i.e. SAP-BSP is not receiving XML.
    Also we found that, if request is routed through another proxy server (apache tomcat server redireting the request) connected through VPN to our network, it works but if the the same server is inside our network it doesn't. Rather in that case it never hits the Apache-Tomcat server itself.
    We tried to identify the network issue but it seems it is not the network or any firewall issue. When we had a small Echo server (itu2019s a small Java server) running on our SAP machine, we could see the request coming in. So it is definitely reaching the SAP server but the SAP Web AS is not picking up. Rather what we found that if the URL is simple e.g. http://<hostname>:<port> it works but if the URL is complex like something generated by SAP incase of BSP application it doesn't.
    Any idea what is causing this issue?
    I tried to look at SMICM trace files but got nothing. Any idea where would find the trace of incoming HTTP requests to SAP WebAS?
    Thanks in advance.
    regards
    rajeev

    Hi Rajeev,
    Pelase find the below link. i am not sure this is the exactly one for you. But i hope it'll help you.
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0350917650DB11174011760851503410End?blog=/pub/wlg/10285
    http://www.sap-img.com/basis/basis-faq.htm
    Regards,
    CSK.

  • URGENT : MS SQL Server and SAP BW 3.5 Connection problem....

    Hello All,
    How ya all doin ?
    I got job as a fresher, and now we are facing some problem here with
    the datasource creation / generation. We have already generated views
    & DSs for some tables, for some views we can see the data in the
    datasource in the BW datasources but for some views it is giving
    information NO DATA IN THE TABLE for that we can see the data in the
    DB Table in MS SQL Server using select ......
    Kindly help with this issue as soon as possible.
    Thanks in advance....
    Best Regards....
    Sankar Kumar

    Hello Sankar,
    Thanks...
    For Varchar(500) you can try this way.
    When you are getting data from DBConnect, include that VARCHAR(500) field in view (so this includes this field to be in transfer structure). But don't map any transfer rules for this field (This avoids the problems to be raised by DB Connect).
    Create a Start Routine in the Transfer Rules. In this routine, you can access your VARCHAR(500) field. (I don't know what is your requirement for VARCHAR(500) field with respect to reporting perspective.)
    One way is create 9 InfoObjects with char(60). Then parse the varchar(500) field and assign to InfoObject1, InfoObject2 so on....
    Another way is, create a table using se11. With key fields to identify individual comments, comment Line number and actual comment. Parse varchar field and insert into this table. Based on your requirement either create a generic extractor using this table and load the data into ODS. Then you can join this ODS and rest of the data ODS and display. or write an ABAP program to show as report using this table...
    Hope this helps,
    GSM.

  • Read binary file (DOC, PDF, TIF,...) into SAP with JCO-Server

    Hallo,
    I want to read a binary file (DOC, PRD, TIF,...) within a JCO-Server and transfer this file to SAP.
    In SAP we want to store the file in DMS.
    Next step is to read a file from DMS and store the file external using the JCO-Server.
    My questions are:
    1. How can I upload/download any binary in JAVA
    2. How have I to define the communication tabel between SAP and JCO to transfer the data (string,char, raw) and how long must be a row.
    Maybe any code exsamples ?
    Thanks

    We found the way how to define the tables so we can transfer the data between SAP an Java.

  • JCo Server Load Balancing

    We have created a JCo Server interface using RFC modules in SAP to communicate with an external web based system.  The SAP system calls the external application via tRFC and qRFC as needed from the business transaction.  We have achieved high throughput by clustering our external web application server, putting a load balancer in front of that web application, and finally creating multiple JCo Server instances within own JVMs (currently 6 instances with 5 servers each).  The JCo Server is registered to the central gateway of the SAP system using gwhost, gwserv, and progid.  With this setup we have successfully performed up to 50,000 transactions an hour.
    My understanding is that the SAP gateway will act as a load balancer on the SAP side.  Is this right or should we consider to install a hardware load balancer "in front" of the SAP gateway and try to map this to the message server instead?  Or concern is that our JCo Server process will "flood" the central gateway and take all resources away form the SAP system.  Unfortunately the JCo Server class doesn't allow to connect to any other resource on the SAP system then the central gateway.
    Any suggestions or real live examples are appreciated.
    Stefan

    Hi Stefan
    We are doing a similar project wherein we are calling a middleware server based on the JCO.Server from SAP.
    You did say that you have achieved a throughput of 50000 transactions and we are interested in knowing how ?.
    Could you briefly tell use how you achieved it. In our case we have one instance of the JCO.Server working on the JVM.
    Here is what we did .
    We tried to start two instances of the middle ware server on the same JVM on the same BOX and register it with the gateway . This dint work .
    We were successfull in starting two instances of the middleware server from two different JVM on two different boxes and registering it at the gateway under the same id.
    This we know will work as the gateway will use its load balancing to distribute load between the two instances.
    But we are interested in knowing how we can start more then one server instance on a given JVM.
    Our questions are
    It we have threading in our middleware server, we believe it will not help as if the SAP gateway server has opened an connection with one instance of the middleware server. It is not possible for it to open another one...till the first one is complete. Hence threading within the middleware server is redundant.
    Your thoughts and comments are appreciated.

  • JCo Server Shutdown

    I have implemented a JCo Server using Example 5 in Jco Documentation.
    The Server shuts down automatically every other day with no dumps leading no trails on how to debug.when we restart, it runs just fine.
    my hunch is that the threads are not properly handled or not releasing the memory, i m not sure.
    Does any one had similar problem or any clues ?
    Thanks,
    Sujatha

    hi:
    I also encountered  a  JCO Server problem which likes your problem above when SAP R/3 call java function.
    The SAP R/3 is 4.6c, the JCo package version is 2.0.7.
    In my java program, I start a Jco server and register that Jco server in R/3 sm59. In sm59 I register that connection as a TCP/IP connection.
    In the RZ11, I get the gateway information. 
    My java program is a servlet program, which is running on the WAS640. The program is referred to JCO example 5. I attach the original code in the attachment.
    When I start the Jco server, I get successful connection information in sm59. At that time, the ABAP program can call java program successfully.
    But unluckily I find that link is not stable. Maybe after an hour or several hours, when I run the ABAP program again, RFC error message will popup. At that time I test the connection in sm59, an error message will show “the connection is not registered”. Also in SMGW I can’t find the java rfc connection. Then, I have to restart the jco server, establish a new rfc connection.
    I don’t know what happen. I think maybe it is my program problem(I search the JCO help and try to find a function setting the timeout. But I don’t find any). Maybe there is something to do with basis (I don’t know whether there is a timeout configuration in r/3 or there is a background job will clean up the java connection).
    Would you please give me some advices. I really don’t know how to fix that problem. Thank you for your help.

  • How to deploy a JCO Server????

    Hello Experts!
    I have written a JCO Server by using the Netweaver Developer Studio. Now I want to deploy this JCO Server on our SAP XI Server. The aim of this should be to create a connection between ABAP and JAVA to send data from JAVA to ABAP.
    The RFC connection already exists and is working. What I don't know is how to deploy my JCO Server and how to start this JCO Server from our XI Server. I hope anybody could help me.
    Thanks in advance!!!
    Greetings Alexander
    Here is the source code of my JCO Server:
    public class JCOServer implements JCO.ServerExceptionListener, JCO.ServerStateChangedListener {
      static public class Repository extends JCO.BasicRepository implements IRepository {
        public Repository(String name)
          super(name);
      protected static IRepository repository;
      static {
        repository = new Repository("TestRepository");
        JCO.MetaData fmeta = new JCO.MetaData("ZEJB_TEST_ZUGRIFF");
        fmeta.addInfo("REQUTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.IMPORT_PARAMETER, null);
        fmeta.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.EXPORT_PARAMETER, null);
        fmeta.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.EXPORT_PARAMETER, null);
        repository.addFunctionInterfaceToCache(fmeta);
      static public class Server extends JCO.Server {
        public Server(String gwhost, String gwserv, String progid, boolean isUnicode, IRepository repository)
          super(gwhost,gwserv,progid,repository);
           this.setProperty("jco.server.unicode", isUnicode?"1":"0");
        protected void handleRequest(JCO.Function function)
          JCO.ParameterList input  = function.getImportParameterList();
          JCO.ParameterList output = function.getExportParameterList();
          JCO.ParameterList tables = function.getTableParameterList();
          System.out.println("handleRequest(" + function.getName() + ")");
          System.out.println("Anfrage vom SAP-Server: " + input.getString("REQUTEXT"));
          if (function.getName().equals("ZEJB_TEST_ZUGRIFF")) {
            output.setValue(input.getString("REQUTEXT"),"ECHOTEXT");
            output.setValue("Das ist eine Antwort von JCOServer","RESPTEXT");
       JCO.Server srv[] = new JCO.Server[1];
      public JCOServer()
         JCO.addServerExceptionListener(this);
         JCO.addServerStateChangedListener(this);
      public void startServers()
        srv[0] = new Server("vxi1","sapgw00","BEAN",true,repository);
        for (int i = 0; i < srv.length; i++) {
    try {
    srv.setTrace(true);
    srv.start();
    catch (Exception ex) {
    System.out.println("Konnte Server nicht starten: " + srv.getProgID() + ":
    " + ex);
          }//try
        }//for
      public void serverExceptionOccurred(JCO.Server server, Exception ex)
        System.out.println("Ausnahme in Server " + server.getProgID() + ":
    " + ex);
        ex.printStackTrace();
      public void serverStateChangeOccurred(JCO.Server server, int old_state, int new_state)
        System.out.print("Server " + server.getProgID() + " hat den Status geändert von [");
        if ((old_state & JCO.STATE_STOPPED    ) != 0) System.out.print(" GESTOPPT ");
        if ((old_state & JCO.STATE_STARTED    ) != 0) System.out.print(" GESTARTED ");
        if ((old_state & JCO.STATE_LISTENING  ) != 0) System.out.print(" HORCHEN ");
        if ((old_state & JCO.STATE_TRANSACTION) != 0) System.out.print(" TRANSAKTION ");
        if ((old_state & JCO.STATE_BUSY       ) != 0) System.out.print(" BESCHÄFTIGT ");
        System.out.print("] nach [");
        if ((new_state & JCO.STATE_STOPPED    ) != 0) System.out.print(" GESTOPPT ");
        if ((new_state & JCO.STATE_STARTED    ) != 0) System.out.print(" GESTARTED ");
        if ((new_state & JCO.STATE_LISTENING  ) != 0) System.out.print(" HORCHEN ");
        if ((new_state & JCO.STATE_TRANSACTION) != 0) System.out.print(" TRANSAKTION ");
        if ((new_state & JCO.STATE_BUSY       ) != 0) System.out.print(" BESCHÄFTIGT ");
        System.out.println("]");
      public static void main(String[] argv)
        JCOServer obj = new JCOServer();
        obj.startServers();

    Hello Alexander,
    congratulations to the invention of the wheel....
    Now, what do you think is the function of the application server itself? what you do here is to put a shell around JCO and then try to run it from another shell. Why not just use it from your program?
    I recommend to do some of the examples with JCO and then see what  the difference on this is.
    Regards,
    Benny

  • Error in TRFC queue

    Hi all,
    A job was loading and in TRFC queue i get an error 'Time Limit Exceeded' and when  i try to execute this queue i get the message that "Request REQU_1N6KJEJGQ3PKKISMS0620YYU4 properly ended; no further processing allowed " and the queue is in error status.
    When i check the data target all records have been arrived and the Request is in green status. But in the Total and Technical parameters of the 'Details' tab the status is showing red.
    Kindly suggest me possible solutions.
    Regards,
    Dinesh

    Hi
    Due to the many processes hitting the same time to the TRFC will get stuck or its processing time exceeds, hence you got the error.
    Go to SM58-- Delete Entry -- Run the Load Again.
    Hope it helps

  • Crystal Reports and SAP Integration Issue

    Gurus,
    I am in the process of reinstalling my SAP B-One(2007 A) Server, after SQL Server and SAP Server and Client installtions and its related patch PL10. My machine is fully loaded and to go, but I am stuck with Crystal Reports Basic 2008 installtion.
    After installting the below for Crystal Reports:
    1) .NetPlatform SP1 setup (dotnetfx35sp1)
    3) Crytatl Runtime
    4) Crystal Setup
    5) Crystal SAP Viewer
    6) CR2008_SP3
    My integration between SAP and CR are fine but after first log off and log on of SAP B-One.
    Shows the below messages:
    - "The new version of Add-on Crystal Reports for SAP Business One is
    installed. Upgrade the Add-on in the current Common DB."
    followed by the below one.
    "Wrong Executable digital signature for Add-On".
    Any advices on how can I upgrade the Common DB.
    Faisal

    Hi  Faisal,
    Is this issue realted to the previous thread you have posted. It looks similiar.
    Re-installation meaning that you had installed aprevious version and now upgrading or is it a full installation.
    Regards,
    Rakesh N

  • Load table structure definition from Sql server and mirroring

    Hi, we have to replicate some tables from sql server
    into SAP dictionary.
    Is there a tool/transaction for import the table structure
    from a DBRMS like sql/oracle ?
    Adn is there some third part solution for replicate data
    from/to sql server and Sap ?
    Thanks in advance.
    Riccardo Galli.

    Hi,
    Dont know if there are any tools for this but onething is sure you will need to create the table thru SE11.
    I had done something similar, created a BDC to create table and it works.
    Provide the BDC with list of fields, datatype, len, key fields and the BDC will create the table.
    You will need to activate the table once its created, for some reason sap put the table in "partial active" status after creation .
    Good luck.
    Ravi

  • WebSAPConsole , telnet serever ,RF terminal and SAP logon screen

    What would be the easiest way to connect RF terminal(character based) to an SAP system.
    Of course it is via WebSAPconsole. As far as I red WebSAPconsole guide if I want to use it to connect character based RF terminal is the same as preaviously SAPconsole(under e.g.SAP enterprise 4.7 ext2.)
    1.st install telnet server (best SLnet 2.6RF from Seattle LABS) and then configure In SAP console administrator in Control panel entered corresponding system ip,sysnr and transaction code(from saplogon)
    However on RF terminal SAP logon screen does not appear. But only telnet prompt.
    What to do? Should the  telnet server and SAP console be on an other machine than SAP server(ECC6)?

    Hi Thomas Kremer,
    Can you help me to solve this issue!?
    I´m facing with same error then you. I did a homogenous  system copy and after I finish this SAPINST I install the saplogon and of course I try to accede to SAP system and the first thing that display in system is that short dump -->  dynpro_itab_error
    What´s this?! How you solve this issue... can you remmember? (I know that already was a two years ago but even so if you remember this can you share with me!?).
    Best regards,
    João Dimas - Portugal

  • JCo 3.0 Server and Stateless Session Bean

    Hello,
    I use JCO (3.0) and I need to integrate SAP with JBoss.
    The SAP Module is calling EJB-Services over JCo.
    How would the architectur looks like?
    I start with using an MBean to start and stob the native JCO-Server over JMX.
    This still works.
    But it doesn't work:
    The Client(SAP) calls the JCoServer (works fine).
    But the call off the EJB failed.
    What solutions do you have to share?
    Do you use a stateless session bean?
    Best regards
    Peter

    The program ID should be with length 8 max

  • JCO.Server Error while trying to execute a RFC program from SAP

    Hi,
    We are connecting to an external registered server program from SAP via Web Methods.
    The external server program is registered with the SAP Gateway. We have created a TCP/IP RFC destination and are able to connect to the destination successfully via SM59.
    An RFC function is created in SAP and is called using the syntax CALL FUNCTION "/NGN/BAPI_STRE_SEARCH_PROCESS" DESTINATION 'PRDB2B'. We have also handled the COMM_FALIURE and SYSTEM_FALIURE exceptions in the function call.
    We are monitoring the gateway via SMGW and see a connection log to the RFC destination as below
    Number - 10
    LUname - dev01
    TPName - sapgw00
    User - KRAORANE
    Status - CONNECTED
    Symbolic - PRDB2B
    Conversation - 86520353
    Prot - REG
    SAP return code - 0
    CPIC rtn code - 0
    The external program returns results as expected.
    However sometimes the RFC fails and returns the message “JCO.Server could not create server function /NGN/BAPI_STRE_SEARCH_PROCESS”.
    We are not able to figure what exactly is causing this error. Any help will be highly appreciated.
    -Kiran

    Hi,
    Please see the below links..
    JCO.Server Error while trying to execute a RFC program from SAP
    Re: JCO.Servcer could not find server function
    Re: JCO.Server could not find server function 'SET_SLD_DATA'
    /people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco
    Re: interfacing SAP with an existing java applications
    http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
    http://www.sapgenie.com/faq/jco.htm
    Regards
    Chilla..

  • Scenario SAP R/3 --(RFC)-- XI--(RFC)-- JCo.Server

    Hello,
    I am wondering if anyone can send me some feeback for such scenario. SAP R/3 version is 4.6c, SAP XI is 3.0 and JCo are 2.0.12.
    I am having some trouble which I think are link to the fact that the SAP XI is Unicode and not the JCo.Server ... However I was thinking SAP XI will adapt, since it works well for scenario SAP R/3 (RFC)> XI (RFC)> SAP R/3.
    Thanks for your feeback.

    Hi Grégory,
    I guess I faced a similar problem,  the problem was that in the receiver RFC adapter you have to specify both an RFC target system and a system to lookup the metadata.
    The target RFC system hat to have the same unicodeness of the metadata lookup system that means in your case that if jco server is non unicode also you R3 has to be non unicode otherwhise it will not (never) work, because this is a mandatory requirement of the RFC adapter.
    In my case this was not possible so I was redirecting the RFC call to the ABAP stack of XI (where I had exposed the same function module which was simply recalling the same function module to the target system) and it worked/works.
    Regards,
    Sergio

  • JCO - RFC_ERROR_SYSTEM_FAILURE: com/sap/mw/jco/JCO$Server

    Hi,
    I call from Java an ABAP RFC and this RFC in turn call back the Java stack and it fails.
    At Java side I get:
    #1#com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: com/sap/mw/jco/JCO$Server
         at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:516)
         at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1515)
         at com.sap.mw.jco.JCO$Client.execute(JCO.java:3996)
         at com.sap.mw.jco.JCO$Client.execute(JCO.java:3544)
         at com.sap.sup.admin.setup.SolManRfcAdapter.getJabapLandscape(SolManRfcAdapter.java:787)
         at com.sap.sup.admin.setup.SetupUpgrader.execute(SetupUpgrader.java:52)
    At ABAP side I get:
    Category               ABAP Programming Error
    Runtime Errors      CALL_FUNCTION_REMOTE_ERROR
    ABAP Program      CL_DIAGLS_SMSY_FACTORY========CP
    Application Component  SV-SMG-DIA
    Date and Time        21.09.2009 17:50:59
    Short text
         "com/sap/mw/jco/JCO$Server"
    Is it allowed to call JAVA -> ABAP -> JAVA from JCO point of view?
    Thanks in advance!
    Regards,
    Serge.

    Hi Serge,
    Two doubts:
    - Does your RFC work when you call it directly from the SE37 puting the same input parameters used by Java application?
    - Was the RFC changed after the coding of Java application? If so, the interface between Java and RFC must be regenerated.
    Regards,
    Rodrigo.

Maybe you are looking for

  • I was charged twice for the same order!

    I was charged twice for the same item; once for my online pre-order through BestBuy.com and again when I picked up the item at the Best Buy Store. I pre-ordered an Xbox One - Day One Edition from BestBuy.com on 09/02/2013. I scheduled to pick up the

  • Unexpected reduction in file size for photos rotated on my camera.

    Hello, This seems a bit weird and wondering if anyone has an idea on why this is happening. I take my photo on my camera and then rotate it within the camera to the proper orinetation. Import the photos into iphoto and automatically it places the ori

  • Where is the file that contains the folder view setting?

    I know this questions been asked before but I can't find it and cant remember the answer. There is directory file that holds all the file and folder setting and if a persons deletes it, essentially all the files and folder view setting revert back to

  • Strange make error when script is started in PKGBUILD

    Hi I have an extremely strange error related to make when I tried to package the -git version of Open Watcom (v2 fork) https://aur.archlinux.org/packages/open_watcom-v2-git/ When running makepkg -s, the build chokes on the following step: building ws

  • Delivery date and approval procedure

    Hello, My customer has the next problem. He generate a purchase order after approval procedure was ended. sometimes he wants to update the delivery date field in the row of the purchase order, but he can't do so because approval procedure restrict an