More complex JCO Server examples (ABAP to Java)

JCo connections:
I found a couple of good documents for connecting from Java to ABAP. Whenever it comes to the other direction (ABAP to Java), information is somehow rare.
I had a look at the examples coming with the JCo lib, however I would like to find some more complex examples. Especially the transfer of larger result sets (obtained on the Java side) is interesting.
Does anybody know something like this? I have tried Google, but somehow always the same few articles showed up.
Any hints?

You can also use the JCO RFC Provider Service of the Web Application Server for your ABAP to Java calls.
The steps involved in that are
1. Configure destination in SM59 in SAP.
2. Create RFC Destination in Visual Admin.
3. Create a stateless session bean with JNDI name as the name of calling function module in SAP.
4. Add a business method public void processFunction(JCO.Funtion fn) which is called by the JCO RFC Provider Service. The name should be 'processFunction'.
5. Set library references in application-j2ee-engine.xml to type weak for the following
    a. com.sap.mw.jco.
    b. com.sap.tc.Logging (if you are using the logging api )
Here is the sample code for the EJB biz method
Business Method.
     public void processFunction(JCO.Function function) {
          try {
               // Get the import parameters for the function module
               JCO.ParameterList importList = function.getImportParameterList();
               logger.infoT("The value sent is" +
               (String)importList.getValue("USER_NAME"));
               // Set the export parameter value for the function module
               JCO.ParameterList export = function.getExportParameterList();
               export.setValue("From EJB", "RETURN");
               function.setExportParameterList(export);
          catch (java.lang.Exception e) {
               e.printStackTrace();     

Similar Messages

  • Where to find JCo server examples under NW04

    I am using NW04 and do not know where to look for or download demos showing how to set up a JCo server program that can be called into using ABAP.  I have seen references to a JCo.zip file, but that file seems to have been pulled from the downloads.  Can someone tell me where I can download sample programs?

    Hi,
    you can download Jco (and yes, documentation and examples are included in the download package) from SAP Service Marketplace at: http://service.sap.com/connectors -> SAP Java Connector -> Tools & Services and then select the Jco version you need from the right hand side frame.

  • JCO call from ABAP to Java

    Hi to all,
    I'm trying to perform a JCO call from an abap function module to a java server program. I've built a java application that extends JCO.Server library, but I'm not able to register my Program to SAP R/3 in order to be called from the abap Function module. when I run my java application directly on XI Server, I receive this error:
    "Could not load middleware layer com.???.MiddlewareJRfc".
    Can anyone help me, please?
    Thanks!

    Hi Denis,
    Import the model In NWDS for ABAP for RFC.
    Please check here [Accessing ABAP Functions using the Adaptive RFC Model |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b18a3?quicklink=index&overridelayout=true]
    [Web Dynpro Model: Backend Access|http://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/webcontent/uuid/403e6bf5-426e-2910-b0a8-a95548724af9#section10 [original link is broken]]
    Also check here /docs/DOC-8661#section10 [original link is broken]
    Hope it helps,
    Redards,
    Arun

  • Communication between Abap and Java and Java to Abap

    HI,
    I have installed BI 7.0 and the user complaints that BEx WEB Application Designer Query results are not showing up in the WEB URL Link.
    and the BI user suggests that communication between Abap to java and Java to Abap has to be done?
    How to setup ABAP to JAVA and JAVA to ABAP communication?
    Regards,
    Magham.

    Hi,
    Jco conn from ABAP to Java
    =====================
    You can use the JCO RFC Provider Service of the Web Application Server for your ABAP to Java calls.
    The steps involved in that are
    1. Configure destination in SM59 in SAP.
    2. Create RFC Destination in Visual Admin.
    3. Create a stateless session bean with JNDI name as the name of calling function module in SAP.
    4. Add a business method public void processFunction(JCO.Funtion fn) which is called by the JCO RFC Provider Service. The name should be 'processFunction'.
    5. Set library references in application-j2ee-engine.xml to type weak for the following
    a. com.sap.mw.jco.
    b. com.sap.tc.Logging (if you are using the logging api )
    Here is the sample code for the EJB biz method
    Business Method.
    public void processFunction(JCO.Function function) {
    try {
    // Get the import parameters for the function module
    JCO.ParameterList importList = function.getImportParameterList();
    logger.infoT("The value sent is" +
    (String)importList.getValue("USER_NAME"));
    // Set the export parameter value for the function module
    JCO.ParameterList export = function.getExportParameterList();
    export.setValue("From EJB", "RETURN");
    function.setExportParameterList(export);
    catch (java.lang.Exception e) {
    e.printStackTrace();
    Jco conn from Java to others(ex:ABAP)
    =====================-==========
    • Open Visual Admin(C:\usr\sap\SID\JCxx\j2ee\admin\go.bat) and connect to server
    • Go to Destinations service
    • Open HTTP Settings Tab
    • Add/Edit destination SLD_DataSupplier and type following values
    URL – http://xyz.corp:53000
    Authentication - BASIC
    User – dynproxxx
    Password - bp52st000
    • Press save and test (if you get response code 200 everything is o.k.)
    • Add/Edit other HTTP Destination named SLD_Client with the same values as SLD_DataSupplier:
    URL – http://xyz.corp:53000
    Authentication - BASIC
    User – dynproxxx
    Password - bp52st000
    • Press save and test (if you get response code 200 everything is o.k.)
    • Go to SLD Data Supplier service.
    • Press the button named: Send the Data to SLD and confirm triggering SLD Data transfer (if you receive successful message everything is o.k.).
    ===================
    following blog might helpfull
    =======================
    /people/michal.krawczyk2/blog/2005/03/10/registering-a-new-technical-system-in-sld--abap-based
    for basic infor
    ==============
    http://help.sap.com/saphelp_nw04s/helpdata/en/21/84570b3ae14e77b3047c82218974b9/frameset.htm
    Award points if it helps

  • WebDispatcher on ABAP and JAVA on serperate Servers

    Hi all,
    i read a lot of hours trough post concerning issues about web dispatcher, but i didn't find anything that suits my problem.
    We have a MSCS-Cluster. One Node has the db which is for ABAP and JAVA (different schemas).
    Than we have an SCS for ABAP and one for JAVA.
    So the ABAP and JAVA-Instances are physically separated.
    Now we want to use a web dispatcher to pass the requests to the right destination.
    But i am not sure how to set it up. Do we need 2 dispatcher, or can one handle the requests. How does the dispatcher knows, where to redirect the requests ?
    Is that done with the parameter icm/HTTP/redirect_<xx>  ?
    in hope of any advise to this problem
    yours
    BjoernTrabes

    So, i tested around a little bit.
    i am not clear with the function of the dispatcher.
    When i bind the ABAP Dispatcher, than all requests to /sap/ are handled by the ABAP-Stack an are working, but when i browse to an Adress like /irj/portal/ the dispatcher says that the Adress is noch reachable.
    When i bind the dispatcher to the Java-Stack, than all Java-Adresses work, but the /sap/ not, which is the ABAP Stack.
    so, i don't know exactly where my fault is.
    How knows the Dispatcher, where the ABAP or JAVA-Stack is.
    On an other Machine where the java is an add-in, it works quite well, but on this server the abap and Java Servers are physically separated.
    greets
    Bjoern
    Edited by: Björn Trabes on May 18, 2009 10:59 AM

  • JCo Server - ABAP to NWJ2EE - Metadata Access

    Hi Friends,
    we are here in a project, which also deals to fetch data from an external non ABAP system. The calling system is a 4.6C. We therefore use the JCo server service (registered RFC connection), which can be called by the 4.6C system. Basicly it works, but we discovered, that currently we get a single point of failure, because we have to provide repository information (connection information) within the visual admin.
    The help page
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/b0/46e13d82fcfb34e10000000a114084/frameset.htm">SAP JCo Server Programming</a> and its examples, would lead us to provide connection properties, e.g. within the coding. Therefore, within visual admin, section "JCo RFC Provider", JNDI name, program ID and connection properties are maintained. The J2EE application therefore use those predefined entries. When starting the first request to JCo server, metadata are being read from repository, which here must be the calling system (our 4.6C system). Within the repository section, you can only provide dedicated application server login information, not e.g. a load balanced one. Thus this is for reasons of high availability, a single point of failure. An ABAP instance itself is not HA required, because you can use multiple of them. The message service itself but is HA required.
    Now after this long explanation my question:
    Are we on the right way, using e.g. visual admin to define the registered server programs, etc - or is there a more integrated, flexible integration possible?
    Perhaps, we need only the correct entry point of documentation or workshops, to direct our project developers to the right way.
    All information I found about higher integration was only for Web Dynpro - and therefore for JCo client integration. But this is not our scenario.
    thanks a lot in advance for your replies,
    reiner leibig

    You might benefit by reading the JCO pdf delivered with the jco download from sapservice.com....(free)....
    Usually it is easier to define the structure and the function interface as an SAP function even if there is no body (abap to java). This means that the JCO will read correctly all the metainformation about the function. You then call the function as an RFC specifying the host...
    Have fun...
    In your case I would read carefully the example (getting the company code info etc...)
    It shows how to manipulate the table returned by ABAP...

  • ABAP process hangs when calling a jCO Server J2EE-available RFC

    Hi there
    Here's the scenario:
    We have deployed a jCO server under the SAP WAS. This jCO server implements two functions. They are both called from ABAP process through RFC. We are using the same RFC destination for both
    First function is defined with import/export parameters and the second one only operates with a TABLE parameter.
    Incidentally, these functions are captured by the jCO server, which calls an IBM MQ server
    First function works fine. Second function hangs and there is not even a timeout so the ABAP process (run on foreground) can stay forever.
    The interesting part is that the same application works really fine when called from a Tomcat using a standalon instance of the jCO.
    Additional info:
    We have noticed that some time after the second function gets called, there are five dumps on the system (the same amount of servers we make available). These are CALL_FUNCTION_SIGNON_REJECTED.
    The fun part of the dumps is that the user making the RFC call is a different user that the one we use for the jCO connection, and the client number is '000', instead of the '728' we are using for the connection. Somehow they seem related but we do not know how yet:
    Short text
        You are not authorized to logon to the target system (error code 1).
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPMSSY1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        RFC (Remote Function Call) sent with invalid
        user ID "%_LOG01% " or client 000.
        User "ARINSO " under client 001 from system "SMD " has tried to carry out an
         RFC
        call under the user ID "%_LOG01% " and client 000 (Note: For releases < 4.0,
         the
         information on caller and caller system do not exist.).
    Call Program........."SAPLSMSY_ACTUALIZE_DATA"
    Function Module..... "SCSM_SYSTEM_LIST"
    Call Destination.... "SM_ET7CLNT000_READ"
    Source Server....... "sapwasmd_SMD_10"
    Source IP Address... "172.17.82.80"
    Termination occurred in the ABAP program "SAPMSSY1" - in
         "REMOTE_FUNCTION_CALL".
        The main program was "SAPMSSY1 ".
        In the source code you have the termination point in line 67
        of the (Include) program "SAPMSSY1".
    Any tip or suggestion on where to look at is more than welcome
    Thanks in advance,
    Miguel

    And this is the content of the defaultTrace.0.trc log from the WAS
    1.#005056AB04C500440000000200002B0000046B495CA1AF67#1243862737727#com.sap.caf.um.relgrou
    ps.imp.principals.RelGroupFactory##com.sap.caf.um.relgroups.imp.principals.RelGroupFactor
    y.RelGroupFactory()#######SAPEngine_System_Thread[impl:5]_13##0#0#Info#1#/System/Server#P
    lain###sap.com caf/um/relgroups/imp MAIN_NW701P03_C 2846629#
    #1.#005056AB04C500240000000100002B0000046B495CCDAAFB#1243862740608#com.sap.engine.library
    .monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3
    89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg
    isterNode</Kernel/System Threads Pool/WaitingTasksCount>: com.sap.engine.library.monitor.
    mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group for node'/Kerne
    l/System Threads Pool/WaitingTasksCount' (MANAGERS.SThreadPool.WaitingInRequestQueueCount
    , max. 40 characters)#
    #1.#005056AB04C500240000000200002B0000046B495CCDB4CC#1243862740612#com.sap.engine.library
    .monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3
    89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg
    isterNode</Kernel/System Threads Pool/WaitingTasksQueueOverflow>: com.sap.engine.library.
    monitor.mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group for nod
    e'/Kernel/System Threads Pool/WaitingTasksQueueOverflow' (MANAGERS.SThreadPool.Waiting4Fr
    eeReqQueueSlotCount, max. 40 characters)#
    #1.#005056AB04C500240000000300002B0000046B495CCDCDA1#1243862740618#com.sap.engine.library
    .monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3
    89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg
    isterNode</Kernel/Application Threads Pool/WaitingTasksCount>: com.sap.engine.library.mon
    itor.mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group for node'/
    Kernel/Application Threads Pool/WaitingTasksCount' (MANAGERS.AThreadPool.WaitingInRequest
    QueueCount, max. 40 characters)#
    #1.#005056AB04C500240000000400002B0000046B495CCDD69B#1243862740620#com.sap.engine.library
    .monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3
    89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg
    isterNode</Kernel/Application Threads Pool/WaitingTasksQueueOverflow>: com.sap.engine.lib
    rary.monitor.mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group fo
    r node'/Kernel/Application Threads Pool/WaitingTasksQueueOverflow' (MANAGERS.AThreadPool.
    Waiting4FreeReqQueueSlotCount, max. 40 characters)#
    #1.#005056AB04C500600000001600002B0000046B4960688301#1243862801089#com.sap.slm.exec.messa
    ge.SLMApplication#sap.com/tcslmslmapp#com.sap.slm.exec.message.SLMApplication#Guest#0##
    n/a##c59827604eaf11de9fb3005056ab04c5#SAPEngine_Application_Thread[impl:3]_0##0#0#Error##
    Java###null##
    #1.#005056AB04C500730000000000002B0000046B4CF0593ABD#1243878100908#System.err#arinso.com/
    valtran_validator#System.err#Guest#0##ET7#MIGUELGU                        #4A240FF606CD5E
    5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
    p]##0#0#Error##Plain###com.sap.mw.jco.JCO$AbapException: (126) 1: Array index out of rang
    e: 48#
    #1.#005056AB04C500730000000100002B0000046B4CF0594028#1243878100909#System.err#arinso.com/
    valtran_validator#System.err#Guest#0##ET7#MIGUELGU                        #4A240FF606CD5E
    5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
    p]##0#0#Error##Plain### at com.efh.jco.valtran.sap.ValtranRequestHandler.serverExceptionO
    ccurred(ValtranRequestHandler.java:164)#
    #1.#005056AB04C500730000000200002B0000046B4CF059406B#1243878100910#System.err#arinso.com/
    valtran_validator#System.err#Guest#0##ET7#MIGUELGU                        #4A240FF606CD5E
    5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
    p]##0#0#Error##Plain### at com.sap.mw.jco.JCO.fireServerExceptionOccurred(JCO.java:880)#
    #1.#005056AB04C500730000000300002B0000046B4CF05940A3#1243878100910#System.err#arinso.com/
    valtran_validator#System.err#Guest#0##ET7#MIGUELGU                        #4A240FF606CD5E
    5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
    p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.listen(JCO.java:8187)#
    #1.#005056AB04C500730000000400002B0000046B4CF05940DB#1243878100910#System.err#arinso.com/
    valtran_validator#System.err#Guest#0##ET7#MIGUELGU                        #4A240FF606CD5E
    5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
    p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.work(JCO.java:8303)#
    #1.#005056AB04C500730000000500002B0000046B4CF0594111#1243878100910#System.err#arinso.com/
    valtran_validator#System.err#Guest#0##ET7#MIGUELGU                        #4A240FF606CD5E
    5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
    p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.loop(JCO.java:8250)#
    #1.#005056AB04C500730000000600002B0000046B4CF0594143#1243878100910#System.err#arinso.com/
    valtran_validator#System.err#Guest#0##ET7#MIGUELGU                        #4A240FF606CD5E
    5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
    p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.run(JCO.java:8166)#
    #1.#005056AB04C500730000000700002B0000046B4CF05941F0#1243878100910#System.err#arinso.com/
    valtran_validator#System.err#Guest#0##ET7#MIGUELGU                        #4A240FF606CD5E
    5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
    p]##0#0#Error##Plain### at java.lang.Thread.run(Thread.java:770)#

  • New Server for Preview SAP WAS ABAP and Java

    Hi
    I wish to purchase a new PC or server to specifically house my ABAP and Java preview installations rather than have them running on an old PC and laptop.
    Anyone out there got some recommended configurations?  Max spend will be £1500.
    Cheers
    Ian

    Ian,
    Personally I wouldn't be happy running a server 24/7 at home but would want to just switch it on and the server start so would be looking to have some sort of script to run the relevant WAS instances automatically on startup.
    160Gb hard drives would be ample. Could consider increasing the storage and then the system could double up as a backup device as well as a SAP server.
    I've built systems in the past and that's the approach I'd take for this too. I don't mind buying pre-built systems but I
    detest all the rubbish software they bundle with them. If you build it yourself you can install just Windows and it'll run like a dream. 
    This bundle looks interesting:
    http://www.overclockers.co.uk/showproduct.php?prodid=BU-039-OK
    The motherboard takes four memory modules so the 2Gb would consume two of these allowing for upgrades in the future if deemed necessary. Add in a couple of HD's, a DVD-RW, a cheap gfx card and a case and you'd easily get change from £800. Could spend a bit more to get more silent components too.
    Now I've had a look around and priced them up I'm even more tempted!!!
    Cheers,
    JB

  • ABAP to Java - JCo error

    I followed all the instructions in Gregor's blog: /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    This is based on the Example5.java that comes bundled with JCo software. I was able to start the server, I was able to  successfully test my RFC destination, but when I actually run by ABAP program the return error is:
    JCO.Server could not find server function 'JCOSERVER01'
    I am running the java code on my local machine on eclipse. And in the console this is what I get after the call from the ABAP program:
    Server JCOSERVER01 changed state from [ STOPPED ] to [ STARTED ]
    Server JCOSERVER02 changed state from [ STOPPED ] to [ STARTED ]
    Server JCOSERVER02 changed state from [ STARTED ] to [ STARTED  LISTENING ]
    Server JCOSERVER01 changed state from [ STARTED ] to [ STARTED  LISTENING ]
    Server JCOSERVER01 changed state from [ STARTED  LISTENING ] to [ STARTED  LISTENING  BUSY ]
    Exception in server JCOSERVER01:
    com.sap.mw.jco.JCO$Exception: (120) JCO_: JCO.Server could not find server function 'JCOSERVER01'
    com.sap.mw.jco.JCO$Exception: (120) JCO_: JCO.Server could not find server function 'JCOSERVER01'
         at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(MiddlewareRFC.java:1395)
         at com.sap.mw.jco.JCO$Server.listen(JCO.java:7067)
         at com.sap.mw.jco.JCO$Server.run(JCO.java:6996)
         at java.lang.Thread.run(Thread.java:534)
    Server JCOSERVER01 changed state from [ STARTED  LISTENING  BUSY ] to [ STARTED  LISTENING ]
    Server JCOSERVER01 changed state from [ STARTED  LISTENING ] to [ STARTED ]
    Server JCOSERVER01 changed state from [ STARTED ] to [ STOPPED ]
    Server JCOSERVER01 changed state from [ STOPPED ] to [ STARTED ]
    Server JCOSERVER01 changed state from [ STARTED ] to [ STARTED  LISTENING ]
    Server JCOSERVER01 changed state from [ STARTED  LISTENING ] to [ STARTED  LISTENING  BUSY ]
    Pls help!
    Thanks in adv
    gs

    Hi Prashil,
    I am getting the error when I am testing using the test program from the blog.
    Here it is:
    DATA: REQUTEXT LIKE SY-LISEL,
          RESPTEXT LIKE SY-LISEL,
          ECHOTEXT LIKE SY-LISEL.
    DATA: RFCDEST like rfcdes-rfcdest VALUE 'NONE'.
    DATA: RFC_MESS(128).
    REQUTEXT = 'HELLO WORLD'.
    RFCDEST = 'Z_TEST_ABAP_TO_JCO'. "corresponds to the destination name defined in the SM59
    CALL FUNCTION 'JCOSERVER01'
       DESTINATION RFCDEST
       EXPORTING
         REQUTEXT = REQUTEXT
       IMPORTING
         RESPTEXT = RESPTEXT
         ECHOTEXT = ECHOTEXT
       EXCEPTIONS
         SYSTEM_FAILURE        = 1 MESSAGE RFC_MESS
         COMMUNICATION_FAILURE = 2 MESSAGE RFC_MESS.
    IF SY-SUBRC NE 0.
        WRITE: / 'Call STFC_CONNECTION         SY-SUBRC = ', SY-SUBRC.
        WRITE: / RFC_MESS.
    ENDIF.
    Also I have created and successfully tested the RFC destination: "Z_TEST_ABAP_TO_JCO" with the program id: "JCOSERVER01".
    And "JCOSERVER01" is the name of one of the two servers started in the java program Example5.java.
    Thanks
    gs

  • Enqueue server and Message server in ABAP/Java dual stack

    Hi you guys,
    I have some questions when studying SAP, could you please explain for me:
    - In ABAP and Java system, do each stack have it own enqueue server and message server?
    - What is the difference between Enqueue server and enqueue work process in ABAP stack?
    - If there is one message server for each stack, which messager server (ABAP or Java) will the Web dispatcher connect directly to?
    - How do ABAP message server and Java message server communicate with each other?
    Thank you very much.

    1. in Dual Stack, normally you have ABAP Stack and SCS Central service Instance. ABAP Instance has Message server, SCS has it own Message server and enqueue server. ABAP instance doesn't have enqueue server, because the SCS already has enqueue service
    2. Communication between ABAP and J2EE Engine uses RFC (JCo) or HTTP Interface.
    Web Dispatcher will connect to the ICM of that instance, and the ICM is talking to Abap dispatcher and J2EE Dispatcher.
    3. The term: enqueue server and enqueue work process , already shows its different quite obviously.
    What so confuse about it ? do some search on SAP Online Documentation.
    Regards,
    Vincent

  • Answers access with Java (to enable more complex reports)?

    Hello and thanks for reading,
    I was wondering if there is a possibility to access BI Answers with Java (or an other procedural language) in order to realize more complex reports than what is possible with the graphical user interface.
    Is there an alternative way to access BI Answers in order to build reports, which provides one with a great flexibility in report design?
    Thanks for ideas
    Evgeny

    Are you trying to build more complex reports in OBIEE?
    If you need to customize the obiee you can do by editing the html files in BI server and data folders. You can add ur own html code and tags there. Also to achive more complex formating you can use OBIEE Publisher that will let you to create your own rtf or pdf templates and upload it to the dashboards
    Hope it helps
    Prash

  • ABAP and JAVA testdrive on same server

    Hi
    In some threads I can read that it's possible to install an ABAP testdrive and a JAVA testdrive on same server and in other threads I can read that its not possible.
    I have tried it myself without succes.
    Has anyone actually done this?
    Best regards
    Thomas

    I haven't tried is myself, even though standard SAP should allow you to. I assume the versions ABAP exclusive and JAVA exclusive are created in a way you cannot combine them. That is a pitty.
    ON THE OTHER HAND, though, there is a version available for LINUX that has ABAP and JAVA stacks available on the same installation.
    Check on <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloads">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloads</a>
    Good luck and let me know your findings.
    Leonardo De Araujo

  • How to set JCO.Server to unicode

    Hi,
    I'm trying to call a Java class (myExample5)from a R/3 that is unicode compliant.  Using example5 in the sapjco-ntintel-2.1.5.zip, I've created the ABAP program to call STFC_CONNECTION with the destination 'JCO'.  I get to my JAVA program, but the input it receives is null.  I think I need to set the JCO.Server to be unicode, but I can't figure out how. 
    Can someone provide me with an example? 
    Also, do I need to had any additional dll to my system32 directory?
    Thanks ahead of time for any insight.

    Hello ,
    If you want to make outbound RFC calls from a Unicode SAP system to a JCo server instance, the server must be set up using the additional serverProperty
    You also need to set the unicode option for your RFC destination in transaction SM59 in transaction SM59 (tab page MDMP_Unicode).
    You can create Unicode Compatible JCOSERVER01  as follows
    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");
    for more details use following link :
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/7238b836701b5ae10000000a42189c/frameset.htm
    Regards,
    Pushkar Dhale

  • How to handle JCO.AbapException on JCO call in ABAP

    Hello Forum,
    I am implementing an JCO Server scenario.
    I use dynamic repositories like Example7.java from the JCO documentation.
    Example7 throws an JCO.AbapException if anything went wrong, e.g. the function is not implemented. My coding is like:
         protected void handleRequest(JCO.Function function) throws AbapException {
              try {
                // Process incoming requests
              } catch (Exception e) {
                log.error(this.getProgID() + ": error handling request " + function.getName(), e);
                throw new AbapException(function.getName(), e.getMessage());
    How to react on this AbapException?
    The examples in SAP Help documentation only catch
    SYSTEM_FAILURE and COMMUNICATION_FAILURE.
    I implemented the JCO call as well like following.
    CALL FUNCTION 'MY_JCO_FUNCTION_MODULE'
        DESTINATION JCO_DEST
        <...>
        EXCEPTIONS
          SYSTEM_FAILURE        = 1  MESSAGE RFC_MESS
          COMMUNICATION_FAILURE = 2  MESSAGE RFC_MESS.
    But these two are only thrown and caught when something with communication went completely wrong, e.g. RFC not found.
    When the exception in the JCO server occured and JCO.AbapException was thrown I always get an ABAP short dump, i.e. the exception was not handled.
    Additionaly, the exception is named like the JCO function called and the message text which was submitted to JCO.AbapException is not displayed. I think that means that the AbapException was not recognized at all?
    The JCO API doc says:
    Creates an exception with the specified key. This constructor is normally used in the server's handleRequest() methods to throw an exception which is part of the function interface definition. In such a case the SAP system will not raise a system exception. If however the specified key is not a defined exception for the currently processed function module the SAP will raise a system exception.
    But whether I define an exception in the function interface definition named like the module (thererfor new AbapException(function.getName(), <...>)) or not, it always dumps. I understand the exception that a system exception is raised when the exception is not defined? But this is not been handled with above ABAP code as well.
    What is wrong here? Could anyone post an example please how the exception has to be handled?
    Please note that I do not define static repositories but have the remote function defined on in the ABAP server to be used by dynamic repository (like the STFC_CONNECTION test rfc). Am I right that the exception should be defined in that RFC remote definition?
    Thanks,
    Carsten

    Dear everybody,
    Finally I solved this old problem
    I am a novice in JCO and played a little with the problem and found an old reference to the difference between J2EEAbapException and AbapException classes. I modified my program and it works! ABAP caller gets the correct exception, not system_failure! The details:
    1. modify beanname.java source
         import com.sap.mw.jco.JCO;
         import com.sap.mw.jco.JCO.J2EEAbapException;
         public interface ... extends EJBObject {
        public void processFunction(JCO.Function function) throws RemoteException, J2EEAbapException;
    2. modify beannamebean.java source
        import com.sap.mw.jco.JCO.J2EEAbapException;
         public void processFunction(JCO.Function function) throws J2EEAbapException {
         throw new JCO.J2EEAbapException("NODATA");
    3. modify beannamelocal.java source
          import com.sap.mw.jco.JCO;
         import com.sap.mw.jco.JCO.J2EEAbapException;
              public void processFunction(JCO.Function function) throws J2EEAbapException;
    I hope it helps for somebody else too!
    Imre

  • ABAP Calling JAVA Function or Method

    Hi Friend,
    I need help in how to proceed using  ABAP  and Call JAVA Function . I know that  we need to use RFC enabled Function modules. I was able to connect  using JAVA Connector which was provided by SAP For communicating with JAVA Apps. The approach for connecting the JAVA to SAP is working fine.  But I  have browsed through various website but failed to find any information.Now i am looking forward to help from you friends to solve my problems .
    The Requirement is mentioned below:-
      1. Prerequiste for SAP ABAP calling a third Party software which is working in JAVA Platform (like any middle ware which might be hardware or software).
      2. Sample Code  like calling a Text  ' Hello  to the world  calling JAVA from ABAP'.
      3. Steps and process so that it would be helpful.
    Timely help would be appreciated.
    Rajiv Christopher.

    1.Middleware is JCO RFC provider it comes with SAP so no need any third party Adapter.
    2.
    " The ECHOTXT parameter should contain the text of REQUTXT.Information on
    " calling the function module should be returned in RESPTXT, indicating, for
    " example, in which system and when the function module call was processed.
    data:ECHOTEXT type SY-LISEL,
         RESPTEXT type SY-LISEL.
    CALL FUNCTION 'STFC_CONNECTION' DESTINATION '<Your JCO destination name>' " which one you have developed in SM59 as TCP/IP
      EXPORTING
        requtext       = 'ABAP Calls JAVA'
    IMPORTING
       ECHOTEXT       = ECHOTEXT
       RESPTEXT       = RESPTEXT.
    if sy-subrc = 0.
      WRITE:/'---------------------------------------------------------------------'.
      WRITE: / 'establish a link to the ABAP application server with logon data'.
      WRITE:/'---------------------------------------------------------------------'.
      write:/ ECHOTEXT .
      else.
          WRITE:/'---------------------------------------------------------------------'.
      WRITE: / 'Not establish a link to the ABAP application server with logon data'.
      WRITE:/'---------------------------------------------------------------------'.
      endif.
    Check the sample code and Let me know will you get ECHOTEXT ?
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Jan 6, 2010 1:27 PM

Maybe you are looking for

  • System Error in BPE after upgrading to SPS 20

    Hi, on Monday we have updated our XI from SPS 19 to SPS 20. Since that day we get errors in our BPE. Following the scenario: We receive a SOAP request from our partner, which is delivered to a ccBPM Process via an abstract synchronous interface. Firs

  • Iexplore.exe ntdll.dll citrix app-v flash crash

    app-v 4.6 sp2 xenapp 6.5: https://support.citrix.com/article/ctx136248 Hotfix Rollup Pack 2 for Citrix XenApp 6.5 for Microsoft Windows Server 2008 R2 App is a url: a website that uses flash/java/whatnot. app has already been sequenced without starti

  • Java keeps crashing on me.

    Faulting application iexplore.exe, version 6.0.2900.2180, faulting module wininet.dll, version 6.0.2900.2180, fault address 0x0001b4a7. Product: Java 2 SDK, SE v1.5.0 -- Internal Error 2350. Product: Java 2 SDK, SE v1.5.0 -- Error 1335.The cabinet fi

  • My iPad 3 doesn't transfer pictures thru photo stream to iPhone 4 but does on iPhone 4 to iPad.

    ...

  • HRABAP about pn-begda in logicdatabase

    When using the logic database to retrive the data in HR, do the pn-begda and pn-endda have any effects on GET PERNR? I have no experience in HR ABAP programmming. When I set the pn-begps, it did affect the data which was selected in GET EVENT, but it