JDBC 2 IDOC SCENARIO

HI ALL,
  we have one requirement that is I DOC to JDBC....and JDBC to I DOC
  we done The i doc to jdbc succesfuly.... again that data have to store in   ECC side.
  again we done jdbc to i doc scenario.
  Appart that we done all IR and ID part. we striked in mapping pat in JDBC to IDOC....
  There are sending like this
Rec 1     101
Rec 2     101
Rec 3     101
Rec 4     102
Rec 5     102
First record set have to map with header and item number( 1 to 3 )
second thing is have to mapwith header and item number...
Thanks and regards,
kesava.

Sender_Header-removecontext--splitbyvalue(value change)----collpase context---Target_header
SenderItem----removecontext----
   -------------------------------------FormatByexample----TragetItem
Sender_Header-removecontext--splitbyvalue(value change)-----

Similar Messages

  • JDBC -- Idoc scenario.

    Hello experts.
    I have next scenario JDBC --> Idoc.
    I have a sender JDBC adapter who reads information of BD table. This information is passed to Idoc, and update DB records, for next iteration don´t touch this records.
    JDBC adapter reads in 5000 sec interval, but how I can do that JDBC adapter only read when another condition?
    For example if read process is more large then 5000 secons, JDBC adapter reads the same information but my process until don´t update BD table, and this is a BIG problem , but two identicals Idocs are generated.
    Some one know how I can solve this problem?
    Thanks.

    Julian,
    When you make the option as serializable,the update query will update all records that satisfy the update query but it will ensure that no new data is entered in to the table between the execution of the select and update query.
    In your case as I guess you have given maxRecords in the select Queryt ( only 1500 ) records were selected , but as you aren ot using this same criteria in the update query all rows have been updated.
    Remember Serializable ensure that no new data is enetered into the table between the select and update query's execution. You should ensure that the update query only updates the data selected in the Select Query.
    A DB expert should be able to helo your forumuale the required querry.
    regards
    Bhavesh

  • Mapping Error with Sender JDBC- Idoc scenario

    Hi Guru's,
    I've got a simple asyncronous sender JDBC to Idoc scenario, and I encounter a strange problem with the mapping.
    When I test the mapping it works fine, but when I run the scenario, only the first element (a constant) of the Idoc gets mapped, and mapping stops with no errors.
    Does someone know where to find the error?
    Thanks,
    Karst

    Hi Karst,
    There might be several reasons that you do not see the IDOC structures are not created/mapped:
    1. Most of the IDOC structures are optional (minOccrs = 0), so you have to make sure the structure itself (not just the fields within that structure) is mapped to something that does exist in the source data.
    2. Make sure your JDBC generated source data does have the right namespace as you used in your mapping. I once had a similar problem, but finally found the source data generated in run time is slightly different from the one used in mapping in terms of namespace.
    3. Test your mapping with the source data generated in runtime (you can copy it from SXMB_MONI). Then you may be able to find the problem.
    Hope this helps.
    Hart

  • JDBC Sender scenario

    Hi All,
    I am creating a JDBC -> Idoc scenario.I have a clarification required,
    Do I need to create the DataType(Sender JDBC Structure) with all the fields in the table ,or if it is OK to create a Datatype with only the fields of the table which I am going to extract.
    Thanks,
    Venu

    You do not have to include all the fields in your data type, it depends on your business requirement.
    To create datatype quickly and effeciately, you can down load a tool I wrote:
    /people/liang.ji/blog/2009/03/03/data-type-generator
    Regards.
    Liang
    Edited by: Liang Ji on Mar 17, 2009 6:41 PM

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

  • JDBC to Idoc scenario - change of logical system name

    Hi,
    I have a JDBC to idoc scenario that worked. Now i had to change the logical system name from my sender system from ABC_123 into ABC123 in the SLD (Business System - Integration - Logical System name). I did so and also refreshed my Cache.
    Afterwards I started the process, but it failed in the Receiver system. The idoc is correct expect of the partner name. My receiver system expect ABC123 - as I changed in the SLD - but PI send ABC_123.
    If io look in SXI_CACHE - Services my Business System still got the "old" name (ABC_123).
    Did i miss something resp. how can i load the current configuration from SLD?
    Thanks in advance
    Michael

    Hi Michael,
    Again Import the changed logical system in the Integration directory of you PI system.
    And check the scenario (Sender Agreement, Receiver agreement ) what system they are reflecting.
    If they are showing old system then you have to replace the business system in all the scenario.
    Edited by: Rajhans Abhay on Jan 7, 2010 3:14 PM

  • Mapping issue in jdbc to idoc scenario

    Hi
    we have a  jdbc to idoc scenario , we need to repeat the segment given below which has only two fields FLDGRP  and FLDVAL,
    both filed_Group and fieldgroup1 is coming simultaneously . when field group =BATCH, batch=FLDVAL and fieldgroup1=CUST cust_code=FLDVAL
    mapping is as follows :
    E1WXX01 (segment name) occurance 0:9999999999                                     
    fieldgroup----
    > FLDGRP
    batch----
    >FLDVAL
    fieldgroup1----
    >FLDGRP(same filed as above )
    cust_code----
    >FLDVAL(same filed as above)
    pl sugggest how to map using graphical mapping
    rgds
    arun

    I see the problem here... hmmm.. It is simple
    You need to just duplicate the E1WXX01 segment by right clicking and pressing Duplicate Subtree.
    Once you do duplication of segment then you will have two segments of E1WXX01.
    In first segment map
    > fieldgroup----
    > FLDGRP
    > batch----
    >FLDVAL
    and in second segment of E1WXX0, map
    > fieldgroup1----
    >FLDGRP
    > cust_code----
    >FLDVAL
    Regards,
    sarvesh

  • Reg: JDBC to IDOC Scenario Message Mapping

    hi Friends
    i am designing a Scenario JDBC - IDOC for accounting document interface using ACC_DOCUMENT03 idoc.
    i need the mapping program for that to map the JDBC fields with the IDOC fields, so can anyone help me the mandatory fields and the constant values for the IDOC which has to be mapped.Along with this can i know why the constants will be assigned to the fields like Begin =1 , MSGFN = 009 etc how these constants are defined.
    Thanks&Regards
    suman.

    Hi,
    for mapping constants in graphical msg mapping, select your target IDOC field..........then you have a constant in the below screen.........click it and then double-click on constant to change the value of the constant field.........then map this constant to your target IDOC field.
    for knowing which are the mandatory fields, ask your functional guys to tell you the mandatory fields in data segment of your IDOC and regarding Control segment EDIDC, you have to map fields which have sender and reciever system details.
    Regards,
    Rajeev Gupta
    Edited by: RAJEEV GUPTA on Feb 2, 2009 7:55 AM

  • JDBC to Multiple IDOC scenario

    Dear Experts,
    My Scenario is JDBC to Multiple IDOC scenario.
    I am reading 100 records and generating 100 IDOC's at the target ECC system, the problem which I am facing is if I have any issue with 1 record the total message gets failed in SXMB_MONI due to mapping failure.
    So again I need to reset all 100 records in my source database and I should reprocess the same.
    Is there any way to process the 99 and fail only one record which causes error.
    Is Stored procedure will fix this issue or do I need to use BPM for this to achieve.
    Please advice.
    Thanks,
    --Sai

    Hi Sai,
    As you are selecting 100 records in one go, all the records will come as a single message in PI.
    Please find below my suggestion for this issue.
    1. Selecting one record per message will not be efficient. So please do not use it.
    2. Create a secondary sctucture. Generate it only if there is an error in the record. You may set up an alert for that message. So if any error occurs, other 99 idocs can go normally, while you will get an aleart for the failed record.
    3. Another option is to create an idoc for error record also. You can do this by providing some default values in place of error fields. You can then monitor such idocs in ECC.
    Personally, i feel 2nd option is the best. Let me know if you need more information on this.
    Regards,
    Gavaksh

  • JDBC to IDOC Scenario - select data in jdbc based on multiple conditions

    Hello
         I have a JDBC to IDOC Scenario. I have to select the records in JDBC based on different conditions each time. For example I have to select based on company code '1000' and Employee claasification 'E1' and date range. After I post these records in SAP again I want to select other records for some other company code '2000' and different business area and different dates. Basically I want to extract data multiple times based on different conditions.
    Hiow do I achieve this?
    Another question is in the JDBC to IDOC scenario since the sender adapter is JDBC and the sender adapter polls depending on the duration of time ( say 60 secs ) in the adapter once after I extract the data based on a condition how do I control in such a way that the same data is not extracted again.
    Thanks
    Naga

    Hi Naga,
    I have to select the records in JDBC based on different conditions each time. For example I have to select based on company code '1000' and Employee claasification 'E1' and date range. After I post these records in SAP again I want to select other records for some other company code '2000' and different business area and different dates. Basically I want to extract data multiple times based on different conditions.
    -->
    Such requirements cant be handle through select query of the sender...but you can handle this in the message mapping area.....you can fire a select query in the database to pick up records in a batch of 10K (do not keep any condition on this except for sorting). After the records come into PI you can send the message to your target based on the unique combination of "Company code+ Employee clasification + date range" handling this in the message mapping.
    Another question is in the JDBC to IDOC scenario since the sender adapter is JDBC and the sender adapter polls depending on the duration of time ( say 60 secs ) in the adapter once after I extract the data based on a condition how do I control in such a way that the same data is not extracted again.
    You can use the N--> C logic
    The data records that you pick have a corresponding control table i assume. There should be a field STATUS where the initial status of record should be N.
    After you pick the records this status should be made C so that only those records present in the database with status = N are picked up.
    Mention the condition Status = N in the select query.
    Thanks
    Dhwani

  • For Michal Krawczyk - JDBC to IDoc Scenario

    Hi Michal,
    I am trying to run JDBC to IDoc scenario and somehow my mapping is not getting executed and because of that at receiver side IDoc is not getting LIFNR value which should come from  Database table and as a result i am getting error 51 on posting the IDoc...
    Mr Reddy suggested me to go through your blog i.e
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    After going through this blog i figured out that when i am trying to check the mapping as per way mentioned in the blog i am receiving the error "java.lang.NullPointerException"..But i am getting this error even for those scenarios also which are working fine on checking the mapping suggested by you.
    Can you suggest something...
    It would be better for you to understand my scenario if you will go through this thread also :
    https://www.sdn.sap.com/irj/sdn/forums

    hi Santosh,
    1. this is not a private forum - post to <b>everyone</b> so everyone will be have a look -<b> this way you will get more answers</b>
    2. if you want my direct help contact me by e-mail and I will contact you with my team leader and I will repair your XI problem then
    thanks for understanding
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • JDBC == IDOC sceanrio

    HI Experts,
       Now i am doing sceanrio like JDBC ==> IDOC , here oracle side 1-unbound  and IDOC side 1-1
    So how can i create each IDOC for each record at oracle side.
    for example, if i have 5 records at oracle side, i need to create 5 IDOCs , so how can i do this mapping .
    vasu

    Hi,
    Change the occurrence of IDOC to 1...unbounded and map each record from source  to IDOC node. Please refer the below links.
    The specified item was not found.
    Multi-Mapping without BPM for IDoc Scenarios- Yes, it’s possible!..!!!
    Regards,
    Priyanka

  • Idoc-XI-Idoc Scenario

    Dear All,
    I am working on Idoc-XI-Idoc scenario in which I am getting ORDRSP Idoc in input. In one of its segment I am getting value as either A or B. If value is coming as A in input then in the output we want PORDCR101 Idoc but if we have B as value in the source idoc then we should have multiple PORDCR102 Idocs ie for each line item there will be different idocs.
    Please guide me on how we can implement BPM in this scenario as required two MM i have created and they are working fine.
    Regards,
    NJ

    Hi,
    If value is coming as A in input then in the output we want PORDCR101 Idoc but if we
    have B as value in the source idoc then we should have multiple PORDCR102 Idocs ie for
    each line item there will be different idocs.
    For Source = A:
    SourceField----
                          -----equalS ----ifwithoutElse ----then Constant(blank) ---> PORDCR101
    Constant(A)---
    Assuming that A in input then in the output we want PORDCR101 Idoc means that you need only one occurence of the IDOC
    For Source = B:
    SourceField----
                          -----equalS ----ifwithoutElse ----then LineItem ---> PORDCR102
    Constant(B)---
    Regards,
    ABhishek.

