Proxy to JDBC a small issue

Hi friends,
I had a scnario where i am using proxy to JDBC this is sync scnario. when i am triggring the proxy with help of a report.
If the data is present every thing is working fine.. in one case if data is not there in the sender side . mean payloade is blank then the interface is throughing error. the error is..
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Inbound Message
  -->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
  <SAP:Category>XIAdapterFramework</SAP:Category>
  <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
  <SAP:P1 />
  <SAP:P2 />
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException</SAP:AdditionalText>
  <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack />
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error>
Regards
Viajy

Hi Vijay,
1. Your target message to JDBC adapter should look like-
  <StatementName2>
      <dbTableName action=u201DINSERTu201D>
         <table>realDbTableName</table>
         <access>
            <col1>val1</col1>
            <col2>val2</col2>
         </access>
      </dbTableName> 
  </StatementName2>
So change the mapping/data type as requried.
2. Go to the runtime workbench and check the JDBC communication channel error messages. It will give you enough information as to what causes the error.
Regards.

Similar Messages

  • Performance issues in Proxy-XI-Jdbc scenario

    Hello,
    I have developed a proxy to JDBC synchronous scenario.
    My scenario works like this.
    *i run an abap program which calls a client proxy,
    the proxy fetches the data from database table and returns the data in the ABAP program.(select query)
    there are serious performance issues when we are running the report
    it is taking around 2-5 minutes and at times multiple users are logged in , it takes around 5-20 minutes.
    it seems that most of the time is consumed in the data fetching.
    please help me to find some solution so that we can fine tune the performance on the PI side.
    Are there any options on JDBC CC which can help  us in making the queries faster
    thanks
    kannu.

    Kanu16 ,
    Issue seems to be at r/3 end..
    1. Make sur ethat report program is using select query in proper fashion .
    2. avoid using nested loops.
    3.  Hope not much validations are being done on selected data .
    Abaper can help you optimizing this .
    By debugging you can find out the exact reason behind.
    Regards ,

  • Jdbc wsdl binding issue

    Hi,
    I am new to BPEL, facing a small issue. I am creating a BPEL project, after creating a connection with MySQL. I am calling it in my project. when I am building the composite application then jdbc wsdl port is not being visible on casa editor (using netbeans 6.1 IDE).
    Please advise.
    Thanks.
    Edited by: kash.aksh on Dec 1, 2008 10:56 PM

    Please post your request at https://open-esb.dev.java.net/MailingLists.html ([email protected]) for quick response.

  • Proxy to JDBC Update

    Hi Friends,
    I have a issue in proxy to JDBC update. there are onley 4 fileds to be inserted  into table..
    And before inserting the fileds into table i need to check whether the fields are there or not if not insert if they are then update,, i need to check all the four fields. for this..
    Any way to solve this kind of issue..
    Regards
    Vijay

    But what is the need of it?
    In both cases you have to perform some action on database.
    1. If records are there then Update
    2.If records are not present then Insert.
    So if even you check the records prior to sending it to database....you have to do the same(Inster or Update) and UPDATE_INSERT is possible with JDBC rec. adapter.
    Then why you need to check it? Is there any business logic behind it? Or you it was jut for practive purpose?
    Thanks
    Farooq

  • Sender ABAP Synchronous proxy -- PI -- JDBC sync scenario pls!!

    Hi Guys,
    Can any one help to find one sample scenario like ABAP Proxy --> PI --> JDBC Sync call ? Sync ABAP proxy sample code any 2 or more filelds going from ABAP proxy and maps on JDBC sync request, up date target side SQL server database tables, in case if any error happens error/success message must go back to SAP one Z table with response.
    Any help would be really great!!
    Many thanks in advance
    San

    up date target side SQL server database tables, in case if any error happens error/success message must go back to SAP
    one Z table with response.
    When you do an update you can get back the number of rows updated in the JDBC response....you can find this in the help page showing JDBC structure. If you are looking for any other response then probably the message needs to be genarated by PI itself after checking the response from JDBC.
    Regards,
    Abhishek.

  • ABAP Mapping for Error handling in Proxy to JDBC

    Hi All,
    I am working on a proxy to jdbc scenario in which we have to throw validation errors to NWPM(Net Weaver Process Monitor Tool)
    I am following the below steps,
    step 1 - In message mapping a UDF is created to catch errors and store them in a variable using  dynamic configuration
    step 2 - writing abap mapping for handling this thrown exception and im reading the dynamic configuration in the abap class and raising exception. The exception format expected is
    SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
      <SAP:P1>ZPI_THROW_EXCEPTION</SAP:P1>
      <SAP:P2>001</SAP:P2/>
      <SAP:P3>Mandatory field is missing[BUKRS] </SAP:P3>
       <SAP:AdditionalText />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have written the following ABAP code to achieve this:
    method IF_MAPPING~EXECUTE.
      DATA l_record type mpp_dynamic.
    DATA error type String.
    getting dynamic configuration value
    filled in by any previous mapping
    CALL METHOD DYNAMIC_CONFIGURATION->GET_RECORD
      EXPORTING
        NAMESPACE = 'http://sap.com/xi/XI/System/ERROR'
        NAME      = 'ERROR'
      RECEIVING
        RECORD    = l_record.
    error = l_record-value.
    *raising exception with our message
    RAISE EXCEPTION TYPE CX_MAPPING_FAULT
      EXPORTING
       TEXTID =
       PREVIOUS =
        ERROR_CODE = '001'
        ERROR_TEXT = error .
    RAISE EXCEPTION TYPE CX_MAPPING_FAULT
      EXPORTING
       TEXTID =
       PREVIOUS =
        ERROR_CODE = '003'
        ERROR_TEXT = error .
    endmethod.
    I am gettign the following message for our code:
    SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Could you please help in finding the solution for getting currect error message from ABAP class?
    Edited by: SwethaC on Jan 21, 2011 8:18 AM

    The error is due to RFC Call fail from PI system to your ECC Application System.
    Check your RFC Destination for ECC System type 3 in PI System.
    When you are receiving data from ECC System using Proxies & again you are going to ECC System for Validation.
    Why you are not doing this validation on ECC System only in your proxy code ?
    In your proxy code, it will be much better for performance to check your data there on same system.

  • No response message in Proxy to JDBC synchronous scenario

    Dear Team,
    I am working on synchronous scenario Sender ABAP proxy <===> SAP PI 7.31 <===> Oracle Database.All the necessary proxy configuration has been successfully tested.
    Business Scenario:
    ABAP proxy will send a single Vendor Id to Oracle DB as request and in return , it has to retrieve all the columns related to Vendor as response.Oracle Database stores all the Vendor information.There are 11 columns including the vendor Id in the view for the Vendor records.
    Design :
    For Request structure:
    a-->Created MT for Sender ABAP Proxy with only 1 field for Vendor Id.
    b-->Created MT for Receiver JDBC  with Action as SELECT , Table with "View Name" , Access with Constant Blank for all 11 column and Key as Vendor Id.
    I have been following  the link and Bhavesh Kantilal document.
    http://help.sap.com/saphelp_nw73/helpdata/en/44/7b7171fde93673e10000000a114a6b/content.htm?frameset=/en/44/7b7855fde93673e10000000a114a6b/f
    rameset.htm&current_toc=/en/ca/b977f1c7814201954f20bb87ad7aab/plain.htm&node_id=71
    For Response structure:
    Created MT for Receiver JDBC with All the column names.
    Created MT for target ABAP ECC with the same 11 column name of JDBC response.
    Note :
    1.Database team shared a excel file as a sample payload which has all the column names of a vendor and I created my DT with the same naming conventions as they are maintaining in their database i.e. Column names are in CAPs, in the same order and even the special characters in the column name.
    2. The PING test connection for Cc works fine to database.
    Please read out my queries as the I am not receiving any response from Oracle DB and gives error as timeout exception:
    1.Since I am trying to retrieve all the column of the view , am I doing the correct procedure of putting all the column name in the JDBC request structure and making a Select statement. Can I add < * > to fetch all the column name and if so where can I add it.
    2. Whats the difference between SELECT and SQL_QUERY and on what circumstances I can add it?
    3. How can I test ICO in ID?
    4. Can I use any SOAP tool to test the messages? Is there any functionality in NWA to test the messages directly to JDBC .
    Hope all your inputs can improve my design part.
    Regards
    Rebecca

    Hi Rebecca,
    Did you go through all of these links below?
    PROXY to JDBC- SYNC
    Proxy to JDBC Sync, with Idoc Receiver
    JDBC to PROXY Sync Scenario | SCN
    JBDC Receiver Insert Statement Response
    Re: Synchronous JDBC select
    receiver JDBC structure
    Regards,
    Jannus Botha

  • An error Handling in Asynchronous Proxy to JDBC Scenario?

    Hey,
    In my scenario, we'll send data from erp to third-party database.
    If it occurred an error while saving the data to database, I want to manage that error in ERP.
    Is it possible to make this scenario with asynchronous proxy to JDBC?
    If it was possible, how should do I?
    Thank you,

    Also
    go thru the following thread (Similar problem discussed)
    Re: RFC to JDBC response
    regards
    krishna

  • Proxy to JDBC- Array mapping

    Hi,
    In my scenario Proxy to JDBC - synchronous call.
    In the receiver side using JDBC adapter a stored procedure is invoked and that returns some values say... IndentNumber,EmployeeNumber and ResumeNumbers (Which is array type.), Status(which is again array) -- ResumeNumbers may have multiple resume numbers and status has status flag corresponding to each resume.
    How do I go about this in XI mapping.
    Please guide me on this.
    Regards,
    chem
    Edited by: Chemmanz on Mar 15, 2008 3:39 PM

    Hi,
    For this you need to make the occurance of the proxy structure as 1...unbounded.
    If the fields have to mapped then make the Unbouded occurance and map it as it is.
    OR for mulitple records....
    For e.g.
    Your JDBC side structure will be as
    <root>
    <StatementName5>
    <storedProcedureName action=” EXECUTE”>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=”true”] [isOutput=true] type=SQLDatatype>IndentNumber</param1>
    </storedProcedureName > 
      </StatementName5>
    </root>
    Here make the occurance of IndentNumber as Unbounded so you will get whole array.
    Now On Proxy side make the related structure and try to map the any one internal field i.e. array to root node
    i.e. if proxy structure is
    <root>
    <IndentNumber></IndentNumber>
    </root>
    Then map JDBC response field IndentNumber -
    > Root
    This will create the multiple records for proxy.
    Then all fields map as one to one mapping
    IndentNumber (JDBC)->splitByValue>IndentNumber (Proxy)
    Thnaks
    Swarup

  • ABAP Proxy to JDBC syncronous method

    Hi Experts,
    I am very new to ABAP Proxy to JDBC syncronous method.
    I have used 4 DT, 4 MT, 2 MI, 2 MM and 1 IM.
    I have used reference from
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3928. [original link is broken] [original link is broken]
    My question is in Integration Directory how many sender agrement, receiver agrement, receiver determination and interface determination should i use?
    Is my above DT , MT , MI , MM and IM is correct?
    I am not using any BPM.
    Thank you in advanced.
    regards,
    S.Saravannan

    mrsaravannan wrote:
    > My question is in Integration Directory how many sender agrement, receiver agrement, receiver determination and interface determination should i use?
    for a Sync sceanrio, you will create
    1 RD
    1 ID
    1 SA (since its a ABAP proxy call this is optional)
    1 RA
    >
    > Is my above DT , MT , MI , MM and IM is correct?
    Yes

  • BPM flow Proxy to File and then Acknowledgement back to Proxy or JDBC.

    hi All,
    I have to create an BPM scnario to get acknowledgement from receiver file adapter.
    Steps created in BPM are:
    receive -> send (Transport Acknowledgement is selected) as per blog /people/michal.krawczyk2/blog/2006/06/22/xi-playing-with-the-file-adapters-acknowledgments
    Now what i want to do is whenever any type of acknowledgement is obtained i need to send success or failure message to proxy or JDBC(have alreay seen how to request for acknowledgements through client proxy).
    What i need to do in order to achieve this scenario?
    Thanks,
    Mayank

    hi,
    If we are getting exception for some reason and error text as visible in moni  for example is:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while retrieving an FTP connection from the connection pool: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Connection timed out: connect</SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
    Is it possible to capture Additional Text somewhere in BPM, so that in case if deadline limit is exceeded we can send exception text back to the sender?
    thanks.

  • Proxy to JDBC Synchronus with ccBPM

    Hi  Experts,
    my scenario is : Proxy to JDBC Synchronus with ccBPM
    we are fetting data from ECC to PI and same data inserting into DataBase Table Name : ABC  via JDBC
    after 2 mins i need to get same data from DataBase Table Name : ABC  and sending back to ECC with ccBPM.
    what are BPM steps required for this requirement and i need to handle the exception handling with control step also.
    Table name is same Table Name : ABC in DataBase for request data and response data.
    Please anybody help me on this requirement, i am new to BPM scenarios.
    Thanks,
    Aadi

    Hi,
    Have you checked the JDBC XML request?, you need to check that the XML has all the company codes in the SELECT.
    Regards.

  • JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..

    JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
    I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
    Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
    at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Code is as follow for reference
    import oracle.jdbc.driver.*;
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
    eNVIRONMENT VARIABLES set are as follows:
    classpath
    C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
    JAVA_HOME
    C:\Program Files\Java\jdk1.5.0_04
    PATH
    C:\Program Files\Java\jdk1.5.0_04\bin
    ORACLE_HOME
    D:\Oracle11\product\11.2.0\client_1\BIN

    Apr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
         at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

  • Just three small issue...

    Hello All,
    Well after a few months of delay (First me damaging the bois chip then me burning out the motherboard) I finally got my computer up and running. I do have some small issues that I hope someone may be able to help me with.
    1.   When I shut down the computer it restarts itself. The only way I can shut it down is to hit the power button in the back of the case.
    2.   When I do attempt to shut down the computer and it restart on it’s own I get no video. It also gives three long beeps. Now please understand that the video card works fine when the computer is on or when I do a manual restart. This only happens when I try to shut down the computer.
    3.   When I try to use the RAID by plugging up two hard drives the computer well get stuck at the screen where it read the array configuration.  The configuration can be correct with the RAID set for stripe two (WD 13GB and a WD 7GB hard drive) Western Digital hard drive’s.
    Any type of help would be great. Here are the specs to my computer.
    KT3 Ultra2-R
    AMD 2100+ XP
    512MD DDRAM
    WD 20GB
    Goldstar 40x12x40
    Acer 52x CD-Rom
    Jaton Geforce 2 MX/MX 400

    wd also have funny jumperless master with no slave setting
    normal master only if it has a slave
    why raid none matching drives
    a stripe will only be 2x smallest and a mirror size of the smallest

  • PROXY TO JDBC scenario

    Hi All,
    I am working on PROXY to JDBC scenario upto yesterday its working fine.
    Today I, am getting "Time limit exceeded" error in QRFC monitoring  and message showing with GREEN COLOUR FLAG (RECORDE) in PI SXMB_MONI.
    Please help me to salvoes this error.
    Thanks and Regards,
    MFH

    Hi All,
    First of all thanks for all your early replays....
    "TIME LIMIT EXCEEDED" QRFC Problem is indicates that when we processing large volume of messages to external or internal systems in this case specified time limit in SM59 is not enough to process the message so that please increase TIMEOUTS...TIME LIMIT EXCEEDED error will be solved.
    With Regards,
    MFH

Maybe you are looking for

  • Deploying a Web Application in a Cluster

    When accessing our web app through a cluster, the weblogic servers fail to recognize the servlets as registered in the web.xml file, but recognize them fine when registered in the cluster's weblogic.properties file. We had previously tested the app i

  • "Setup could not detect................

    ..............any Sound Blaster Audigy 2ZS on your system."?Just installed this card in my Dell 8400. Windows detects new hardware, I cancel out, and run the SB installation disc. It says "setup could not detect blah blah blah". I was runninig with o

  • Cost of a license????

    I'm trying to figure out how much it would cost for a license of Oracle 8i Enterprise edition. I have a 1 processor pentium 300 pc with a(n) Apache webserver on it. I would like to use Oracle 8i to connect with my webserver. How much does a license c

  • Pre-requisite to generate procurement proposals

    Hi, Pls advise what are the pre-requisite to generate procurement proposals in mdbt for any material? if we define material master, bom, routing and sales order, whether it will generate proposals? pls advise.

  • Need help - Safari crashes on opening after 104.11 install

    I've just installed 10.4.11 which includes an upgrade to safari 3.04. Now safari crashes on opening. I've removed downloads and history.plist but the problem persists. A previous contributor has described the same problem and he's provided the error