JDBC to Proxy scenario

Hi,
Hope you are doing well.
I have a scenario where I need to fetch the data from an Oracle table and pass them on to SAP via proxy. Since, the data to be extracted from the Oracle db is huge, I want to call a stored procedure to fetch the data, and then pass them on in batches of say 100 records at a time to XI. To do this,I believe the stored procedure has to trigger the interface in XI.
I have seen a few blogs stating that a sender JDBC adapter cannot interact with a stored procedure since the latter provides the data in a cursor whereas XI needs the data in record sets.
Then how can I achive my objective? Please provide me some ideas.
regards
Debansu

Bhaskar,
Thanks.
A huge amount of data needs to be fetched from the database (for example say 100000 records). My plan was to use the stored procedure to trigger the XI interface and send the fetched data in batches (say 100 records per batch). How am I going to do this without using a stored procedure? Am I going to use fetch all the data using select statements in XI and then chunk it into messages using UDF in XI? Is there a better way to achieve this? Please suggest.
regards
Debansu

Similar Messages

  • Database error for JDBC to Proxy Scenario

    Hello SAP PI Gurus, 
    I am having a JDBC to Proxy Scenario .And the interface is running at 10 min of duration. 
    However, my other interface are running fine with the same details.
    But for this interface, it giving the belwo error :
    Database-level error reported by JDBC driver
    while executing statement 'call proc_dtdc_prod_summary'.
    The JDBC driver returned the following error message: '
    com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table
    'dtdc_prod_summary_temp' already exists'. For details,
    contact your database server vendor.
    So increased the time from 10 min to 20 min to 30 min. But the erro remians.
    So pls look into this and give your suggestion.
    Regards,
    Ravi

    Hi Ravi,
    Please check execution of your stored procedure is resulting with creation of Table : dtdc_prod_summary_temp.
    Modify your stored procedure to just fetch records or insert records in the existing table. Or change the code to Create a table 'dtdc_prod_summary_temp only if it doesn't exits in the Table data base.
    Regards
    Praveen K

  • JDBC To Proxy Scenario Problem

    Dear All,
    I am doing JDBC to Proxy scenario. In SXMB_MONI in XI Message is sucessful and JDBC Adaptor fetching records also. These records are seen in SXMB_MONI.
    When I check in SXI_MONOTOR in R/3 , message is sucessful, but payload is Blank. The selected records in JDBC are not reaching R/3 . What may be the problem
    Raghvendra

    Check the mapping between the JDBC response and the Proxy response in XI?
    Does the JDBC response have the valid rows? If yes, check  what is the output mapping that is sent to the Proxy.
    Regards
    Bhavesh

  • Payload issue in jdbc to proxy scenario

    HI Experts,
    We have designed a new interface from jdbc to proxy where in it went fine with the design part.
    But while testing it the records are pulled by XI but were not posting to ECC.
    So when collected the payload to test in mapping I see a red color to the fields in the structure. due to which am not able to get the output in mapping.
    Can anyone help me out how to resolve this issue.
    Appreciate the quick response.
    Thanks and regards,
    Ranganath.

    Add those Extra fields in your Data type and dont map it with target.
    or
    In select stataement in sender JDBC adapter mention the fieldname you want to pick
    Suppose employee table has 3 field
    EmployeeeID,
    Employeename
    address
    but you dont want address field then write the select query like this
    Select EmployeeeID, Employeename from employee
    mention the table fieldnames in select query which you have in your mapping source structure.
    if you are write select * from employee
    then address will come as extra field and create problem in mapping
    Refer this
    http://www.java2s.com/Code/SQLServer/Select-Query/Specificcolumnnamesaredefinedinthequery.htm

  • ALE Configurations for JDBC to PROXY scenario

    Can some body tell me what are the ALE configurations that needs to be done in both the systems and also in XI system.

    Hi there
    No need for ALE confihuration unless you are using IDocs in your scenario.
    You need to configure the integration engine in the Proxy system using SXMB_ADM and create an RFC for the Integration server.
    on the JDBC side you'll need the database bridge configured in the communication chanell...
    what is your scenario specific...which system types and versions?
    Nimrod

  • Inbound Proxy Error - JDBC to PROXY Scenario

    Hi experts,
    I am getting the following error while activating Inbound Proxy.
    Error when creating service node. [unknown]You are not authorized to use function Netzwerkadministration
    Exception of class CX_SRT_WSP_ICF
    Regards,
    Sudheer

    Hi Experts,
    Thank you for your replys.....Problem got solved......:)
    Some authorisation was missing...Now it was fine and I can activate Inbound proxy......:)
    Once again Thank you for your replys.....:)
    Regards,
    Sudheer

  • IS Mapping required in JDBC to PROXY asynchronous scenario?

    Hi,
    I am working on JDBC to PROXY asynchronous scenario. The scheduled stored procedure fetches the data from database tables and stores them in staging table in the same database. XI will fetch the records via JDBC adapter. Now these records are to be posted into SAP custom table via proxy without any transformation. Now is Message mapping and Interface mapping required in this case?

    Hi
    I assume that your source and traget structure will be different as you are using JDBC.
    SO you will need to create message mapping and operation mapping.
    -Deepak.

  • Jdbc to proxy error while testing communication channel in rwb

    Hi experts,
    my scenario is JDBC to Proxy...
    while testing in communication channel i got the following error.
    26.02.2014 12:29:44.378
    Error
    SOAP: Call failed: com.sap.aii.af.sdk.xi.srt.BubbleException: HTTP Response Received. Status Code = 500 [null "null"]
    26.02.2014 12:29:44.384
    Error
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: HTTP Response Received. Status Code = 500 [null "null"]
    26.02.2014 12:29:44.384
    Error
    SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: HTTP Response Received. Status Code = 500 [null "null"]
    Based on the above error please tell me where is the fault in my scenario
    Thanks & Regards
    E. Ravichandra Reddy

    Hi,
    could you check if the below thread helps you
    http://scn.sap.com/thread/3184803
    http://scn.sap.com/thread/3253448
    http://scn.sap.com/thread/3413678
    Regards

  • Error while executing a JDBC to Idoc scenario : No standard agreement found

    Hello SAP PI Gurus, 
    I am having a JDBC to idoc Scenario .And the interface is running at 10 min of duration. 
    <SAP:AdditionalText>No standard agreement found for ,
    BS_EXT_CTBSREPDB, , BS_ERPQAS_QE1_320, http://XYZ.com/FI/FI_FI_01/Charges, FIDCC2</SAP:AdditionalText>.
    While i test the configuration...i get an error in reciever agreement as mentioned above.
    Can you pls help me in resolving this issue.
    Regards,
    Ravi

    Hi,
        I think the problem is with namespace....for IDOC the namespace will be "urn:sap-com:document:sap:idoc:messages"...but in your case it is different.....i.e http:....etc.....please check whether you 've used the same IDOC withe above mentioned namespace in all the configuration objects like interface determination, receiveragreement etc.....
    Thanks
    Priyanka

  • Deleting data from a table(JDBC to IDOC scenario).

    Hi,
    For JDBC to IDOC scenario, the requirement is as explained below:
    1: There are 2 tables-> GDDB and CHANGES
    2: Poll the CHANGES table every 30 mins everyday.
    3: a)Publish the records for which the 'published' flag status is 'N'
       b)Update the status as 'Y' after publishing.
    4: On the first day of every month, delete the records from the CHANGES table if the record is 3 months old and 'published' status is 'Y'
    I would like to know how  update and delete can be done using one JDBC adapter?
    Regards,
    Vishal.P.Kulkarni

    Hi,
    update:
    there is a field in the sender jdbc adapter - SQL statement for update - put it there
    delete - On the first day of every mont
    create a job on the database which will trigger the delete statement
    it does not/ should not have to be done with XI
    Regards,
    Michal Krawczyk

  • IDoc to JDBC  and JDBC to IDoc Scenario

    Dear All,
    I am working on IDoc to JDBC and JDBC to IDoc Scenario.
    I have to send Idoc from SAP to Non SAP system(.NET application) i almost configured in XI but still i don't know when my INTEGRATION will INVOKE how my data will proceed from IDOC to Oracle database(Through JDBC) and in case of revese how and when Data flow will start.
    Does anyone have completed STEP by STEP scenario document for this?
    How my Idoc will sent to XI?
    How XI will pick up data from IDoc?
    How XI will Convert data to JDBC and UPDATE in Oracle Database?
    And i reverse case(JDBC to IDoc) when my INTEGRATION will INVOKE?
    Where and When i can watch my process and data?
    How can i test the whole integration?
    I AM GETTING ERROR WHILE TESTING CONFIGURATION IN Integration Directory "Error while refreshing the XI runtime cache" and when i check this in SXI_CACHE  it gives me error
    "Unable to refresh cache "NO_BUSINESS_SYSTEM"
    "Error during last refresh to cache"LCR_GET_OWN_BUSINESS_SYSTEM - NO_BUSINESS_SYSTEM"
    Please solve all the above problems i will reward u points
    thanks,
    RP

    Hi,
    While we working on IDOC to JDBC interface..
    We have to deploy JDBC Drivers?
    Go through this links,
    /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1246926,00.html
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Please check the driver path as mentioned below.
    JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
    Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
    No JDBC driver required.
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    follow this thread
    Re: Problem when connecting to MS Access through JDBC Adapter.
    SAP Note 850116 has details
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Configuring the Sender JDBC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
    Configuring the Receiver JDBC Adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
    Idoc Reveiver adapter..
    http://help.sap.com/saphelp_erp2004/helpdata/en/b9/c5b13bbeb0cb37e10000000a11402f/content.htm
    Thanks,
    Satya Kumar
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Edited by: SATYA KUMAR AKKARABOYANA on May 8, 2008 5:51 PM

  • JDBC to IDOC Scenario

    Hi Experts,
              I have tried JDBC to IDOC Scenario but it is giving No Segments Found Exception. I don't know where I am doing the mistake.
           can any body please send me a pdf document for JDBC TO IDOC Scenario with step by step procedure from scratch (including creation of LS,LI etc)
    Thanks in Advance,
    Murthy

    Hi Murthy
    The steps are pretty much the same as any other scenario with some exceptions
    1: You import the IDOC structure from the R/3 System. This acts as the DT, MT and MI.
    You also need to do some configurations on the ABAP Stacks of sender and XI system.
    Sender:
    WE20 Partner Profiles
    SM59 RFC Destination
    XI:
    SM59 RFC Destination
    IDX1 Ports
    IDX2 This is the metadata repository so you wont necessarily need this.
    Also because you IDOCs can be sent directly to the ABAP stack/Integration Server you do not need a sender comm channel or sender agreement.
    The rest is pretty much as any other scenario.
    Please see the below links
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
    idoc settings /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    idoc mapping - /people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping
    Cheers..
    Vasu
    <u>** Reward Points if found useful **</u>

  • FTP to ABAP Proxy Scenario - getting error CO_TXT_CHANNEL_PASSWORD_ERROR

    We have transported PI and EP data from development server to respective production, every thing is running fine except the abap proxy scenarios i.e. PI reads file from ftp location and calls the abap proxy but we are getting following errors:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Call Adapter
      -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="OUTBINDING">CO_TXT_CHANNEL_PASSWORD_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Unable to read user password from communication channel of type Error when accessing the secure store (access ID = FD768D4A8772DB50E1000000AC10041E) Error while reading from the secure store: ERROR_UNKNOWN: Cannot find entry in secure store (SECSTORE,023)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Any solution?
    Please note that I have searched and applied solutions given on SDN forums but didn't get any success. So I am looking for new suggestions.
    Regards,
    Jawed Ali

    Jawed ,
    Please test the HTTP destination of your receiver comm channel.
    Which is the RFC connection to your R3 system.
    Transaction SM59 and check the logon parameter for the connection you are using.
    Regards,

  • EOIO is not working for file- BPM- Proxy scenario.

    Hi All,
    I have one File to BPM (Merge pattern ) to Proxy scenario.
    I have two file communication channel at the sender side and defined QOS as EOIO for both. In SXMB_MONI it assings same queue for all messages.
    BPM is merging that messages. However during that it assings different queue for merged messages.
    When it comes to proxy , again different queues are assingned to the messages.
    Is there any way I can define QOS in BPM or at the proxy side ( I know it should be at the sender side only , but it's not working..)
    Thanks & Regards,
    Dijesh Tanna.

    HI,
    Within the current release the BPM will always only use EO (SAP Note 833740).
    May be the SAP note  905049 will help you on this ...
    Thanks
    Swarup

  • Issue in Iodc- abap proxy scenario

    Hi all
    I have a idoc to abap proxy scenario. The issue is ,
    when we send the idoc to client A of target system, it works ifne.
    But when we send the saem mesage to Client B, we find a error message in sxmb_moni of Target system. the mesage is Application_fault.
    Is it because of any error in XI configuration or somethin else.

    hi all
    thanks for all your responses.
    I forgot to mention that based on a particualr field value in the idoc , it will be routed to eihter Client 100 or 200 .
    I gave the conditions in Receiver Determination.
    Same Server Proxy  is used in both the target business sytems.
    I have done all the Configuration Steps ,( Created two separate business systems also )
    Also I have checked wiht all the system settings to be made in the target system B.
    When i trigger the idoc to Client 100, it goes to XI and then reaches  Client 100 of System B
    without any problem. I get the desired result from proxy code.
    When i send the saem idoc to Client 200, it reaches the target system and routed to client 200. But getting this error message in
    the Call Inbound PRoxy step. (from sxmb_moni)
    <SAP:Category>Application</SAP:Category>
      <SAP:Code area="ABAP">APPLICATION_ERROR</SAP:Code>
    Since it reaches the target system correctly, i guess there is nothing wrong in the XI configuration side.
    But if its Application fault, how come the same data is processed successfully in one client whereas it thorws error in another.

Maybe you are looking for