DB Adapter repeating first child record multiple times

We are using DB Apdater in BPEL process with master and child relationship setup using wizard. Correct XSD is generated. However when we execute webservice, 1st child record is repeated multiple times (based on total child records) Other child records are not showing in XML.
We are facing this issue in both 11.1.1.7.0 and 12c

Hi Mahesh,
Can you post your xsd and the sample xml which you got as output. Also, explain what is your expectation in the output.
Regards,
Sai

Similar Messages

  • How to insert same record multiple times in a loop..

    Dear All,
    I need to insert a record multiple time how it can be accomplish...
    eg:
    ref no name dept
    123     abc 1     
    122 def 2
    121 feg 1
    120 hhh 2
    while inserting into another table:
    all dept no 1 with should inserted 3 times for each record above
    final out put should be :
    table abc
    ref no name dept
    123     abc 1
    123     abc 1
    123     abc 1     
    122 def 2
    121 feg 1
    121 feg 1
    121 feg 1
    120 hhh 2
    Thank You

    user3029023 wrote:
    Dear All,
    I need to insert a record multiple time how it can be accomplish...
    eg:
    ref no name dept
    123     abc 1     
    122 def 2
    121 feg 1
    120 hhh 2
    while inserting into another table:
    all dept no 1 with should inserted 3 times for each record above
    final out put should be :
    table abc
    ref no name dept
    123     abc 1
    123     abc 1
    123     abc 1     
    122 def 2
    121 feg 1
    121 feg 1
    121 feg 1
    120 hhh 2
    Thank YouTry this .
    SQL> ed
    Wrote file afiedt.buf
      1  with t as
      2  (select '123' AS ref_no,'abc' AS name,'1' as Dept
      3  from dual
      4  union all
      5  select '122','def','2' from dual
      6  union all
      7  select '333','feg','1' from dual
      8  union all
      9  select '120','hhh','2' from dual
    10  )
    11  select ref_no,name,Dept from t,(select level x from dual connect by  level <4)
    12* order by 1
    SQL> /
    REF NAM D
    120 hhh 2
    120 hhh 2
    120 hhh 2
    122 def 2
    122 def 2
    122 def 2
    123 abc 1
    123 abc 1
    123 abc 1
    333 feg 1
    333 feg 1
    333 feg 1
    12 rows selected.And insert the same onto your desired table.
    Hope this Helps..
    Regards,
    Achyut

  • DB Adapter: Polling For New Records returns the First record multiple Times

    I Polling for New or Chnaged Records against DB2 on iSeries. The DB Adapter returns the first record from the Table multiple Times. If the Table has 5 records it displays the first record 5 times. I am using BPEL 10.1.3.1 Can anyone help me with this.

    Hi there,
    please check out the DBAdapter trouble-shooting guide:
    http://download-east.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/app_trblshoot.htm#CIHFEHFA
    I am copying an entry from there into here:
    A.1.21 Some Queried Rows Appear Twice or Not at All in the Query Result
    Problem
    When you execute a query, you may get the correct number of rows, but some rows appear multiple times and others do not appear at all.
    This behavior is typically because the primary key is configured incorrectly. If the database adapter reads two different rows that it thinks are the same (for example, the same primary key), then it writes both rows into the same instance and the first row's values are overwritten by the second row's values.
    Solution
    Open Application Sources > TopLink > TopLink Mappings. In the Structure window, double-click PHONES. On the first page, you should see Primary Keys. Make sure that the correct columns are selected to make a unique constraint.
    Save and then edit the database partner link.
    Click Next to the end, and then click Finish and Close.
    Open your toplink_mappings.xml file. For the PHONES descriptor, you should see something like this:
    <primary-key-fields>
    <field>PHONES.ID1</field>
    <field>PHONES.ID2</field>
    </primary-key-fields>
    Thanks
    Steve

  • Please:How to repeat the return values multiple times in sapscript

    Currently my subroutine is returning a value called TOQBSSHB single time and i am working with standard layout called RFFOUS_C.Please can anybody tell me if i want to show multiple times TOQBSSHB for different values of VBLNR .Is it possible if it is what are changes i should make on layout and subroutine.
    PERFORM EXTRACT IN PROGRAM Y_MIT_TEST2
    USING &REGUH-VBLNR&
    USING &REGUH-NAME1&
    CHANGING&TOTQBSHB&
    ENDPERFORM
    FORM EXTRACT TABLES IN_PAR STRUCTURE ITCSY OUT_PAR STRUCTURE ITCSY.
    TABLES : REGUP,BSEG,REGUH,REGUD.
      DATA : BILL_NO LIKE REGUH-VBLNR.
      DATA : ITAB LIKE REGUP OCCURS 0 WITH HEADER LINE.
      DATA : JTAB LIKE REGUP OCCURS 0 WITH HEADER LINE.
      DATA : BELNR1 LIKE ITAB-BELNR.
      DATA : QBSHB1 LIKE REGUD-SWNES.
      DATA : QBSHB2 LIKE REGUD-SWNES.
      DATA : TOTOQBSHB LIKE REGUD-SWNES.
      READ TABLE IN_PAR WITH KEY NAME = 'REGUH-VBLNR'.
      IF SY-SUBRC = 0.
       BILL_NO = IN_PAR-VALUE.
      ENDIF.
    SELECT * FROM REGUP INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE VBLNR
    = BILL_NO.
      READ TABLE ITAB INDEX 1.
      IF SY-SUBRC = 0.
      MOVE ITAB-QBSHB TO QBSHB1.
      MOVE ITAB-BELNR TO BELNR1.
      ENDIF.
    SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE JTAB WHERE BELNR
    = BELNR1.
      LOOP AT JTAB.
      READ TABLE JTAB INDEX SY-TABIX.
      IF SY-SUBRC = 0.
      QBSHB2 = QBSHB2 + JTAB-QBSHB.
      ENDIF.
      ENDLOOP.
      TOTOQBSHB = QBSHB1 + QBSHB2.
      READ TABLE OUT_PAR WITH KEY NAME = 'TOTQBSHB'.
      IF SY-SUBRC = 0.
      MOVE TOTOQBSHB TO OUT_PAR-VALUE.
      MODIFY OUT_PAR INDEX SY-TABIX.
      ENDIF.
    ENDFORM.

    I said :
    - A) you should copy the main program without to copy
         includes, so when the systems ask you which objects
         you want to copy: check all excluding INCLUDES.
    So you'll have a new program which uses the same includes of the standard program.
    - B) in your z-program you find the point where you should insert your code: you'll have two cases:
    - you should insert code in a point that is writen in z-program;
    - you should insert code in a point (for example a form) that isn't write in z-program, but in a standard include your z-program use.
    In first case you only write your code, in second one before you should copy the include, than insert it in your z-program and so insert your code in the include.
    For example:
    - A) Copy RFFOUS_C in ZRFFOUS_C
    - B) I should change the code of routine  
         SCHECKDATEN_EINGABE, it's defined in RFFORI01, so I copy it in ZRFFORI01, insert my code in it.
    - C) found where my z-program call include RFFORI01:
    subroutines for check print and prenumbered checks                  *
      INCLUDE RFFORI01.
    now replace this with the call to my new include:
      INCLUDE RFFORI01.
      INCLUDE ZRFFORI01.
    If you do in this way you copy only includes where you should change the code.
    Message was edited by: max bianchi
    Message was edited by: max bianchi

  • Openscript records multiple times

    Hi,
    It records the same step multiple times.  I'm using Openscript 12x with Siebel. 
    Thanks,
    Will

    Hum very difficult to tell you...
    Is that a load or a functional test script?
    Do you use the proper OpenScript script template?
    Have you properly configured Siebel to be able to record HI user actions?
    JB

  • Repeating the same region multiple times

    Hi,
    We have requirement where the same region gets repeated multiple times depending on the data.
    Functionally: QA -- Question Area , it has couple of questions
    Supplier1 has 1 QA assigned . Then in the page it gets displayed as
    - QA { ShowdetailHeader }
    -- Questions { tree table}
    Now that if Supplier1 is assigned with 3 QA's then
    - QA1
    -- Questions of QA1
    - QA2
    -- Questions of QA2
    - QA3
    -- Questions of QA3
    i.e the regions to be displayed will depend on the data.
    ================================
    To explain the same tech...
    We have the following requirement { Consider 2 VO's and a VL between them }. In the page we display it in this manner
    <showdetialHeader VO1>
    < Tree table VO2 >
    This region will be repeated depending on the result of VO1. That is say VO1 returns 3 rows then it should be displayed as
    <showdetialHeader VO1.row1>
    < Tree table VO2 [VO1.row1] >
    <showdetialHeader VO1.row2>
    < Tree table VO2 [VO1.row2]>
    <showdetialHeader VO1.row3>
    < Tree table VO2 [VO1.row3]>
    =========================================================
    Please guide me in I building this page.
    Thanks,
    Suresh.
    Edited by: user758041 on Dec 27, 2010 3:11 AM

    Hi,
    JDeveloper 11g does not yet support dynamical creation of ADF Region instances. So any attempt to create a region in an af:forEach or af:iterator loop wont work.
    Frank

  • Removing a record multiple times

    hi ,
    i have a multi select table and a command button to remove the selected records(Iam calling a stored procedure to remove the record).
    i could able to remove the records for the first time.
    but when i wnt to delete the a record after deleting one for the first time i am getting a null pointer exception in the stored procedure call, i could get the values that are selected in the page.
    Please help in resolving this issue..
    i removed selection state and selection listener for that table..
    Does is affects?
    Thank you ,
    Naveen

    thanks for your reply.
    but when iam setting the selection state to <iterator>.collectionModel.selectedRow,
    iam getting the required functionality.
    I want to know that is there any way that we can set the selection state of a table dynamically in the java code

  • Select Query Fetching same records multiple time

    Hi ABAPers,
    I have an issue where the select query is fetching the same records more than one time for particular sale order.
    Kindly help to solve the issue.
    Thanks in advance..
    Here is the Select Query:-
    SELECT  VBAK~VKORG VBAK~VTWEG VBAK~VBELN VBAK~KUNNR
                   VBAK~ERDAT VBAK~LIFSK VBKD~INCO1 VBKD~INCO2
                   VBAP~MATNR VBAP~ARKTX VBAP~MATKL VBAK~BSTNK
                   VBAK~BSTDK VBAK~KNUMV VBAP~UEPOS VBAP~POSNR
                   VBAP~KWMENG VBAK~VDATU VBAP~VRKME VBAK~ERNAM VBAK~WAERK
      INTO CORRESPONDING FIELDS OF TABLE IT_PENDING FROM VBAK
      INNER JOIN VBAP ON VBAK~VBELN = VBAP~VBELN
      INNER JOIN VBKD ON VBAK~VBELN = VBKD~VBELN
      WHERE
      VBAK~VBELN IN SO_VBELN AND
      VBAK~ERDAT IN SO_ERDAT AND
      ( AUART EQ 'OR' OR AUART EQ 'ZEO' OR AUART EQ 'TA' OR AUART EQ 'LP' OR AUART EQ 'ZFOC' ) AND
      VKORG IN SO_VKORG AND
      VTWEG IN SO_VTWEG AND
      SPART IN SO_SPART AND
      KUNNR IN SO_KUNNR AND
      MATNR IN SO_MATNR AND
      MATKL IN SO_MATKL AND
      ABGRU EQ '' AND LIFSK <> '35'.
    Edited by: Suhas Saha on Jan 14, 2012 3:42 PM

    Hello Suhale,
    On retrospection, I found the query in my above response STILL HAS ONE ISSUE. When we are making a left outer join on vbkdposnr = vbapposnr we are only fetching vbkdinco1 and vbkdinco2 values where item level entries exist in VBKD which match with vbkdposnr = vbapposnr.
    Actually we should bring inco1 and inco2 from vbkd when a matching entry exists in vbkd where vbkdposnr = vbapposnr and if there is no entry matching vbkdposnr = vbapposnr, then we should fetch inc01 and inco2 from VBKD where posnr = '000000' (i.e., from header).
    This is how SAP behaves when you open an item in VA03 and look at inco1 and inco2. They come from the item if an entry corresponding to that item exists in VBKD otherwise they come from VBKD header record (where vbkd~posnr = '000000')
    We can't use VBKD in the joins and still be able to do the above. So we need to fetch inco1, inco2 from VBKD separately like below.
    FIELD-SYMBOLS: <fs_pending> LIKE LINE OF it_pending.
    SELECT vbak~vkorg vbak~vtweg vbak~vbeln vbak~kunnr
           vbak~erdat vbak~lifsk "vbkd~inco1 vbkd~inco2
           vbap~matnr vbap~arktx vbap~matkl vbak~bstnk
           vbak~bstdk vbak~knumv vbap~uepos vbap~posnr
           vbap~kwmeng vbak~vdatu vbap~vrkme vbak~ernam vbak~waerk
      INTO CORRESPONDING FIELDS OF TABLE it_pending
        FROM vbak INNER JOIN vbap
          ON vbak~vbeln = vbap~vbeln
            WHERE vbak~vbeln IN so_vbeln AND
                  vbak~erdat IN so_erdat AND
                ( vbak~auart EQ 'OR' OR vbak~auart EQ 'ZEO' OR
                  vbak~auart EQ 'TA' OR vbak~auart EQ 'LP' OR
                  vbak~auart EQ 'ZFOC' ) AND
                  vbak~vkorg IN so_vkorg AND
                  vbak~vtweg IN so_vtweg AND
                  vbak~spart IN so_spart AND
                  vbak~kunnr IN so_kunnr AND
                  vbap~matnr IN so_matnr AND
                  vbap~matkl IN so_matkl AND
                  vbap~abgru EQ '' AND
                  vbak~lifsk NE '35'.
      LOOP AT it_pending ASSIGNING <fs_pending>.
        SELECT SINGLE inco1 inco2
          FROM vbkd
            INTO (<fs_pending>-inco1,<fs_pending>-inco2)
              WHERE vbkd~vbeln = <fs_pending>-vbeln AND
                    vbkd~posnr = <fs_pending>-posnr.
        IF sy-subrc NE 0.
          SELECT SINGLE inco1 inco2
            FROM vbkd
              INTO (<fs_pending>-inco1, <fs_pending>-inco2)
                WHERE vbkd~vbeln = <fs_pending>-vbeln AND
                      vbkd~posnr = '000000'.
        ENDIF.
      ENDLOOP.
    Best regards,
    Vishnu Tallapragada.

  • Insert Single record multiple times in a same database table

    Hello Guys,
    I need your thoughts for below scenario...
    I have a data file with 14 colums, more than 10000 records and in below format
    Data File Format
    id name c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12
    Now my requirement is for each record in a data file I have to insert 12 records in my Interface table.
    Lets say if above file is a sample data file, I have to insert record in my Interface table lilke following
    Insert into Interface_table(a1,a2,a3) Values (id,name,c1)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c2)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c3)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c4)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c5)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c6)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c7)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c8)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c9)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c10)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c11)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c12)
    After getting the data file, We have stored all the data in a Custom table. Now I need to Import these records into interface table (as mentioned earlier).
    Can any one suggest me what will be the best approach/practice to load the above data.
    any help on this is appreciated !!
    Thanks,
    Ab

    Hi,
    you mean like this?
    SQL> create table samp1(x number,y number);
    Table created.
    SQL> insert into samp1 select rownum,rownum from dual,(select level from dual connect by level<=12);
    12 rows created.
    SQL> select * from samp1;
             X          Y
             1          1
             2          2
             3          3
             4          4
             5          5
             6          6
             7          7
             8          8
             9          9
            10         10
            11         11
             X          Y
            12         12
    12 rows selected.

  • How to repeat a previously entered record 10 times

    Hi,
    I am using BC4J and JClient. My users want a feature where they can insert a record and then want to repeat the same record n times with the primary key value changed using a prefix. For example, BSM_MGMG_01, BSM_MGMG_02 and so on. I am putting a button on the same panel which can then open a dialog box asking for the prefix and how many times they want the record repeated. Alternatively I can just put a button which will repeat the record one at a time. That's nto problem.
    Any idea how this can be done quickly? How can I use the VO to do this?

    Dear Shailesh,
    Thanks for your help. I tried it and it works, except that I can' get the navBar activate the green commit arrow. It remains unactivated even tough the rest of the screen shows the new 10 rows. I can commit using menu but in production environment, there is only navBar but no menu. How can I notify navBar that rows have been updated and the green arrow should light up?
    I am trying various methods associated with navBar, but still no luck.
    With regards,
    Mahendra

  • Updating parent record owner to top 1 child record owner?

    I am trying to understand how to update a parent record's owner field to the value of a child record's owner field, but while there is only ever one parent record, there are multiple children, and I want to update the parent owner value to the owner
    of the first child record ever created for said parent.
    So for example, if the first child record created was owned by Joe Smith and the second child record created was owned by Betty Boop, I want to update the parent record to being owned by Joe Smith since he was the owner of the original child record.
    Key fields are Parent.ID, Child.ID, Parent.Owner, Child.Owner, Child.DateCreated. Hope that makes sense! It seems like using top 1 would be needed but I'm not entirely sure how to use it correctly with an update statement. I am generally pulling data not
    updating it, so I'm a bit out of my element.
    Thanks,
    Shaunna

    UPDATE t2
    SET Owner = t1.Owner
    FROM Parent t2
    INNER JOIN Child t1
    ON t2.ID = t1.ParentID
    WHERE NOT EXISTS
    SELECT 1
    FROM Child
    WHERE ParentID = t1.ParentID
    AND DateCreated < t1.DateCreated
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Can Express 9 play and record multiple instruments at the same time?

    I have logic express 9 and was told with my interface that I can play and record different instruments at the same time on Express 9. Is this true because I have spent a long time trying to figure out how.

    Hi,
    to record multiple Inputs at a time, open up the appropriate number of audio tracks. Now for each track, select the correct Input in the Channelstrip.
    Now, ARM all these tracks for recording by clicking the little red R in the track header or channelstrip. Now if you hit record, all these tracks should record simultaneously their respective inputs.
    All other existing tracks should playback while recording.
    Fox

  • Record Working Time task merging multiple employees into a single task

    Hi Everyone,
    I'm going to check our configuration again to see if this is standard behaviour, config, or a problem with EHP 3's version of record working time.
    So if employee A submits to manager A 1 task is created.  Then when employee B submits to manager A we were expecting 2 tasks.  However, we've been noticing manager A is getting 1 task with several line times. 
    We are ok with it merging tasks for employee A over multiple weeks.  That is ideal actually.
    The problem is that employee B's task should be separate.
    Is there a quick fix?
    Thanks,
    Doug Robbins

    I did try 31000007 and noticed the same behavior.  Are you saying I should use an older version of the task to get back to grouped by employee number and not merging everything? 
    Well this causing us issues for a few reasons. The main one we developed a work around because we had to make sure emails were not being sent to 1 person for all the employees with their data.  That would cause obvious security concerns. 
    But when forward tasks out managers want to be able to forward a specific employee's requests and not all of them.  If some customers want this it should be a configurable option.  To allow companies that want 1 single task or companies that want 1 task/employee/week.
    This is inconsistent with the other portal applications.  It would be nice if Germany picked 1 way of doing things or provided more configuration options.  I'm hoping that OSS gives us something because merging everything into a single task for all employees is not the behaviour we want or expected.
    I always appreciate your input because you have been very helpful as I learn about portal.
    Thanks,
    Doug R
    Thanks you

  • How to create Child record at the time of master record creation.

    Hi,
    I have MasterVO and ChildVO. And association between both are 1 to *. I have a requirement like, I need to create row in ChildVO at the time of MasterVO row creation.
    I have used entity based association to create view link. This view link created ChildVO accessor in MasterRowImpl as type RowIterator.
    Actually my idea is to override create method in MasterVORowImpl and call ChildVO ViewObject and call .createRow() method on it. But I don't have access to ViewObject, instead it gave access to RowIterator.
    Could you please provide any pointer to achieve above functionality?
    Many thanks in advance.
    Jdev version - 11.1.1.7.0
    Regards,
    Dileep.

    Hi Tim,
    Now it is creating child record at the time of master row creation. But it is working only through BC tester. But when I drag the child VO instance in the jsff page, only master is get created as editable only, child is displayed as read only without populating any default values like child VO surrogate key and other default attributes. But through BC tester it is working fine.
    Am I missing anything here while implementing in UI?
    Thanks,
    Dileep.

  • Just bought a new iphone4 and was loading os6 and now it won't turn on. the apple glows like it is starting up, then the screen goes black and then repeats the same process over and over. i have tried to reboot multiple times now

    just bought a new iphone4 and was loading os6 and now it won't turn on. the apple glows like it is starting up, then the screen goes black and then repeats the same process over and over. i have tried to reboot multiple times now

    I am assuming the phone was working prior to you installing IOS 6? Did you use itunes to install IOS 6 or just run from the phone?
    When I tried to do the Over The Air update to IOS6 on my iPhone 4, it errored out and I had to connect it to iTunes and select "Restore" from the summary screen after iTunes finds the phone is connected. If this works for you, it will go through a couple of reboots that take a few minutes to complete. It should then give you the option to start with a fresh new phone or to use one of your previous backups to load your contacts and other information, provided you have backed up the phone previously.
    I hope this helps you my friend!

