JDBC TO RFC SCENARIO

Hi,
I am tryiing JDBC TO RFC SCEANRIO.
XI is picking data from MS SEQUEL SERVER but
the same data is not getting mapped into RFC
  I am not getting any error as such.
Following are the details.
made a datatype
resultset
     row
     EmployeeID
     LastName
     FirstName
message mappping
                                RFCFORJDBC
     resultset                      outab
            row                        item
              EmployeeID----
Empno
              FirstName
                           concatenate--- Empname
              Lastname
    But for some odd reason
    the OUTTAB FOR RFC
     is coming like this in message
      <?xml version="1.0" encoding="UTF-8" ?>
- <p3:ZZTESTXIJDBC xmlns:p3="urn:sap-com:document:sap:rfc:functions">
  <OUTAB />
  </p3:ZZTESTXIJDBC>
while payload is getting picked correctly
<?xml version="1.0" encoding="utf-8" ?>
- <resultset>
- <row>
  <EmployeeID>9</EmployeeID>
  <FirstName>Anne</FirstName>
  <LastName>Dodsworth</LastName>
  </row>
  </resultset>
Kindl help with the same

Hi,
t' was namespace.
It solved issue.
Besides
the sql statement
select EmployeeID , FirstName ,LastName from Employees where EmployeeID > 7
and the output is
<?xml version="1.0" encoding="UTF-8" ?>
- <p3:ZZTESTXIJDBC xmlns:p3="urn:sap-com:document:sap:rfc:functions">
- <OUTAB>
- <item>
  <EMPNO>8</EMPNO>
  <EMPNAME>Laura Callahan</EMPNAME>
  </item>
- <item>
  <EMPNO>9</EMPNO>
  <EMPNAME>Anne Dodsworth</EMPNAME>
  </item>
  </OUTAB>
  </p3:ZZTESTXIJDBC>
but I see only one record is getting updated
<EMPNO>9</EMPNO>
  <EMPNAME>Anne Dodsworth</EMPNAME>
what could be the reason for that

