Mearge Multiple rows of same record in single row with /

Dear Friends
Here I am giving a example, In this example i want to mearge the records containing waybillno 24292 to single record but here i am having seperate tallerno which i want to combine in 1 record with '/'
Please give the solution urgently
WAYBILLNO WAYBILLDT TALLERNO TALLERDAT INVOICEVALUE
24942 31-MAR-11 873000
24942 31-MAR-11 3142 07-MAR-11
24942 31-MAR-11 3145 18-MAR-11
sandy
Edited by: Sandy on 17 May, 2011 4:57 AM

/* Formatted on 5/18/2011 10:10:36 AM (QP5 v5.149.1003.31008) */
WITH t AS (SELECT 24942 WAYBILLNO,
                  '31-MAR-11' WAYBILLDT,
                  873000 TALLERNO,
                  NULL TALLERDAT
             FROM DUAL
           UNION
           SELECT 24942,
                  '31-MAR-11',
                  3142,
                  '07-MAR-11'
             FROM DUAL
           UNION
           SELECT 24942,
                  ' 31-MAR-11',
                  3145,
                  '18-MAR-11'
             FROM DUAL
           UNION
           SELECT 24943,
                  '28-MAR-11',
                  3150,
                  '08-MAR-11'
             FROM DUAL
           UNION
           SELECT 24943,
                  ' 20-MAR-11',
                  3155,
                  '12-MAR-11'
             FROM DUAL)
    SELECT WAYBILLNO,
           MAX (SUBSTR (SYS_CONNECT_BY_PATH (WAYBILLDT, ','), 2)) WAYBILLDTS,
           MAX (SUBSTR (SYS_CONNECT_BY_PATH (TALLERNO, ','), 2)) TALLERNOS,
           MAX (SUBSTR (SYS_CONNECT_BY_PATH (TALLERDAT, ','), 2)) TALLERDATS
      FROM (SELECT WAYBILLNO,
                   WAYBILLDT,
                   TALLERNO,
                   TALLERDAT,
                   ROW_NUMBER ()
                   OVER (PARTITION BY WAYBILLNO
                         ORDER BY WAYBILLDT, TALLERNO, TALLERDAT)
                      rn
              FROM t)
-- WHERE CONNECT_BY_ISLEAF = 1  don't think connect by isleaf is available in 9i
-- so you will need to pick the max and group by waybillno
START WITH rn = 1
CONNECT BY PRIOR rn = rn - 1 AND PRIOR WAYBILLNO = WAYBILLNO
  GROUP BY WAYBILLNO
  ORDER BY WAYBILLNO
WAYBILLNO     WAYBILLDTS     TALLERNOS     TALLERDATS
24942      31-MAR-11,31-MAR-11,31-MAR-11     3145,3142,873000     18-MAR-11,07-MAR-11,
24943      20-MAR-11,28-MAR-11     3155,3150     12-MAR-11,08-MAR-11