Maybe you are looking for

  • Delivery and Shipments for idocs posting

    Hi - warehouse shipment advice (EDI 945) related (to update qties, packing info, and post G/I) can i use  DELVRY01 or DELVRY02. . which one for what. - customer ASN (EDI 856) related - SHPMNT01 to SHPMNT03 will it update delivery & also the shipment

  • SHORT Crash Report to Examine

    System crashed while copying to portable FW drive, which has been acting odd lately (not mounting, mounting after waking from sleep...) and in the past. Suspect a bad cable or FW module on logic board. This is the shortest crash report I have ever re

  • Creating Labview instruments

    Hi. I want to create the sine generator. I read the manual in Multisim 10.0 about creating instruments. I opened the output VI template. I can't understand, how can I set the frequancy in the VI? Thank You.

  • Does anyone an issue with the new music app force closing?

    So I got the new iPhone 4S and i'm trying to go through all of my albums by using Cover Flow. And then probably around half way through the screen lags and then force closes the app taking me back to the home screen. Any suggestions on what I should

  • Fuel Surcharge pricing conditions

    Hi all, I have critical requirement to implement Fuel Surcharge during sales processing, Basically we have Base Fright is fix based on ship to party and we have Fuel Surcharge is fixed based on ship to party and we have one more Fuel Surcharge called