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

Similar Messages

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

  • 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

  • Using JCo : IDoc to XML and XML to IDoc

    Hey guys,
    I need some guidance on Creating an xml file out of an IDoc using JCo and vice versa.
    Can anybody please provide with the code samples or any kind of documentation on this topic.
    Points will be rewarded
    +| Eleana West

    Hi,
    what you are looking for is the sapidocjco.jar. You can get if from the service marketplace and it comes with a couple of example Java code which shows how to implement it. You will also need the normal JCo jar to use the sapidocjco.jar.
    Bye,
    Sameer

  • IDOC to JMS and JMS to IDOC.

    Hi All,
       I read most of the thread and found also some good link . But failed to get the exact thing that i need to carry out for this implementation. So , i am looking forward for your valuable help to get a clear understanding on this.
    Scenerio : IDOC to JMS.
    1. What need to carry out for configuring the JMS adapter as the receiver.
       I know the configuration side from SAP[IDOC] to XI side. But dont have any idea on configuring the JMS adapter.
    2. What drivers that i need to instal on ? & how can i know which driver should i use for my scenerio ?
    3. What details do i need from the client ?
    Scenerio : JMS to IDOC.
    1. I have the same thing to configure from JMS to SAP[IDOC], SO for this what else do i need to configure?
    2. What need to carry out for configuring the JMS adapter as sender?
    Can anyone, please provide me the details on this..
    Thanks in advance.
    Jay.

    Hi,
    Check the links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c1/739c4186c2a409e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/65/52693cab05e079e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f8/24ee41c334c717e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/frameset.htm
    Thanks!

  • RFC , IDoc , XI and JDBC receiver communication channel--- Good Design

    Hi Experts,
    We have developed around 60+ interfaces on PI7.1 EHP1, in that 20 interfaces sending data to Data Base using JDBC receiver communication channel, 15 interfaces ABAP inbound proxy using XI adapter,10 Scenarios using IDoc receiver channel and 15 scenarios using RFC receiver channel.
    But I have created only one IDoc, XI , JDBC and RFC channel.
    Is it right idea/design or do I need to create more channels to handle multiple request.
    Please share your thoughts on this.
    Regards,
    JAM

    Hi,
    For XI,RFC and Idoc when it's pointing to one SAP system you don't need any further comm channels.
    For JDBC , if you are pointing to only one database you can use the same channel, if the target/databse changes you need more comm channels.
    Your Design is as per the standards.
    Regards,
    Sainath Chutke

  • File to Idoc and Jdbc

    Hi Guys,
                 Can I implement a scenario wherein the data is sent to Idoc and JDBC parallelly without using BPM?
    Regards,
    Ashish

    Ashish,
    ><i>If i add multiple recievers in receiver determination step without any condition, then how do i add multiple interface determinations in the area below?</i>
    Once you add multiple Receivers and save the same, the Receivers will be available in the Window Below and you would need to create an Interface Determination for each of these Receivers.
    As you do not have any condition, no need to add conditions.
    ><i>created seperate Receiver determinations</i>
    You would need only ONE RECEIVER DETERMINATION and this receiver determination would in turn have multiple Interface Determinations.
    Like mentioned, add multiple receivers save the Receiver Determination and in the window below, you will nopw be able to add an Interface determination for each of the receiver.
    Regards,
    Bhavesh

  • JDBC Inbound to separate IDOCS per Row instead of one single IDOC?

    Hello everyone,
    I'm currently working on the migration of our old B1iSN 8.8 scenarios to B1iSN 9.0.
    The scenario is the following: I have a SQL table with data and a separate control table where I store the date of the last run/data retrieval. My JDBC Inbound is triggered every day and the SQL Statement selects all new data between now and the last run. The process flow only consists of one transformation Atom which builds my custom idoc structure.
    In B1iSN 8.8 I've got one IDOC per row from the resultset. In the B1 9.0 outbound all rows are now withing one single IDOC. How can I trigger that separate IDOCS are created!?
    I've already tried the "Block Size" Setting. When I set it to "1" I get for two datasets two output IDOCS. However all data is in IDOC 1 and the second IDOC is empty. What is wrong here? How can I access the data in the current block? I currently use a "for each" on the normal jdbc resultset rows.
    I'm testing it at the moment with flat file output as our target system is not accessible yet, but I suppose this is not the reason?
    Thanks in advacne for any help.

    Hello André,
    please use a two-step approach with two integration scenarios:
    DB INBOUND -> VOID OUTBOUND
    INTERNAL QUEUE INBOUND -> ECC OUTBOUND
    In step one add a condtion including a for-each loop into your integration flow.
    Within this for-each please hand over for each IDoc you want to create into a second integration step via "Internal queue":
    The second step is triggered x-times via internal queue and does the field mapping into IDoc format.
    Best regards
    Bastian
    P.S.: with this approach, you can keep the block processing setting for DB INBOUND to an higher amount.

  • Idoc state 56.  jdbc to multiple idoc.

    hi,
    i have made a jdbc to multiple idoc scenario.
    i disabled so many mandatory field.
    i defined a external defination for the idoc.
    i changed occurance for "IDOC" segment.
    i can send multiple idoc successfully to ECC.
    BUT:
    I found that state 56 of the idoc with tcode we05 IN ECC.
    how should i resolve the issue?

    Hi ,
    In WE02 or WE05 you can find the details
    status 56 is Idoc with errors added , so check you scenario
    Hi,
    Just take the payload from the moni and check your mapping first ( TEST TAB)
    Regards,
    Jude
    Edited by: jude bright on Oct 21, 2009 10:49 AM

  • ALE/IDOC and RFC/BAPI Integration Scenarios with SAP DS for ESA v3

    Hi,
    we are planning two PoCs of Integration Plattforms. One of our major requirement set is SAP Integration into our existing SOA.
    Because we also have R/3 4.7 Systems in production, we are planning to test ALE/IDOC and RFC/BAPI Integration scenarios with these Integration Plattforms.
    My question is:
    We are looking for are smart solution to get a SAP Test Environment, where we can test ALE/IDOC und RFC/BAPI Integration scenarios.
    It is possible to do this with SAP DS for ESA v3 or shall we better use IDES for that purpose?
    Best regards,
    Steven

    Hi Abhishek,
      This is our scenario. We are doing an integration of SAP HR r/3 system with the CRM system. We need housing information details of the employees which we have in custom infotype 9310 in SAP HR system and we need those details in the CRM system. So am planning out for an ALE/IDOC approach for the integration and gonna  maintain the 9310 details in a custom table. In the CRM system, we gonna build a BOL layer for accessing the 9310 details. Also i'm preparing a HLD for this process. I wanna read and go through few same HLD's before i submit my proposal to my client. Please suggest me and help me out.
    Thanks in advance.
    Regards,
    Arunmozhi.

  • Problem in JDBC to JDBC scenario

    Hello all,
    I am working on a JDBC 2 JDBC Scenario.
    Everything gone fine, data is picked from source, but it is not updated in the destination.
    I could not see any message related to this in SXMB_MONI it shows only messages related to IDOC, on search I fould, we need to add trace level,etc in SXMB_ADM but still couldnot found any message (I restarted the system, cleared cache also).
    In RWB(communication channel monitoring) I could find that sender is sucessful, but no message for receiver.
    In RWB (message monitoring) I checked my business system, i could see sender entries but no receiver entries, there is only one error message as :
    <b> transmitting the message to endpoint http://xisystem:50100/sap/xi/engine?type=entry using connectio</b>
    For which I found we need to change XI businesssystem's pipeline port no from some 54+++ to 4+++ (but I could see only 50100 in the pipeline so i did'nt)
    we are using R/3, was7.0 sp11,XI3.0,
    Can any body help me in this regard
    Thanks,
    Sai.k.k

    Hi,
    Error in SXMB_MONI :
    com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_JDBC2JDBC_MM_: RuntimeException in Message-Mapping transformatio~
    Error in Integration repository when I test with the payload :
    <pre>
    13:01:52 Start of test
    Document start
    Start tag [ns0:Receiver_JDBC_MT]
    Add raw attribute [ xmlns:ns0="http://xyz.com/JDBC2JDBC_NMSP"]
    Start tag [Statement]
    Start tag [dbTable]
    Add attribute: [action]=[INSERT]
    Start tag [table]
    Put value [Example]
    Close tag [table]
    Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)com.sap.aii.utilxi.misc.api.
    BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:XML Declaration not allowed here.(:main:, row:1, col:8)
    at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157)
    at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73)
    at java.lang.Thread.run(Thread.java:534) Root Cause: com.sap.engine.lib.xml.parser.NestedSAXParserException:Fatal
    Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)(:main:, row=1, col=8) ->
    com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
    at com.sap.engine.lib.xml.parser.XMLParser.scanPI(XMLParser.java:2126)
    at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2774)
    at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2830)
    at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
    at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
    at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
    at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155)
    at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73)
    at java.lang.Thread.run(Thread.java:534) -
    at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155)
    at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73)
    at java.lang.Thread.run(Thread.java:534) Caused by: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
    at com.sap.engine.lib.xml.parser.XMLParser.scanPI(XMLParser.java:2126)
    at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2774)
    at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2830)
    at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
    at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
    at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
    at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) ... 4 more Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
    13:01:52 End of test
    </pre>
    Query : Select * from Employee fetches all the fields
    Payload :
    <pre>   <?xml version="1.0" encoding="utf-8" ?>
    - <resultset>
    - <row>
      <PerNer>t</PerNer>
      <Initials>t</Initials>
      <Name>t</Name>
      <DOB>t</DOB>
      <State>t</State>
      <Country>t</Country>
      </row>
      </resultset>
    </pre>
    Regards,
    Sai.k.k

  • Tax and pricing info are not flowing into Idoc orders02-eledp04 and 05

    Hi,
    We are carrying out SRM5.5 -SUS and ECC6.0 Integration using PI 7.
    We are configuring for the MM-SUS Scenario.
    Now,to accomodate the Tax / Pricing we have installed the add on
    component LOCINSUS and we are having doubts on how to use it:
    1) Tax and pricing information are not flowing into IDOC- orders02
    (e1edp04 and e1edp05 segments are not present in the created IDOC). The
    condition print indicator in checked on ECC System and we have also
    implemented SAP note 995986.
    2)In create ASN transaction , we are not able to see the Excise Invoice
    Number and Date field in Basic data tab as expected from SAP Library
    document although we have installed the Localization Add on component.
    Please help us to reso1ve these issues,
    Regards,
    Mani
    099890-22217.

    Mani,
    Did you resolve this issue, because we are having the same issue in ECC6 with IDoc ORDERS02.
    If you did resolve this issue could you please let us know how, much appreciated.
    Bill.

  • Idoc to flatfile and mail

    Hello,
                 I have a scenario  where i am converting the idoc to file and mailing the same after converting it to flatfile .I have used TransformMessageBean for doing so.Now I need to implement the TO Field (mail )dynamically based on the payload.
    I tried to use the MultiMapping by using mail definition provided by XI ,but it results in mapping error.\
    Can somebody guide me on this.
    Thanks in Advance
    Rajesh

    Hello,
               I  have tried to do the same with the MessageTransformBean and two features are working fine independently.
    1. Converted the file into Flatfile and mail
    2. Execute the XSL Mapping for dynamic receiver.
    Now i want to combine both above features i.e after transforming the content to flatfile ,i need to sent this file to  recipient based on payload field.
    I tried to execute the same but i am stuck at XSLT error ,saying
    com.sap.aii.af.ra.ms.api.RecoverableException: Error in XSLT Conversion: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 48, 44, 52(:main:, row:1, col:3):
    Awaiting for replies
    Rajesh

  • Error values in Idoc Control Records in File to Idoc Scenarios

    Hi All,
       I am posting 2 different types of Idocs in 2 different File-to-Idoc Scenarios. In many cases both these files may get picked at the same time. One is an Orders Idoc and the other one is Shipment Idoc. The Orders Idoc has a control record value in the Sender Partner Fn as 'ZC' while as for Shipment Idoc that value is not passed. The other Sender parameters are passed and are different for both these idocs. But when the files are processed, the value 'ZC' get populated for the Shipment Idoc also. When 100 files are sent with 90 orders and 10 shipments, the shipments get created with 'ZC' partner fn. This is visible in the Call Adapter Pipeline Step under the node IDocOutbound. . I have 2 different Idoc receiver adapters.Can anybody help me out here?
    Thanks,
    Geetha

    Hey,
    >'ZC' while as for Shipment Idoc that value is not passed
    Check whether the Source/ Mapping  populates the 'ZC' , Did you checked Apply Control record in Receiver Adapter for Shipment, What is the name  you have mentioned for the in the SLD -Logical system  for Sender system
    Cheers
    Agasthuri

  • JDBC and FTP sender channels stop polling

    Hi,
    We have a great volume of sender JDBC and FTP sender channels.
    For this reason there is nothing unusual to have temporary error connections.
    Several months ago, with an XI 3.0 system, sender channels recover its functionality  automatically when temporary error connection is solved.
    But now, he have migrate to a  PI 7.1 sytem, and in the same scenario and configuration,  sender channel stop polling after a temporary error . In cc monitor this channels remains in  green status and there were no signs of stopped interfaces.
    Timeouts are correctly defined and there is no difference between channel configuration in our Xi and PI system.
    How to solve this problem?
    Thanks, in advance.
    Carme.

    Thanks for your fast response, Stefan.
    After writing this post, i ask the same question to our basis team and  we are in the latest sp.
    ¿do you know if there is any note or can you provide me some additional information?
    I'm not able to find any note about this issue...
    Regards,
    Carme.

Maybe you are looking for