Similar Messages

  • JDBC to RFC  Scenario large data

    Hi,
    I have jdbc to rfc scenario. I have no problem with the small size data (about 10 mb ). if resultset is very large ( about 80 -120 mb ) , i received resultset and proceess it  but when PI try to send these data to RFC it stucks status Scheduled in sxmb_moni , and in rwb is  to be delivered and doesn't send to rfc.
    What can i do ?

    Since you are using JDBC as sender, I would think you query from the sender and resultset is mapped to RFC for the target system. PI  gives optimum performance upto 5 mb message size. YOur message size is pretty big.
    Suggestion:
    A) Make a minor change and do the query to result less records.
    Example: Select Fields from tablename where rownum < 500    and
                   in update statement set flag = true for the read records so that next time you will not reread those old records again and every time you query only for 500 or  300 or your desired number records and keep the  mesg size always constant irrespective of data available.
    Hope that helps.

  • JDBC-XI-RFC Scenario

    Hi all,
    Our XI Server is on linux platform and i put TRANS.mdb database file of MS Access on this machine.so for this scenario, i follow below blog.
    /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    so according to this & requirement in sender JDBC adapter parameters.
    JDBC Driver: <b>sun.jdbc.odbc.JdbcOdbcDriver</b>
    Connection: <b>jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//edb/TRANS.mdb</b>
    But in Communication Channel monitoring ....ERROR message that is
    <b>Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (.mdb)};DBQ=//edb/TRANS.mdb' using the JDBC driver 'sun.jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:Driver={Microsoft Access Driver (.mdb)};DBQ=//edb/TRANS.mdb': SQLException: [unixODBC][Driver Manager]Data source name not found, and no default driver specified'</b>
    so Shall we need unixODBC Driver for XI server of Linux platform?
    I downloaded this unixODBC driver form http://www.unixodbc.org/
    I try to install it but Error is same.
    so tell me, How can i configure & Deploy it on XI Server???
    Please give document & require points for deploy unixODBC Driver on XI server.
    Regards,
    Umesh Laxkar

    Hi,
             Thanks for u'r responces,
    but I am getting <b>RED Status in Sender JDBC Adapter.</b>
    so here, I develop a java program of JDBC Connection for MS Access. This program is <b>working</b> File.
    In this program, I use below statemants.
    <i><b>Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:employee_data";
    Connection con = DriverManager.getConnection(url," "," ");</b></i>
    One think more, MS Access Database is on different machine<b>(IP Address= 192.168.100.xxx)</b> rather than on XI Server<b>(IP Address= 192.168.100.yyy)</b>.
    so Please tell me, about our sender JDBC Adapter that what parameter i have to pass?<b>
    1. JDBC Driver,
    2. Connection and
    3. Shall i have to install FTP server on 192.168.100.xxx machine?
    ??</b>
    Please guide me......I need u'r Inputs.
    Regards,
    Umesh Laxkar

  • JDBC 2 RFC Scenario

    Hi Experts,
       I have a scenrio JDBC -PI7.1- RFC syn. I got a table in JDBC . First i have to read the table and responce i need to update back to same table..
    Jdbc table:
    H     Delivery no  stutus  cust  addre    XX     XXXXX   XX  XXXXX
    D     Delivery no     XXXX   XXX     XXXX   10     materail1  10  100.00
    D     Delivery no     XXXX   XXX   XXXX    20     material2  20  200.00
    D     Delivery no     XXXX    XXX   XXXX    30     maserial3  3   300.00
    H
    D
    D
    H :header D: details  XX: empty space
    If the table is like that. How can i create sturucture in PI as source side ?
    What are the steps need to follow for RFC to JDBC syn scenrio ?
    Note : In the table H D D ,like that repeating headers and items
    Do you recomend , change request from oracle structure ?
    Regards,
    vasu
    Edited by: vasudeva gembali on Sep 22, 2010 4:51 AM
    Edited by: vasudeva gembali on Sep 22, 2010 4:54 AM
    Edited by: vasudeva gembali on Sep 22, 2010 4:55 AM

    Hi Sateesh,
    These are the colum fields.
    DELIVERY_ID             VARCHAR2(40)     H/D     Delivery Number
    FLAG_STATUS  
    CUSTOMER_NO             VARCHAR2(30)     H     Customer Number
    SAP_CUSTOMER_NO             VARCHAR2(30)     H     SAP Customer Number from Attribute 8
    SHIP_TO_NO             VARCHAR2(30)     H     Ship to number
    SHIP_TO_ADDRESS1     VARCHAR2(240)     H     Ship to address 1
    SHIP_TO_ADDRESS2     VARCHAR2(240)     H     Ship to address 2
    SHIP_TO_ADDRESS3     VARCHAR2(240)     H     Ship to address 3
    SHIP_TO_ADDRESS4     VARCHAR2(240)     H     Ship to address 4
    SHIP_TO_CITY             VARCHAR2(60)     H     Ship to city
    SHIP_TO_POSTALCODE     VARCHAR2(60)     H     Ship to postal code
    LINE_ITEM             VARCHAR2(6)     D     LINE ITEM NUMBER
    INVENTORY_ORG             VARCHAR2(10)     D     Default u2018DS1u2019  u2018DRS2u2019
    CUST_ITEM_CODE             VARCHAR2(40)     D     Customer Item code
    GF_ITEM_CODE             VARHCAR2(40)     D     Internal Item code
    ITEM_DESCRIPTION     VARCHAR2(240)     D     Item Description
    PLAN_ISSUE_DATE             DATE             D     Schedule Shipment Date
    QUANTITY             NUMBER???     D     Shipment quantity
    UOM                     VARCHAR2(3)     D     Unit of Measure

  • Removing ABAP dump when JDBC is down in RFC- JDBC- RFC scenario

    Hi All,
    I need help to build one scenario.
    I am working on RFC->XI->JDBC->XI->RFC scenario. It is working fine.
    But problem is that whenever JDBC server is down RFC is giving ABAP dump in SAP. How can i Remove ABAP dump in SAP and give information to RFC that "JDBC is out of order"
    Is it possible to implement without BPM, then How?
    If not possible then what could be the steps of BPM?
    Thanks & Regards

    Rohan,
    1.Recive Step should open the Synch - Asynch Bridge
    2. Block Step --> Send Synchronous inside this step with an Exception Hanler.
    3. Now in the exception ahndler step, do the necessary error handling requirement.
    4. Send Step --> closes Synch Asynch bridge.
    My question is what data do you want to send back to the RFC if the DB is down? This data should be populated inside the exception handling block and then this data should be mapped to the corresponding RFC response and used in the step 4.
    Regards,
    Bhavesh

  • Can you explain steps in the Async and Sync scenarios JDBC to RFC.

    Hi,
    Can you explain some basic steps in the Async and Sync scenarios for sending data from JDBC to RFC.
    Like,
    The data is picked up from the  database table through JDBC adapter.
    It is passed on to SAP  by calling the RFC. RFC gets executed         
    successfully. The status is returned by the RFC. The status needs to be
    updated back into the SQL database table.
    Is this a sync case or async case.
    What si the diffrences in the sync and async scenarios in the above JDBC to RFC scenarios.
    Soorya

    hi check the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
    JDBC Synchronous call using BPM  
    Data Types -
    1) File Input
    2) JDBC Req
    3) JDBC Response
    4) File Response of similar type of JDBC Response.. ( This you can avoid also..let it be for first time)
    Message Types
    4 for each data type
    Message Interfaces
    1) Async, Outbound, Interface, to receieve the file
    2) Async, Inbound , Interface to send the file from XI
    3) Async, Absract , Interface of type File message type to recieve the message in the BPM
    4) Sync, Abstract Interface with Req message type as File Request, and Response Message type as a file Response
    5) Sync , Inbound interface for JDBC with Input message type as a JDBC Request and Output Message type as a JDBC Response
    Message Mapping:
    1)Mapping between File Req to the JDBC req
    2) JDBC Response to File Response
    Interface mapping:
    1) Sender Interface as a Sync,Abstract Interface created for the file type and target interface as Synchrnous JDBC interface.
    Use corresponding mapping for Req and Resp..
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • RFC- XI- JDBC- XI- RFC

    Hi All,
    Can we do RFC->XI->JDBC->XI->RFC scenario without BPM?
    In this SAP-RFC executed with SELECT and Table name
    And SAP-RFC expect data from JDBC connection.
    If not then what could be the expected steps of BPM?
    Regards

    Hi,
    Are you talking about a Sync call. I mean are the Sender and Receiver RFC are the same. If it is a Sync step you can do without a BPM.
    Like RFC will initiate the process the XI and the the data is selected from JDBC and the response is given back to RFC.
    If the above is not the case you can avoide using BPM by having to separate scenarios.
    1. Scenario 1 RFC --> XI --> JDBC
    2. Scenario 2 JDBC --> XI --> RFC
    If there are some dependencies or due to some constraints if you need to use BPM then you will have the steps like
    Receiver Async(RFC)Send Sync(JDBC)Send Async(RFC)
    Thanks,
    Prakash

  • JDBC to RFC data is not showing in RFC palyoad

    Hi,
    I am doing JDBC to RFC scenario. I configured the scenario while i executed the scenario JDBC communication chennal i can see the payload and its picked the data orom Oracle.
    when i check in SXMB_MONI message showing scucess and request for message mapping i can't see any data in payload.
    I am tried to use the Test coniguration and its showing success and its connected to RFC but while running the scenario the data is not in payload.
    RFC communication chennal also showing green and when i click the message in payload i could't see any data.
    Pls help me on this
    Thanks,
    Venkat

    Hi,
    I have checked the sxmb_adm the Logging=1 and server restarted even the same msg.
    I have checked the runtime workbench the msg showing success and when i click the details the payload is empty.
    I have tested the scenario through ID with mapping
    this is the payload from SXMB_MONI
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:mt_bc_tran_sender xmlns:ns="http://testxi.com/oracle/test">
    - <row>
      <SET_ID>6</SET_ID>
      </row>
      </ns:mt_bc_tran_sender>
    Request message mapping
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:_-BIC_-CQZOMD_ZL00004000 xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
    - <DATA>
    -   </item>
      </DATA>
      </ns1:_-BIC_-CQZOMD_ZL00004000>
    I have tested in message mapping and Interface mapping its working fine
    Thanks,
    Venkat.

  • MessageExpiredException error in JDBC - RFC scenario using BPM.

    <b>Scenario:</b> JDBC( Asynch)- RFC( Synch)- JDBC (Asyc)
          We are using XI to read oracle table records to insert the records in R/3 and after the insert in R/3 we return a sap code to update in oracle db.
    When we try to process 10 or less rows from db, the process is successfully running, but when we try processing more records we are getting the following error. We tried increase the timeout setting in RFC adapter as per the SAP note and forum. 
    <u>Detailed error: </u>
    <b>com.sap.aii.af.ra.ms.api.MessageExpiredException: Message 443jdjsd-e432-2ec8-e100-000046eb2e5f(INBOUND) expired.</b>
    If I use correlation in asynchronous RFC instead of synchronous RFC, will this solve the problem or is there any better solution for this ?
    Any useful steps to change the synchronous RFC to asynchronous RFC in BPM would be great.
    Thanks
    Steve

    Hi,
    <i>1. Any suggestions to meet this requirement in XI ?</i>
    >>>One option is using ABAP Proxy . Instead of calling Sync. RFC, call synchronous Proxy. So your client proxy, should receive all 200-300 rows at a time, and inside the proxy, and call the RFC. Once all the reocrds are processed, send the response back to BPM
    You can try out this.
    I think, probably you may require to do looping for each Row.i.e For each row the call the RFC.. As of now try to go with Proxy.
    Also try to findout, why the RFC is taking that much of time.. So check for the provision of  tuning in the RFC side..
    Hope this helps,
    regards,
    Moorthy
    Message was edited by: Krishna Moorthy P

  • JDBC to RFC synchronous scenario (Urgent).

    Dear forum,
    My requirement is data is populated in oracle data base.we are fecthing the data from database through XI and sending it to R/3. RFC is sending the response (suceess/failure) to XI. And XI is updating the status message into database.
    For this,I have done the JDBC - RFC - JDBC syncronous scenario using BPM. .I got the successfull message under message monitering.Problem is I cannot able to find the data for RFC and JDBC reciever.
    Please find the following Configuration steps for the above scenario
    3 data types
    JDBC request, JDBC response one dummy structure to capture RFC response messages.
    3 message types for the above data types
    5 message interfaces.
    OB request,
    OB ABS request,
    IB Asyn for dummy,
    Syn ABS (JDBC req and dummy structure),
    IB JDBC response.
    4 message mappings.
    Mapping between JDBC request to JDBC request dummy.
    Mapping between JDBC request dummy to RFC request.
    Mapping between RFC response to JDBC response dummy.
    Mapping between JDBC response dummy to JDBC response.
    3 Interface Mappings.
    JDBC request to JDBC request dummy.
    JDBC request dummy to RFC request and RFC response to JDBC dummy response(Synchronous request and responce) .
    JDBC dummy response to JDBC response.
    Integration Process.
    Used following steps.
    Recieve step asynchronous -> Send synchronous -> Send asynchronous
    I can able to see the payload for sender under communication channel.But the data is not reached to RFC.can any one help me to come out of this problem.
    Points will be awarded for helpfull answers.
    Thanks & Regards,
    Naresh.K

    Hi Seshagiri,
    We are trying the same scenario with out using BPM.
    Following steps has been done in design(IR).
    2 data types for JDBC request & JDBC response.
    2 message types for the above data types.
    1 outbound synchronous message Interface.
    2 message mappings (JDBC request -> RFC request) and (RFC response -> JDBC  response)
    1 Interface Mapping.
    Could you please let me know how to maintain the collaborative profiles & and agreement details in Configuration(ID).
    Your valuable assistence is required to complete the interface.
    Thanks in advance.
    Kind Regards,
    Naresh.K

  • RFC to JDBC(Insert) async scenario

    Hi Experts,
    In RFC to JDBC(Insert) async scenario  we are getting the the response from JDBC as <insert_count>1</insert_count> after inserting in to DB . Is there any way to stop getting response?
    Regards,
    Raj

    <insert_count>1</insert_count>
    Firstly this is not an error but an acknowledgement from the JDBC that the Insert for the corresponding Statement node is successful. The count 1 represents that you have made just one Insert-Statement call to the JDBC......had there been no Insert in the DB then you could have got 0 insetad of 1.
    Normally happens when the sender requests for an acknowledgement. Don have knowledge on the ABAP-front so cant comment on the blog given by Prateek, but seems that because of the sync nature of RFC you are getting this ack from JDBC...
    Regards,
    Abhishek.

  • Jdbc to rfc to jdbc scenario is not working

    Hi...
    We have done the JDBC to RFC to JDBC scenario using BPM, it was working fine in the last month. now we started testing the same scenario, that is not working. In SXMB_MONI it is showing only sender data is successful, it is not showing any RFC Receiver data & Jdbc Receiver data. in the CCM also Jdbc Sender CC is showing successfull and it is showing the successful messages also, but in RFC Receiver CC
    & JDBC Receiver CC it is not showing any thing.
    please help on this...
    Regards,
    Pasi.

    Hi
    Check u r RFC response (put external break point)
    and check wether it has data
    rgds
    srini

  • JDBC(using stored procedure) to RFC Scenario

    Hi
    I am doing JDBC(using stored procedure) to RFC Scenario
    While running the scenario i am getting the following error
    Database-level error reported by JDBC driver while executing statement 'EXECUTE EMU.EXTRACTRECON'. The JDBC driver returned the following error message: 'com.ibm.db2.jcc.a.SqlException: [ibm][db2][jcc][10100][10910] java.sql.Statement.executeQuery() was called but no result set was returned. Use java.sql.Statement.executeUpdate() for non-queries.'. For details, contact your database server vendor.
    Can anybody sortout my problem
    Regards
    sunilreddy

    Hi,
    i am doing the scenario file to rfc scenario.
    when i run my scenario xi system is picking the data from file system
    but rfc is not accepting the data.this is the error i am getting
    Delivery of the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Exception thrown in method process. The transaction is marked for rollback.: com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception thrown in method process. The transaction is marked for rollback..
    so please any one give me the solution for that

  • Help on RFC to JDBC and JDBC to RFC

    Help on RFC to JDBC and JDBC to RFC
    Hi Gurus
    I have the scenario where an RFC will be triggered in SAP , to write to a DB2 database and insert new records in a table
    and vice versa the JDBC has to read som data from a table based on a primary key, mark them as read for not be read next time and send the data to an RFC where a table in SAP will be updated.
    I have never worked with JDBC before , pls advice.
    is there any new issue to consider in PI 7.0 regarding JDBC
    Thanks.

    The requirement looks standard,
    SEARCH IN SDN FOR JDBC scenarios,you will find many docs for sender as well as Receiver.
    >
    > is there any new issue to consider in PI 7.0 regarding JDBC
    >
    no issue with PI7.0.
    Regards,
    Raj

  • 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>