Similar Messages

  • Select or deselect multiple rows with one single selection  event

    Does anyone know how to create a JTable which can select or deselect multiple rows with one single selection event in JTable. Fore example, if the table has
    row1
    row2
    row3
    row4
    row5
    row6
    What I need is when user select row1 or row2, both row1 and row2 should be set to be selected. Then if user press CTRL and click one of row3 or row4, both of them should be selected including the previouse selected row1 and row2.
    For deselection, if row1 and row2 are selected, when users deselect one of row1 or row2, both of them should be deselected.
    Hopefully someone can give me a hint.

    Here is a partial solution using a JList. Only one line gets highlighted when the user makes a selection in the list. But, two lines are returned. There is a blank line between every two lines.
         private void addLineToList() {
              String a = f_one.getText();
              String b = f_two.getText();
              if (a.length() == 0) {
                   Utils.showInformationMessage("Item field is empty.");
                   f_one.requestFocusInWindow();
                   return;
              if (b.length() == 0) {
                   Utils.showInformationMessage("Match field is empty.");
                   f_two.requestFocusInWindow();
                   return;
              model.addElement("item: " + a);
              model.addElement("match: " + b);
              model.addElement(" ");
              int size = model.getSize();
              pairList.setSelectedIndex(size - 3);
              f_one.setText("");
              f_two.setText("");
              f_one.requestFocusInWindow();
         private void editList() {
              if (pairList.getSelectedValue().toString().equalsIgnoreCase(" ")) {
                   Toolkit.getDefaultToolkit().beep();
                   f_one.requestFocusInWindow();
                   return;
              if (!f_one.getText().equals("")) {
                   int result = JOptionPane.showConfirmDialog(this,
                   "The Item field contains text. Replace the text?",
                   "Flash Card Activity", JOptionPane.YES_NO_OPTION,
                   OptionPane.INFORMATION_MESSAGE);
                   if (result == JOptionPane.NO_OPTION) return;
              if (!f_two.getText().equals("")) {
                   int result = JOptionPane.showConfirmDialog(this,
                   "The Match field contains text. Replace the text?",
                   "Flash Card Activity", JOptionPane.YES_NO_OPTION,
                   JOptionPane.INFORMATION_MESSAGE);
                   if (result == JOptionPane.NO_OPTION) return;
              String item = "";
              String match = "";
              int index = pairList.getSelectedIndex();
              String choice = model.getElementAt(index).toString();
              if (choice.startsWith("item")) {
                   item = choice;
                   match = model.getElementAt(index + 1).toString();
                   model.remove(index);
                   model.remove(index);
                   model.remove(index);
              else {
                   item = model.getElementAt(index - 1).toString();
                   match = choice;
                   model.remove(index + 1);
                   model.remove(index);
                   model.remove(index - 1);
              int size = model.getSize();
              if (size > 2) {
                   pairList.setSelectedIndex(size - 2);
              f_one.setText(item.substring(6));
              f_two.setText(match.substring(7));
              f_one.requestFocusInWindow();
         }

  • How can I get a Album with multiple artists to appear as a single album with all of the tracks?

    How can I get a Album that contains multiple artists to appear as a single album with multiple tracks?  Also when I sync iTunes with my iPhone or iPad the Album appears as multiple albums with each artist.  The Album title is the same on each of the affected tracks.

    Quick answer:  Select all the tracks on the album, File > get info, and either give them all a single "album artist" or check the "compilation" flag.
    If these are from multiple-CD sets you may also need to enter the appropriate information in the disc number fields.

  • Can we create JTable with multiple rows with varying number of columns ?

    Hi All,
    I came across a very typical problem related to JTable. My requirement is that cells should be added dynamically to the JTable. I create a JTable with initial size of 1,7 (row, columns) size. Once the 7 columns are filled with data, a new row should be created. But the requirement is, the new row i.e. second row should have only one cell in it initially. The number of cells should increase dynamically as the data is entered. The table is automatically taking the size of its previous row when new row is added. I tried by using setColumnCount() to change the number of columns to '1' for the second row but the same is getting applied to the first row also.
    So can you please help me out in this regard ? Is it possible to create a JTable of uneven size i.e. multiple rows with varying number of columns in each row ?
    Thanks in Advance.

    Well a JTable is always going to paint the same number of columns for each row. Anything is possible if you want to rewrite the JTable UI to do this, but I wouldn't recommend it. (I certainly don't know how to do it).
    A simpler solution might be to override the isCellEditable(...) method of JTable and prevent editing of column 2 until data in column 1 has been entered etc., etc. You may also want to provide a custom renderer that renderers the empty column differently, maybe with a grey color instead of a white color.

  • Web dynpro screen with multiple rows with columns that can be edited

    Web dynpro screen with multiple rows with columns that can be edited individually:
    Hi
    I am busy creating a screen in web dynpro for ABAP which we would like to make available via Portal ESS (Portal 7).
    I need to add 'n type of table (or almost something like Excel) or something in which someone can type a few paycode numbers (there should be lets say 10 blank rows in which info can be typed in and if I click on a button or so, more rows must be added if necessary.  Then in the other colums stuff like amounts must be entered which one should also be able to edit then and there.
    Can anyone assist in what I can use for this?  There does not seem to be some existing element that I can use.
    Help will be appreciated.
    Regards
    Debbie

    Hi Debbie,
    Whiel Creating table you need to be care full that use chose INPUT FIELD as the CELL EDITOR. Just guessing that if ur table is not editable u might have choosen TextView as default cell editor type.
    check link for details on TABLE UI
    [http://help.sap.com/saphelp_erp2005/helpdata/EN/b5/ac884118aa1709e10000000a155106/frameset.htm]
    easy way is to first add UI ELEMENT TABLE to your VIEW, then right click over it & select create binding from context. After you have a pop up where you can select what columns you want what should be its cell editor etc.
    Greetings
    Prashant

  • Inserting multiple rows with single insert statement ?

    Hi ,,
    Consider a PL/SQL procedure.
    I want to pass an array of values and insert in a table with a single statement.
    Moreover I want to call this procedure to insert multiple rows from OCI program.
    Can some body help ? :(
    Thanks
    Chandu

    Hi Vincent,
    Regular array insert which you have mentioned works in case of insert statement(This is to eliminate multiple calls to server)
    Will it work for passing array to Stored procedure, in this case procedure will be called only once with an array.
    It will be of great help if you give an example.
    Thanks
    Chandra

  • Single Update command to update multiple rows with multiple rows

    Hi Gurus!
    Can I update table A with a result set of table b (multiple rows returns) where a.c1 = b.c1
    regards,
    SH

    As Joel mentioned this update will update all rows in a table based on another one:
    update tableA set seq_no = (select seqno from tableB where tableA.ID = tableB.ID)
    Also, any rows that don't match the select criteria will get updated to null. This could be very bad depending on what you want to do.
    To update a subset of tableA with data from tableB:
    update tableA set seq_no = (select seqno from tableB where tableA.ID = tableB.ID)
    where exists (select 1 from tableB where tableA.ID = tableB.ID)

  • Insert multiple rows with autoincrement id

    I need to insert multiple rows to a table which has an autoincrement PK (unique), e.g:
    Entity:
    public Class Entity{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    Private Long id;
    Facade:
    @PersistenceContext(unitName = "xx-enterprise-ejbPU")
    protected EntityManager em;
    public void create(Entity entity) {
    em.persist(entity);
    Service Class:
    public Class Service implements ServiceLocal{
    @EJB
    private XxxFacadeLocal xxxFacade;
    public void saveEntity(Entity entity){
    xxxFacade.create(entity)
    ManageBean:
    public Class ManageBean
    @EJB
    private ServiceLocal service;
    public void doSave(ActionEvent event)
    service.saveEntity(entity1); //entity.id is set to null, suppose to be generated by DB auto_increment, i.e. insert 3 rows with 3 different ids
    service.saveEntity(entity2);
    service.saveEntity(entity3);
    The result is: Key duplication error on inserting entity2, but entity1 is inserted into DB with id auto increased correctly.
    If I insert only one row each time for test purpose, everything works as expected.
    But what I need is to insert multiple rows. How to do it?
    Thank you in advance.

    Like this (although the @Basic annotation is very much unnecessary). So if it isn't happening you must have made a mistake somewhere. Are you sure the ID column actually has auto_increment?
    Also if you are using Hibernate as the persistence provider and you put it on the classpath, check the packages of the annotations you are using; Hibernate and JPA share some with the same name unfortunately.

  • Updating Multiple Rows With A Sequence

    I'm trying to update multiple rows of data in one column based on if its date is greater than a certain date. Starting with the lowest date from those dates I'll give it a 2000 and every ascending date from that point will be another number in sequence (2001, 2002, 2003, etc.).
    Apologization Edit:
    11g XE
    Edited by: spysmily1 on Jun 4, 2012 5:50 PM
    Edited by: spysmily1 on Jun 4, 2012 5:51 PM

    I would use a counter and start at a specific number. Then I would try to keep updating with this number and incrementing each time. The part I can't quite grasp is how to use this number with the lowest record and apply this sequence to each date that ascends from there. What I was going to try to come up with is something like:
    DECLARE
    counter := 2000;
    BEGIN
    loop
    update table_name
    set column_name = counter
    where date > specified date;
    counter := counter + 1;
    end loop;
    This is my first thought but I couldn't see a way to just update the first one that is greater than the specified date and then keep cycling through the dates until the last date(most recent). I know I would need a loop but what can I set that loop to so it would know when to stop. I could use a variable I know is less than the total amount that need to be altered.
    Edited by: spysmily1 on Jun 4, 2012 6:21 PM

  • Updating multiple rows with different values

    Hi!
    I have a problem. I need to update more then 1000 rows with different values. How can I do it?
    For exsample i have table:
    id; color, date,
    1 red
    2 green
    3 white
    I need to update date field.
    Update table
    set date='01.02.03'
    where id=1
    Update table
    set date='01.03.03'
    where id=2
    Maybe there is way how to update multiple rows at one query?
    Sorry for my bad english.
    Thanks!

    Hi,
    You can try this
    UPDATE TABLE SET DATE = CASE
                        WHEN ID = 1 THEN TO_DATE('01-02-03','DD-MM-RR')
                        WHEN ID = 2 THEN TO_DATE('01-03-03','DD-MM-RR')
                        ENDcheers
    VT

  • Retreiving multiple rows with stored procedures

    Hi,
    I'm having a little problem over here. I need to retreive some data (from an oracle db) via stored procedures. But I don't know how I can retreive multiple rows because when I execute a stored procedure which gives more dan 1 row back, Jave throws an exception.
    If someone could show me an example (or url) from how it should be done, it will be very much appreciated :-)
    Thanks in advance.

    A collection of (mostly) fully working example programs is provided by Oracle.
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
    I think what you're looking for it the RefCursor example, under "JDBC Basic Samples"

  • Highlight multiple rows with coding

    Hi all,
    Can anybody solved my problem?
    I have 3 JTable which are dependent of each other.
    Hence if i select a row in one of them, the other 2 need to highlighted
    respectively.
    I understand that using
    JTable.setRowSelectionInterval(int index0, int index1)
    can highlight rows by code, but it needs to be in a running order.
    I need to accomodate selection of multiple rows, some not in a running order.
    Anyway, thanks for your help in advance...

    Hi,
    Try compiling what I wrote below and running it. I'm pretty sure this is what you are trying to do?! Let me know if this is what you want.
    Thanks,
    code below
    package mypackage;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    import java.util.EventObject;
    public class Dialog1 extends JDialog {
    JPanel _mainPanel;
    JTable _table1;
    JTable _table2;
    JTable _table3;
    MyListSelectionListener _table1Lstnr;
    MyListSelectionListener _table2Lstnr;
    MyListSelectionListener _table3Lstnr;
    Object[] _tablecol = {"Column1", "Column2", "Column3"};
    Object[][] _tablerow = { {"row1", "row1", "row1"},
    {"row2", "row2", "row2"},
    {"row3", "row3", "row3"},
    {"row4", "row4", "row4"},
    {"row5", "row5", "row5"},
    {"row6", "row6", "row6"}};
    Dimension TABLE_DIM = new Dimension( 50, 100 );
    public Dialog1() {
    this.setTitle("Test Frame");
    this.setModal(true);
    init();
    public void init() {
    _mainPanel = new JPanel( new GridBagLayout() );
    GridBagConstraints gbConstraints = new GridBagConstraints( 0,0,1,1,1,0,
    GridBagConstraints.NORTHWEST,GridBagConstraints.HORIZONTAL,
    new Insets(5,5,5,5),0,0);
    table1 = new JTable(tablerow, _tablecol);
    _table1.setName("table1");
    _table1.setColumnSelectionAllowed(false);
    _table1.setRowSelectionAllowed(true);
    table1.setSelectionMode(ListSelectionModel.MULTIPLEINTERVAL_SELECTION);
    table1Lstnr = new MyListSelectionListener(table1);
    table1.getSelectionModel().addListSelectionListener( table1Lstnr );
    JScrollPane table1SP = new JScrollPane( _table1 );
    table1SP.setPreferredSize( TABLE_DIM );
    _mainPanel.add( table1SP, gbConstraints );
    gbConstraints.gridy = 1;
    table2 = new JTable(tablerow, _tablecol);
    _table2.setName("table2");
    _table2.setColumnSelectionAllowed(false);
    _table2.setRowSelectionAllowed(true);
    table2.setSelectionMode(ListSelectionModel.MULTIPLEINTERVAL_SELECTION);
    table2Lstnr = new MyListSelectionListener(table1);
    table2.getSelectionModel().addListSelectionListener( table2Lstnr );
    JScrollPane table2SP = new JScrollPane( _table2 );
    table2SP.setPreferredSize( TABLE_DIM );
    _mainPanel.add( table2SP, gbConstraints );
    gbConstraints.gridy = 2;
    gbConstraints.weighty = 1;
    table3 = new JTable(tablerow, _tablecol);
    _table3.setName("table3");
    _table3.setColumnSelectionAllowed(false);
    _table3.setRowSelectionAllowed(true);
    table3.setSelectionMode(ListSelectionModel.MULTIPLEINTERVAL_SELECTION);
    table3Lstnr = new MyListSelectionListener(table1);
    table3.getSelectionModel().addListSelectionListener( table3Lstnr );
    JScrollPane table3SP = new JScrollPane( _table3 );
    table3SP.setPreferredSize( TABLE_DIM );
    _mainPanel.add( table3SP, gbConstraints );
    this.getContentPane().add( _mainPanel );
    class MyListSelectionListener implements ListSelectionListener {
    JTable selectedTable;
    MyListSelectionListener(JTable table) {
    selectedTable = table;
    public void valueChanged(ListSelectionEvent e) {
    String tableName = selectedTable.getName();
    int[] selectedRows;
    if( tableName.equals(_table1.getName()) ) {
    selectedRows = _table1.getSelectedRows();
    table2.getSelectionModel().removeListSelectionListener( table2Lstnr );
    table3.getSelectionModel().removeListSelectionListener( table3Lstnr );
    _table2.clearSelection();
    _table3.clearSelection();
    for( int i=0;i<selectedRows.length;i++){
    _table2.addRowSelectionInterval(selectedRows,selectedRows[i]);
    _table3.addRowSelectionInterval(selectedRows[i],selectedRows[i]);
    table2Lstnr = new MyListSelectionListener(table2);
    table3Lstnr = new MyListSelectionListener(table3);
    table2.getSelectionModel().addListSelectionListener( table2Lstnr );
    table3.getSelectionModel().addListSelectionListener( table3Lstnr );
    } else if( tableName.equals( _table2.getName()) ) {
    selectedRows = _table2.getSelectedRows();
    table1.getSelectionModel().removeListSelectionListener( table1Lstnr );
    table3.getSelectionModel().removeListSelectionListener( table3Lstnr );
    _table1.clearSelection();
    _table3.clearSelection();
    for( int i=0;i<selectedRows.length;i++){
    _table1.addRowSelectionInterval(selectedRows[i],selectedRows[i]);
    _table3.addRowSelectionInterval(selectedRows[i],selectedRows[i]);
    table1Lstnr = new MyListSelectionListener(table1);
    table3Lstnr = new MyListSelectionListener(table3);
    table1.getSelectionModel().addListSelectionListener( table1Lstnr );
    table3.getSelectionModel().addListSelectionListener( table3Lstnr );
    } else if( tableName.equals( _table3.getName()) ) {
    selectedRows = _table3.getSelectedRows();
    table1.getSelectionModel().removeListSelectionListener( table1Lstnr );
    table2.getSelectionModel().removeListSelectionListener( table2Lstnr );
    _table1.clearSelection();
    _table2.clearSelection();
    for( int i=0;i<selectedRows.length;i++){
    _table1.addRowSelectionInterval(selectedRows[i],selectedRows[i]);
    _table2.addRowSelectionInterval(selectedRows[i],selectedRows[i]);
    table1Lstnr = new MyListSelectionListener(table1);
    table2Lstnr = new MyListSelectionListener(table2);
    table1.getSelectionModel().addListSelectionListener( table1Lstnr );
    table2.getSelectionModel().addListSelectionListener( table2Lstnr );
    public static void main(String[] args) {
    Dialog1 dialog = new Dialog1();
    dialog.setSize( new Dimension( 400, 400 ) );
    dialog.setVisible(true);

  • Table maint genertr inserting multiple rows with all fields editable

    Hi
    I have created a ztable in se11 and maintained table maintenance generator SM30.
    Now i need to insert multiple rows into the table with all fields editable.
    How can i achieve this?
    Thanks in advance.

    >
    deepak thimmegowda wrote:
    > Hi
    >
    > I have created a ztable in se11 and maintained table maintenance generator SM30.
    >
    > Now i need to insert multiple rows into the table with all fields editable.
    >
    > How can i achieve this?
    >
    > Thanks in advance.
    Create a Table maintenance generator with One Step .
    regards,
    Jinson.

  • Filling Multiple Rows With Text

    I'd like to fill down 10 rows with the text FS1000. This I can do, but then how would I increase the value after the FS by 1 for another ten rows and so on until reaching FS2000.
    FS1000
    FS1000
    FS1000
    FS1000
    FS1000
    FS1000
    FS1000
    FS1000
    FS1000
    FS1000
    FS1001
    FS1001
    FS1001
    FS1001
    FS1001
    FS1001
    FS1001
    FS1001
    FS1001
    FS1001
    etc.

    One, maybe the only, way to approach this is by filling down an appropriate formula. If the list starts in row 1 of a table, then placing the following formula in the first cell and dragging down the fill handle will do the trick, I think:
    ="FS"&INT((ROW()-1)/10 + 1000)

  • Result displaying multiple rows with Single Record

    I created DB adapter and using transformation to display the result set. Expecting 4 rows as a result but it displays one row 4 times.
    SOA - Studio Edition Version 11.1.1.2.0,
    Database - DB2,
    DB Adapter - xsd
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="F4102Collection" type="F4102Collection"/>
    <xs:complexType name="F4102Collection">
    <xs:sequence>
    <xs:element name="F4102" type="F4102" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="F4102">
    <xs:sequence>
    <xs:element name="ibitm" type="xs:int"/>
    <xs:element name="iblitm" type="xs:string" minOccurs="0"/>
    <xs:element name="ibaitm" type="xs:string" minOccurs="0"/>
    <xs:element name="ibmcu" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="cd_DBASelect_ITMInputParameters" type="cd_DBASelect_ITM"/>
    <xs:complexType name="cd_DBASelect_ITM">
    <xs:sequence>
    <xs:element name="ITM" type="xs:int" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    Adapter WSDL
    <?binding.jca cd_DBA_db.jca?>
    <wsdl:definitions name="cd_DBA" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/CD_Application/CD_JDE1/cd_DBA" xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/CD_Application/CD_JDE1/cd_DBA" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA">
    <plt:partnerLinkType name="cd_DBA_plt">
    <plt:role name="cd_DBA_role">
    <plt:portType name="tns:cd_DBA_ptt"/>
    </plt:role>
    </plt:partnerLinkType>
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" schemaLocation="xsd/cd_DBA_table.xsd"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="cd_DBASelect_inputParameters">
    <wsdl:part name="cd_DBASelect_inputParameters" element="top:cd_DBASelect_ITMInputParameters"/>
    </wsdl:message>
    <wsdl:message name="F4102Collection_msg">
    <wsdl:part name="F4102Collection" element="top:F4102Collection"/>
    </wsdl:message>
    <wsdl:portType name="cd_DBA_ptt">
    <wsdl:operation name="cd_DBASelect">
    <wsdl:input message="tns:cd_DBASelect_inputParameters"/>
    <wsdl:output message="tns:F4102Collection_msg"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>

    James Thanks for reply.
    I am using BPEL. I am seeing these 4 rows in XML out put.
    My Query is very simple.
    select ibitm,iblitm,ibaitm,ibmcu from accdtaa73/f4102 where ibitm = InputToBPEL.
    o/p should see these 4 rows.
    IBLITM     IBMCU
    2002313 AGRT
    2002313 AG00
    2002313 FAR0
    2002313 FA00
    But o/p is
    IBLITM     IBMCU
    2002313 AGRT
    2002313 AGRT
    2002313 AGRT
    2002313 AGRT
    Here is o/p of this BPEL
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
         <env:Header>
              <wsa:MessageID>urn:F60F8800A01311DFBFAC73A17F5C618C</wsa:MessageID>
              <wsa:ReplyTo>
                   <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
              </wsa:ReplyTo>
         </env:Header>
         <env:Body>
              <processResponse xmlns:client="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess" xmlns="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess">
                   <client:element1>
                        <client:UPC> AGRT</client:UPC>
                        <client:LITM>2002313</client:LITM>
                   </client:element1>
                   <client:element1>
                        <client:UPC> AGRT</client:UPC>
                        <client:LITM>2002313</client:LITM>
                   </client:element1>
                   <client:element1>
                        <client:UPC> AGRT</client:UPC>
                        <client:LITM>2002313</client:LITM>
                   </client:element1>
                   <client:element1>
                        <client:UPC> AGRT</client:UPC>
                        <client:LITM>2002313</client:LITM>
                   </client:element1>
              </processResponse>
         </env:Body>
    </env:Envelope>
    XSL Script
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="XSD">
    <schema location="../xsd/cd_DBA_table.xsd"/>
    <rootElement name="F4102Collection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="WSDL">
    <schema location="../CD_BPELProcess.wsdl"/>
    <rootElement name="processResponse" namespace="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.2.0(build 091103.1205.1216) AT [WED AUG 04 11:39:11 PDT 2010]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:client="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    exclude-result-prefixes="xsi xsl ns0 xsd client plnk wsdl xpath20 bpws mhdr oraext dvm hwf med ids xdk xref ora socket ldap">
    <xsl:template match="/">
    <client:processResponse>
    <xsl:for-each select="/ns0:F4102Collection/ns0:F4102">
    <client:element1>
    <client:UPC>
    <xsl:value-of select="ns0:ibmcu"/>
    </client:UPC>
    <client:LITM>
    <xsl:value-of select="ns0:iblitm"/>
    </client:LITM>
    </client:element1>
    </xsl:for-each>
    </client:processResponse>
    </xsl:template>
    </xsl:stylesheet>

Maybe you are looking for

  • Adobe Reader not recognizing the (correct) password on a password protected document

    I have been opening password protected documents with Adobe Reader for months. My client just changed the password, and now, using the correct new password (I'm positive it's the correct password because I can open it on other computers, and no, my c

  • Error 1100 in app store during software update

    For the past couple of days on both of my Mac machines I have been receiving the following error message while trying to update software in App Store. An error has occurred. The operation couldn't be completed. (NSURLEErrorDomain error -1100.) Any id

  • How do I set up a dual boot with 10.8 and 10.7

    I want to set u a dual boot system using so10.8 and os 10.7 I have my disk for 10.7 and 10.8 is curently my os. I have an empety hard drive partition I want to install 10.7 on to but when I try to start up my computer with the instalation disk it giv

  • Help needed unravelling 2003 Server Security Groups

    Hi I have just taken over managing a set of six domains for a care home network. The domains have previously been managed by different people. I am not overwhelmed by documentation but most of the AD structures are not that complex; so it's easy enou

  • A mac address for a Vlan

    Could someone please tell me if a mac address is getting created as a result of creating a layer 2 Vlan? Thanks..