Maybe you are looking for

  • Printing in colour on hp 14

    I bought an HP Chromebook 14 for myself in Dec '14. I have a HP printer that has the ePrint function but it won't print in colour. I have seen a previous post with a similar issue. The fix was to click on 'print using google cloud print dialogue' at

  • Updating with nokia suite

    hi there, my wife and i both have the same model phone ( nokia n8-00 ) i have nokia suite on my computer and my phone syncs with it and i updated to nokia belle no problems. my question is, is it possible to connect my wifes n8-00 to the same nokia s

  • Authorization Control for Setting TECO

    Hi PS Gurus, Would like to ask if there's a standard way of controlling users on the setting of TECO for PS objects? I cant find any setting in T-code PFCG that may limit setting of TECO for selected roles. Suggestions outside standard is also welcom

  • Exchange not working

    Does anyone know of a way to fix the Exchange sync options in Yosemite? When I try to add an Exchange account it automatically configures everything, but nothing connects and now my calendars and mail etc are broken. I can add the email and notes bac

  • ATI Radeon 9600 pro 256M graphics card

    I had the above card in my G4 as an upgrade, recently the G4 died so I removed the card. I was wondering if this card would be useable in my quad pro to allow the use of a second monitor. It has dual avi ports on it so I thought it would ideal for a