Maybe you are looking for

  • Mail Wont Open at all! "Mail closed unexpectedly"

    Hi, Restarted my Macbook after a preferences error and for some reason I cannot open mail. When I click the applications icon in the dock a box appears in the centre of my screen telling me that "Mail closed unexpectedly". It gives me the option to '

  • RE-CONNECTING email to my pearl (same account, different password)

    Hi-- I recently changed passwords on my personal email account also connected to my blackberry. The phone automatically disconnected my email as the password was invalid. I want to re-connect but have been unable. I click the email appliation and scr

  • BAPI_PO_CHANGE not updating existing condition type value.

    Hi, I am using 'BAPI_PO_CHANGE' to update the existing condition records.           MOVE-CORRESPONDING wa_pocond_40 TO gt_pocond_40.           gt_pocond_40-change_id = 'U'.           gt_pocond_40-cond_value = '20'.           gt_pocondx_40-itm_number

  • Cloning a macbook pro

    Hi Mac guru's. Our company is making a switch to macbook pros. We'll installing them with Parallels w/ Windows 7, FCP studio, Adobe ect... Weve ordered a very large number of theses laptops. Is there a way, once weve completely loaded one in full to

  • Problem over printing Vietnamese characters

    Hi, We installed the Vietnamese language. The Vietnamese charcaters can be displayed properly. But we encountered error over printing Vietnamese characters. The Vietnamese charcaters cannot be displayed properly. What device type settings is needed f