Creating RFC request in java

Hi.
I have a small issue, creating a RFC call from java.
To be specific, I'm updating a table in the backend, using an adapter module.
When creating the request using DOM, I get this error:
Exception:
Exception: error while processing message to remote system:
com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst:
com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declaration(2).
I've seen a few places in the forum, that there's a simular problem in UDF, where you have to create the request string in one line. Else you get the same error.
The question is, what is the difference between these two functions, and why is the DOM function failing when the other one works?
The request should look like this:
  <?xml version="1.0" encoding="UTF-8"?>
  <rfc:Z_MON_SURV_UPDATE xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
      <ID>1</ID>
  </rfc:Z_MON_SURV_UPDATE>
Function 1:
private NodeList buildRequestXml(String id) {
try {
     Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
     Node docRoot = doc.appendChild(doc.createElementNS("urn:sap-com:document:sap:rfc:functions","rfc:Z_MON_SURV_UPDATE"));
     Element ID = doc.createElement("ID");
     docRoot.appendChild(ID).appendChild(doc.createTextNode(id));
     return doc.getChildNodes();
} catch (Exception e) {
     throw new RuntimeException("Error while building request XML", e);}
Function 2:
private NodeList buildRequestXml(String id) throws SAXException, IOException, ParserConfigurationException, FactoryConfigurationError {
     String res = "<rfc:Z_MON_SURV_UPDATE xmlns:rfc=\"urn:sap-com:document:sap:rfc:functions\"><ID>"id"</ID></rfc:Z_MON_SURV_UPDATE>";
     Document XMLDoc= DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new InputSource(new StringReader(res)));     
     return XMLDoc.getChildNodes();
Regards...
Peter

Hi Aashish.
Your right, thanks.
Just tried the something like, what you suggest.
In my case the result method looks like this:
private NodeList buildRequestXml(String id) {
     try {
          Document doc =
               DocumentBuilderFactory
                    .newInstance()
                    .newDocumentBuilder()
                    .newDocument();
          Node docRoot =     doc;
          Element Z_MON_SURV_UPDATE = doc.createElement("rfc:Z_MON_SURV_UPDATE");
          Z_MON_SURV_UPDATE.setAttribute("xmlns:ns1","urn:sap-com:document:sap:rfc:functions");
          docRoot = doc.appendChild(Z_MON_SURV_UPDATE);
          Element ID = doc.createElement("ID");
          docRoot.appendChild(ID).appendChild(doc.createTextNode(id));
          return doc.getChildNodes();
     } catch (Exception e) {
          throw new RuntimeException("Error while building request XML", e);
Regards...
Peter

Similar Messages

  • Create RFC Function using Java Program

    hi
    I am trying to create a small utility in java that extracts data from SAP system and loads it to local Db
    For extracting data from SAP we have a custom ABAP function (RFC) running on SAP server that is called from Java using JCO3 APIs
    Installation of this utility on client side involves -
    1.     Installing RFC on Clientu2019s SAP instance
    2.     Installing / Configuring Java code on Clientu2019s machine
    Is there a way to install / create a RFC function using java -JCO APIs so that Step-1 can be omitted?
    I had browsed through a sample provided in examples installed with JCO3 but its very trivial example can someone point to a exhaustive link or explain how this can be achieved using Java program
    Thanks

    Hi Amit
    I am not sure I understand the question. You want to create an RFC in Java? If this is correct why not create a Remote Method in java for example as EJB or Web Service which is more standard than creating an RFC.
    On the other hand if you want to create a RFC client in Java (a Program which calls a RFC in SAP ABAP system) you can use JCo APIs (which can be either standalone or on the NW Java server) or JRA (from NW 7.1 onwards).
    Regards
    Partha

  • RFC Lookup using Java Mapping program - Examples

    Dear Experts,
    I am working on a scenario which is using 1:N mapping. For deciding the target message I have to use RFC Lookup to call the backend ERP system and there are 2 ERP systems involved in this integration. As I am using Java Mapping and never did a RFC Lookup in Java. I kindly request you to give me some examples which I could use for my RFC calls in my Java Mapping. Simple example will do.
    Client is adamant to use Java mapping, I could achieve this easily using XSLT or Graphical Mapping.
    Advance Thanks,
    Pradeep

    Hello,
    why don't you use Extended Receiver Determination Defining Extended (Dynamic) Receiver Determination - Integration Directory - SAP Library?
    What you can do is create a Message Mapping between your source message and Receivers message type. In this message mapping you can use your RFC to generate the target message.
    For example, lets say we have the function ZFM_GET_INTERFACE_INFO used to generate the List of Receivers given a source message. You could create a Message Mapping as below:
    In this case, the RFCLookup box look as below:
    The receiver determination configuration would look as follows:
    Afterwards, you will need two specific message mappings for the two ERP systems.
    Summarizing, you'll need:
    1.- A Message Mapping: Source Message to Receivers Message Type (This one uses the RFC Lookup)
    2.- A Message Mapping: Source Message to Target Message for ERP 1
    3.- A Message Mapping: Source Message to Target Message for ERP 2
    In Integration Directory you'll have 1 Receiver Determination(Source system, Target System determined Dynamically) and 2 Interface Determinations (Source System to ERP1, Source System to ERP2), etc.
    I hope you find it useful.
    Regards!

  • Unable to create RFC iviews - connection test of the system failed

    hello,
    I always try to configure my system to run an RFC iView...
    The connection of myt system is failed for 1 of the 4 tests.
    i don't know why.
    I have filled this fields :
    - application host
    - ITS host name
    - ITS path
    - ITS protocol
    - Logical system name (not sure it's correct)
    - Sap client
    - Sap system ID
    - SAP system number
    - Server port (not sure it's correct)
    - System type
    - Web as host name
    - Web as path
    - Web as protocol
    and i have this error :
    SAP Web AS Connection
      Test Details:
    The test consists of the following steps:
    1. Check the validity of the system ID in the system object
    2. Check if the system can be retrieved
    3. Check if a SAP system is defined in the system object
    4. Validate the following parameters: WAS protocol; WAS host name
    5. Check HTTP/S connectivity to the defined back-end application
      Results
    1. The system ID is valid
    2. Retrieval of the system was successful
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (wsapv49.dhcp.xxx.xx.xxxx:8045)
    5. HTTP/S connection successful
    ITS Connection
      Test Details:
    The test consists of the following steps:
    1. Check the validity of the system ID in the system object
    2. Check if the system can be retrieved
    3. Check if the system object has a valid system alias
    4. Check if a SAP system is defined in the system object
    5. Validate the following parameters: ITS protocol; ITS host name
    6. Check the validity of any user mapping in the system object
    7. Check HTTP/S connectivity to the defined back-end application
      Results
    1. The system ID is valid
    2. Retrieval of the system was successful
    3. Retrieval of the default alias was successful
    4. The system object represents an SAP system
    5. The following parameters are valid: ITS Protocol (http) ITS Host Name (wsapv49.dhcp.xxx.xx.xxxx:8045)
    6. HTTP/S connection successful
    Test Connection with Connector
      Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
      Results
    Retrieval of default alias successful
    Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
    Test Connection through the DQE
      Test Details:
    The test consists of the following steps:
    1. Checks the existence of a backend admin user ID/password in the system properties.
    2. Checks the existence of a default alias for the system.
    3. Checks the DQE connection.
      Results
    1. DQE admin user ID or password is missing in the system properties. Make sure those properties exist for this system object.
    2. Default alias of the system exists.
    3. DQE connection successful. If you continue to experience problems, verify the DQE admin user ID and password properties for this system object.
    can you help me to end this configuration?
    thanks a lot.
    (reward points for helful answers...)
    Adrien

    doesn't work, doesn't work... :o(
    I found this in "analysis" -> "Debug"
      error 3 mai 2007 16:49:32:168 Failed to get connection for system final
    /System/Server com.sap.portal.ivs.connectorService sap.com/irj admin ITEM-31892 Server 0 0_33638
      error 3 mai 2007 16:49:32:168 (R3/BW) Failed to get connection. Please contact your admin.
    /System/Server com.sap.portal.connectors.R3 sap.com/irj admin ITEM-31892 Server 0 0_33638
    i found too a -BIG- file in the directories, "last block" of the file
    #1.5#000D56D8CEA2005D0000001500000FC400042F9201A5E5D2#1178204046283#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/tcwddispwda#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Administrator#49##ITEM4531892.dhcp_J2E_3363850#admin#1a943a10f98511dbc5d6000d56d8cea2#SAPEngine_Application_Thread[impl:3]_3##0#0#Error#1#/System/Server/WebRequests#Plain###Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.tc.webdynpro.clientserver.session.CloseResponseException: The connection is closed.
    Exception id: [000D56D8CEA2005D0000001300000FC400042F9201A5E071]#
    #1.5#000D56D8CEA2005D0000001600000FC400042F9201A76132#1178204046383#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/tcwddispwda#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Administrator#49##ITEM4531892.dhcp_J2E_3363850#admin#1a943a10f98511dbc5d6000d56d8cea2#SAPEngine_Application_Thread[impl:3]_3##0#0#Error##Plain###Cannot send an HTTP error response [500 Application error occurred during request processing. (details: com.sap.tc.webdynpro.clientserver.session.CloseResponseException: The connection is closed.)]. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: An attempt to write after the stream had been closed.
         at com.sap.engine.services.servlets_jsp.server.runtime.client.GzipResponseStream.write(GzipResponseStream.java:209)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.GzipResponseStream.write(GzipResponseStream.java:193)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.writeError(HttpServletResponseFacade.java:952)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.sendError(HttpHandlerImpl.java:955)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleGeneralException(HttpHandlerImpl.java:860)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.processError(HttpHandlerImpl.java:851)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    #1.5#000D56D8CEA2005D0000001800000FC400042F9201A765B7#1178204046383#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/tcwddispwda#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Administrator#49##ITEM4531892.dhcp_J2E_3363850#admin#1a943a10f98511dbc5d6000d56d8cea2#SAPEngine_Application_Thread[impl:3]_3##0#0#Error#1#/System/Server/WebRequests#Plain###Cannot send an HTTP error response [500 Application error occurred during request processing. (details: com.sap.tc.webdynpro.clientserver.session.CloseResponseException: The connection is closed.)].
    The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: An attempt to write after the stream had been closed.
    Exception id: [000D56D8CEA2005D0000001600000FC400042F9201A76132]#
    and with another test connector
    #1.5#000D56D8CEA200600000001800000FC400042F921D02D625#1178204505301#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/tcwddispwda#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Administrator#49##ITEM4531892.dhcp_J2E_3363850#Administrator#fd2a66f0f98611dbcb21000d56d8cea2#SAPEngine_Application_Thread[impl:3]_14##0#0#Error#1#/System/Server/WebRequests#Plain###Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.tc.webdynpro.clientserver.session.CloseResponseException: The connection is closed.
    Exception id: [000D56D8CEA200600000001600000FC400042F921D02D1AE]#
    #1.5#000D56D8CEA200560000001600000FC400042F921D39B77B#1178204508896#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#sap.com/tcwddispwda#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#Administrator#49##ITEM4531892.dhcp_J2E_3363850#Administrator#fd2a66f0f98611dbcb21000d56d8cea2#ID\#(J2EE3363800)ID0180043050DB10318128463979236974End.32388e30f98711dba6e6000d56d8cea2##0#0#Info##Plain###wdDoInit()-> enter#
    #1.5#000D56D8CEA200560000001700000FC400042F921D3AE547#1178204508977#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#sap.com/tcwddispwda#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#Administrator#49##ITEM4531892.dhcp_J2E_3363850#Administrator#fd2a66f0f98611dbcb21000d56d8cea2#ID\#(J2EE3363800)ID0180043050DB10318128463979236974End.32388e30f98711dba6e6000d56d8cea2##0#0#Info##Plain###connectToSystem()->Selected Systemnull#
    #1.5#000D56D8CEA200560000001800000FC400042F921D3BE964#1178204509037#com.sap.tc.lm.ctc.provider.configurationmanager.ConfigManagerReader#sap.com/tcwddispwda#com.sap.tc.lm.ctc.provider.configurationmanager.ConfigManagerReader#Administrator#49##ITEM4531892.dhcp_J2E_3363850#Administrator#fd2a66f0f98611dbcb21000d56d8cea2#ID\#(J2EE3363800)ID0180043050DB10318128463979236974End.32388e30f98711dba6e6000d56d8cea2##0#0#Info##Plain###getElement(String, Filter, int):NamedLocatedElement!ConfigManagerReader.SEARCH_FOR!CTC#
    #1.5#000D56D8CEA200560000001900000FC400042F921D414CF2#1178204509397#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#sap.com/tcwddispwda#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#Administrator#49##ITEM4531892.dhcp_J2E_3363850#Administrator#fd2a66f0f98611dbcb21000d56d8cea2#ID\#(J2EE3363800)ID0180043050DB10318128463979236974End.32388e30f98711dba6e6000d56d8cea2##0#0#Info##Plain###wdDoInit()-> leave success#
    #1.5#000D56D8CEA200560000001A00000FC400042F921E69A639#1178204528816#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#sap.com/tcwddispwda#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#Administrator#49##ITEM4531892.dhcp_J2E_3363850#Administrator#fd2a66f0f98611dbcb21000d56d8cea2#ID\#(J2EE3363800)ID0180043050DB10318128463979236974End.32388e30f98711dba6e6000d56d8cea2##0#0#Info##Plain###wdDoModifyView()-> enter#
    #1.5#000D56D8CEA200560000001B00000FC400042F921E69A953#1178204528816#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#sap.com/tcwddispwda#com.sap.tc.lm.ctc.ccl.templateinstaller.TemplateInstallerCompView#Administrator#49##ITEM4531892.dhcp_J2E_3363850#Administrator#fd2a66f0f98611dbcb21000d56d8cea2#ID\#(J2EE3363800)ID0180043050DB10318128463979236974End.32388e30f98711dba6e6000d56d8cea2##0#0#Info##Plain###wdDoModifyView()-> success#
    #1.5#000D56D8CEA2006E0000010500000FC400042F9231C81C6F#1178204853786#com.sap.portal.connectors.R3#sap.com/irj#com.sap.portal.connectors.R3#admin#47##ITEM4531892.dhcp_J2E_3363850#admin#e91a07a0f98711db85f4000d56d8cea2#SAPEngine_Application_Thread[impl:3]_9##0#0#Error#1#/System/Server#Plain###(R3/BW) Failed to get connection. Please contact your admin. #
    #1.5#000D56D8CEA204E70000000100000FC400042F9231C90EA8#1178204853846#com.sap.engine.services.dqe#sap.com/irj#com.sap.engine.services.dqe#admin#47##ITEM4531892.dhcp_J2E_3363850#admin#e91a07a0f98711db85f4000d56d8cea2#Thread[Log_Worker_6,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error#1#/System/Server/DQE#Plain###mai 03, 2007 17:07:33.786 [SAP_HOST|4039|SAPEngine_Application_Thread[impl:3]_9] <CONNECTOR.ERROR> Error trying to establish connection to the EIS : final Connection Failed: Nested Exception. Failed to get connection. Please contact your admin. #
    #1.5#000D56D8CEA200690000001E00000FC400042F92335B4C9E#1178204880215#com.sap.portal.connectors.R3#sap.com/irj#com.sap.portal.connectors.R3#admin#47##ITEM4531892.dhcp_J2E_3363850#admin#e91a07a0f98711db85f4000d56d8cea2#SAPEngine_Application_Thread[impl:3]_35##0#0#Error#1#/System/Server#Plain###(R3/BW) Failed to get connection. Please contact your admin. #
    #1.5#000D56D8CEA200690000002000000FC400042F92335B4FE3#1178204880215#com.sap.portal.ivs.connectorService#sap.com/irj#com.sap.portal.ivs.connectorService#admin#47##ITEM4531892.dhcp_J2E_3363850#admin#e91a07a0f98711db85f4000d56d8cea2#SAPEngine_Application_Thread[impl:3]_35##0#0#Error#1#/System/Server#Java###Failed to get connection for system #1#final#
    i happy to carry my life's number one goal with another guy
    (thanks, again and again)
    Adrien
    Message was edited by:
            Adrien Loire

  • Error while creating RFC Jco provider in visual Admin

    Hi,
    I have crated a rfc jco provider in visual admin , I have given all the ECC related details both in registered server AND Spcific application server. In both of these I have given R/3 related details like host of ecc and all.
    All i have given correct used ID and passowrd also (I am using my own user id and password in this jco rfc provider). that user id is there in ecc with sap all in profile and in roles also i have given 2 roles for that used id, namely sap_bc_jsf_communication AND sap_bc_usr_cua_client_rfc
    Still when i try to  start it its giving me error:  Error starting bundle
    please help

    This I am getting:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=sapecdsrv SYSNR=00 GWHOST=sapecdsrv GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       hostname 'sapecdsrv' unknown
    TIME        Wed May 26 14:26:21 2010
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -2
    MODULE      nixxhsl.cpp
    LINE        223
    DETAIL      NiHsLGetNodeAddr: hostname cached as unknown
    COUNTER     2
    at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)
    at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1025)
    at com.sap.mw.jco.JCO$Client.connect(JCO.java:3255)
    at com.sap.mw.jco.JCO$Pool.initPool(JCO.java:4725)
    at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:6180)
    at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:6135)
    at com.sap.mw.jco.JCO.getClient(JCO.java:8803)
    at com.sap.engine.services.rfcengine.Bundle.startAll(Bundle.java:248)
    at com.sap.engine.services.rfcengine.RFCRuntimeInterfaceImpl.addBundle(RFCRuntimeInterfaceImpl.java:350)
    at com.sap.engine.services.rfcengine.RFCRuntimeInterfaceImpl.changeBundleConfiguration(RFCRuntimeInterfaceImpl.java:654)
    at sun.reflect.GeneratedMethodAccessor401.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
    at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
    at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
    at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
    at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
    at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
    at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
    at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
    at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
    at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
    at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:131)
    at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:212)
    at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:766)
    at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
    at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
    at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
    at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)
    at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(AccessController.java:219)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172

  • ERROR while CREATING RFC FOR SOLUTION MANAGER DIAGNOSTICS

    Dear all,
    Hi,
    I am configuring solution manager 7.0.
    In SPRO>basic setting >operation>solution manager diagnostics > create RFC for solution manager diagnostics i am getting this error
    program WEBADMIN not registerred.
    can any one tell me how to register this program in sap gateway.
    best regards
    azeem

    Hi Azeem,
    Just before creating the rfc connection do this step.
    Set-Up Solution Manager Connection to Solution Manager Diagn
    Use
    Check the connection to function Solution Manager Diagnostics.
    Default Settings
    The function Solution Manager Diagnostics is installed on the Java instance of the Solution Manager system by default.
    Activities
    If the default values are correct, save the settings.
    To run the Solution Manager Diagnostics in another system, enter the required data and save.
    Also check that your java is active.
    Regards
    Ashok

  • Problem in creating user request through ContentDB API

    Hi
    I am trying to create user request on the document. Workflow is configured on the document parent folder. I am trying to submit the document for workflow.
    Here is the code i used to create user request
    RequestManager reqM = session.getRequestManager();
    long[] itemId = { item.getId() };
    NamedValueSet[] docParameters = new NamedValueSet[]
    new NamedValueSet(
    new NamedValue[]
    new NamedValue(Attributes.WORKFLOW_PARAMETER_NAME,"JUSTIFICATION"),
    new NamedValue(Attributes.WORKFLOW_PARAMETER_DEFAULT_VALUE,
    "Edited para 2"),
    new NamedValueSet(
    new NamedValue[]
    new NamedValue(Attributes.WORKFLOW_PARAMETER_NAME,"IFS_ECM_VERBOSE_LOGGING"),
    new NamedValue(Attributes.WORKFLOW_PARAMETER_DEFAULT_VALUE,
    Boolean.FALSE),
    NamedValue[] options2 = new NamedValue[] {
    ClientUtils.newNamedValue(Attributes.WORKFLOW_CONFIGURATION_PARAMETERS,docParameters)};
    reqM.createUserRequest(itemId, options2);
    I got the following error:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: ORACLE.FDK.UnexpectedError:ORACLE.FDK.ServerError
    faultActor:
    faultNode:
    faultDetail:
         {http://xmlns.oracle.com/content/ws}fault:<detailedErrorCode xsi:type="xsd:string">ORACLE.FDK.ServerError</detailedErrorCode><errorCode xsi:type="xsd:string">ORACLE.FDK.UnexpectedError</errorCode><exceptionEntries xsi:nil="true" xsi:type="ns1:ArrayOfFdkExceptionEntry"/><info xsi:nil="true" xsi:type="ns1:ArrayOfNamedValue"/><serverStackTraceId xsi:type="xsd:string">112-1191017621836</serverStackTraceId>
         {http://xml.apache.org/axis/}hostname:contentdb.sjrwmd.com
    ORACLE.FDK.UnexpectedError:ORACLE.FDK.ServerError
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
    However, If i create user request without passing any parameters it is working fine. I get error only when creating request with parameters.
    Please help.

    Hi
    I could able to get the request invoked. Earlier I tried with wrong parameters.
    Thanks

  • JDBC to RFC.request and RFC.response to JDBC

    Hi all,
    I have the need of create this scenario: JDBC will pick some records from DB and send them to SAP into a RFC.request, after that, SAP will generate a response that will be sent to XI (via the RFC. response), these data has to be sent back to the DB.
    So I am clear in the first part: JDBC sender and sRFC receiver, so that, the response will be sent back to XI, BUT, is there a way to map these response data into a DT_Receiver_JDBC without using BPM????  If so, how?
    And, what about the initial loads of data???  Customer wants this kind of scenario to be used then. What do you think about that?
    I know XI is not the best approach for this purpose but...  And i think i would have to take into account the response time of SAP in synchronous RFC...
    Hope you guys may help me on this.
    Thanks in advance and best regards,
    David

    is there a way to map these response data into a DT_Receiver_JDBC without using BPM?
    No. U will have to use BPM.
    I have not used it personally with JDBC adapter but u may try this to avoid BPM. Hope it works
    http://help.sap.com/saphelp_nw04/helpdata/en/45/20c210c20a0732e10000000a155369/frameset.htm
    I know XI is not the best approach for this purpose but... And i think i would have to take into account the response time of SAP in synchronous RFC...
    For sync scenario, the response time should always be considered. However, using XI won't be that much of pain. It will surely relieve you when it comes to monitoring.
    Regards,
    Prateek

  • How to create Rfc for EP system in Solution manager

    Dear experts,
    I am doing ChaRM configuration for my EP system ( java only).
    I also configured CTS+ successfully but we want to integrate this with Chram in solman.
    I have done all configuration according to standard doc for ChaRM.
    But when creating project from solar_admin it is giving "   NO RFC for DEP system"
    so please suggest me how to create RFC for java system in Solution manager.
    thanks in advance
    dhiraj

    Hello,
    You need to setup an ABAP communication client and system, that's done through the TMS settings:
    For source system:
    - CTC                                              1
    - CTS_SYSTEM_TYPE                          JAVA  (others for a MDM system)
    - NON_ABAP_SYSTEM                          1
    - COMMUNICATION_SYSTEM:              (SAPSID of the ABAP communication system (e.g. the domain controller))
    - NON_ABAP_WBO_CLIENT                    (Client of the ABAP stack on which the Transport Organizer Web UI (CTS_BROWSER) is activated and will run.)
    - WBO_GET_REQ_STRATEGY                 TAGGED
    - WBO_REL_REQ_STRATEGY                 MANUAL
    For quality and production Java system (target systems):
    - CTC                                              1
    - CTS_SYSTEM_TYPE                          JAVA (others for a MDM system)
    - NON_ABAP_SYSTEM                         1
    - COMMUNICATION_SYSTEM:                 (SAPSID of the ABAP communication system (e.g. the domain controller))
    - DEPLOY_WEB_SERVICE                       CTSDEPLOY
    - DEPLOY_DATA_SHARE:
    When this is done correctly, you will see the fields ABAP communication system and client populated in SMSY.
    When ChaRM needs to operate on the non ABAP systems, it will take the RFCs for the communication system and client.
    Best regards,
    Miguel Ariñ

  • Example-- Call RFC from external Java Application

    Update: I need code example to call RFC from External Java application. Can onybody help me?                                                      
    RGDS
    RP
    hi all.
    i want to create my own log for each interface.
    i saw this blog:
    /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
    my doubt is how to catch the error that i see in SXI_MONITOR y put it in a Sub-Objetc.
    For example: in sxi_monitor i get the error for my interface NMUCustomer: "No receiver could not be found" or "Error Mapping Traformation".
    I created an Object called ZNMUCUSTOMER and a Sub-Objetc called ZERROR.
    what i must do to get the error I see in monitor and assign it to Sub-Object??
    Rgds.
    Message was edited by:
            Rodrigo Pertierra
    Message was edited by:
            Rodrigo Pertierra
    Message was edited by:
            Rodrigo Pertierra

    Hi,
    Oh, you are using ABAP mapping ......
    then use the following in ABAP mapping ..
    TRACE1,TRACE2,TRACE3.... for trace level 1,2,3......
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/866ce290-0201-0010-338f-b8c3553aaa0f
    Regards
    Chilla

  • Creat RFC destination for portal

    Hello,
    when i am doing RSPOR_SETUP , i am getting java and abap support package versions are different error message for step 2, i.e creating RFC destination for portal.
    Please send me suggestion regarding this issue.
    regards
    Sreesudha

    is ur BI and Portal SP versions different ?? ....if true ?? make sure they have the same SP
    use this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00bed70a-7501-2a10-ec9e-9a04485ab477
    for guidance......

  • ESOA :create RFC detination to es workspace HU2

    I want to create RFC detination to es workspace HU2, I set the
    router string.error like this.(NWA->Configuration Management>destinations).
    Error during ping operation: Connect to SAP gateway failed Connect_PM  TYPE=A ASHOST=iwdf1030.dmzwdf.sap.corp SYSNR=00 GWHOST=iwdf1030.dmzwdf.sap.corp GWSERV=sapgw00 SAPROUTER_STRING=/H/155.56.56.170/H/ PCS=1 LOCATION    SAProuter 37.0 on lt0003 ERROR       lt0003: route permission denied (60.63.168.179 to            iwdf1030.dmzwdf.sap.corp, sapgw00) TIME        Sat Dec  1 19:08:33 2007 RELEASE     640 COMPONENT   NI (network interface) VERSION     37 RC          -94 COUNTER     156
    I'm wondering that host name/ gateway is not right( erp.esworkplace.sap.com can't work either).
    I can conntect to HU2 with SAPGUI or WEBGUI.

    Hi,
    thanks a lot for your feedback. please see my comments below
    >>can you explain more on this as i didnt understand the context.
    part of my problem is i dont have a real SAP R/3 system to test my component out. Hence i tried with remotely hosted SAP system (SAP ERP) which is being provided by SAP Enterprise Services (ES) Workplace [1] . This is actually a SAP test environment or sandbox like space hosted by SAP. Actually when you register you get access to several SAP systems (ie:- SAP ERP, CRM,PI,SCM,etc) to try/test out different SAP scenarios you might have. However these systems did not allow me to do any of the stuff to connect an external JCO program with it.  i am wondering whether SAP ESW systems only permits me to do SAP SOA level integrations and other native tasks. This may be a limitation of the hosted systems (ie:-since it is a shared env , may be to do with security concerns). WDYT?
    >>mentioned. For authorizations you need get in touch with basis team. Actually basis team can create these entries from ur >>guidance.
    >>check these blogs:
    >>/people/ayyapparaj.kv/blog/2008/11/20/r3-to-java-sending-idocs-using-sapidoc-jar
    >>/people/ayyapparaj.kv/blog/2008/11/21/java-to-r3-sending-idocs-using-sapidoc-jar
    thanks . i did go through these blogs. This is what i actually intended to do with SAP ES system , but failed
    Regards,
    Udayanga
    [1] http://www.sdn.sap.com/irj/bpx/esworkplace

  • Error creating a request in CUP

    Hi Experts,
    I am trying to create a request in CUP. I get the error "Error creating a request". My initiator is setup correctly and I am pretty sure the conditions meets. The error message doesn't give any specific details.
    Could any one please help me out on analyzing this message!
    Thanks!
    CP

    Hi Sunny,
    I get the below error in the log file.
    ] ERROR Exception during EJB call, Ignoring and trying Webservice Call
    com.virsa.ae.service.ServiceException: Exception in getting the results from the EJB service : com/virsa/cc/xsys/webservices/dto/WSRAInputParamDTO
         at java.lang.Throwable.<init>(Throwable.java:216)
         at java.lang.Exception.<init>(Exception.java:59)
         at com.virsa.ae.core.AEException.<init>(AEException.java:49)
         at com.virsa.ae.service.ServiceException.<init>(ServiceException.java:45)
         at com.virsa.ae.service.sap.RiskAnalysisEJB53DAO.getViolations(RiskAnalysisEJB53DAO.java:294)
         at com.virsa.ae.service.sap.RiskAnalysisEJB53DAO.getViolations(RiskAnalysisEJB53DAO.java:418)
         at com.virsa.ae.service.sap.RiskAnalysisEJB53DAO.determineRisks(RiskAnalysisEJB53DAO.java:526)
         at com.virsa.ae.service.sap.RiskAnalysis53DAO.determineRisks(RiskAnalysis53DAO.java:103)
         at com.virsa.ae.accessrequests.bo.RiskAnalysisBO.findViolations(RiskAnalysisBO.java:182)
         at com.virsa.ae.accessrequests.bo.RiskAnalysisBO.findViolations(RiskAnalysisBO.java:80)
         at com.virsa.ae.accessrequests.bo.RequestBO.saveRiskAnalysis(RequestBO.java:3984)
         at com.virsa.ae.accessrequests.bo.RequestBO.saveNewRequest(RequestBO.java:369)
         at com.virsa.ae.accessrequests.actions.CreateRequestAction.createRequest(CreateRequestAction.java:325)
         at com.virsa.ae.accessrequests.actions.EUCreateRequestAction.createRequestHandler(EUCreateRequestAction.java:126)
    Also, if I try to do a risk analysis I get an error message that system is not found.  Any Ideas?
    Thanks!
    Chinmaya

  • Export of RFC Model to Java Project DC ?

    I've got a Web Dynpro project where I used the Wizard to import an RFC Model. Now my client has this requirement that all Web Dynpro Models should be based on Command Beans that reside inside their own separate java DCs.
    My question : is it possible to export my RFC Models packages and folders (along with my other Model classes) to a java DC project - to be later reimported back into the Web Dynpro project ?
    Thanks for any input on this

    Hi Romeo,
          To answer your question first there is no standard supported way in which  you could expose RFC Model in seperate Java DCs.
    If the question is just to have the classes (proxy) created for RFC to connect to r/3 and get the data then you could use SAP Enterprise Connector, but i would not recommand that as you loose out the complete declarative way of using RFC and so called CMI Model support for Web Dynpro.
    Secondly if RFC Model which you are planning to expose as part of java dc has to be consumed in Web Dynpro then i do not understand the need why some one will require to expose the RFC Model in Java DC and the inherit concept of RFC Model is related to Web Dynpro and not with normal Java DC thus its a matter of choice do you want to use plaiin java classes without Model driven approach or more declarative way as in case of Web Dynpro.
    Thanks

  • We are not able to create CUP Requests

    HI all
    I am also gettting same error like this..We created CUP Requests one hour before ..But we are not able to create CUP Requests now.. I got below error message in system log.
    Risk analysis failed: Exception in getting the results from the web service : Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://c700u121.com:50000/SAPGRC_CCRiskAnalysis_V01/Config1?wsdl&style=document"
    2012-03-08 13:05:25,558 [SAPEngine_Application_Threadimpl:3]_23 ERROR com.virsa.ae.core.BOException: Exception in getting the results from the web service : Service call exception; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://c700u121.com:50000/SAPGRC_CCRiskAnalysis_V01/Config1?wsdl&style=document"
    com.virsa.ae.core.BOException: Exception in getting the results from the web service : Service call exception; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://c700u121.com:50000/SAPGRC_CCRiskAnalysis_V01/Config1?wsdl&style=document"
    at com.virsa.ae.accessrequests.bo.RiskAnalysisBO.findViolations(RiskAnalysisBO.java:199)
    at com.virsa.ae.accessrequests.bo.RiskAnalysisBO.findViolations(RiskAnalysisBO.java:80)
    at com.virsa.ae.accessrequests.bo.RequestBO.saveRiskAnalysis(RequestBO.java:4087)
    at com.virsa.ae.accessrequests.bo.RequestBO.saveNewRequest(RequestBO.java:408)
    at com.virsa.ae.accessrequests.actions.CreateRequestAction.createRequest(CreateRequestAction.java:381)

    Hello Naga!!
    Has your problem been solved??? Error Creating Request - Risk Analysis in CUP
    If yes, I'd be nice if you close this thread and document your solution
    If not, please let us know.
    Be aware that the user should set the Security Policy to "technical user" to avoid problems with password expiration as per note 1296696.
    Cheers!!
    Diego.

Maybe you are looking for