Getting extra rows in 2lis_02_hdr extraction

Hi Gurus,
Facing an issue and requesting your help ..
When I am building setup tables for Purchasing conntent, I am ending up with multiple rows for the same PO in 2lis_02_hdr in RSA3. I have deleted the older entries and done all other required stuff. However somehow the numbers not look alright to me. Attaching a screenshot from RSA3, this is for one PO, and there are multiple request date/posting date. Am I missing something here?
Thanks in advance.
Deb

Hello Debajyoti,
You can expect multiple entries for same Purchase doc in setup tables. The reason is that the same document was changed/cancelled many times during a particular time frame.
You can know this by the value of ROCANCEL. In your screenshot the ROCANCEL is changing from ' ' to 'X' and then back to ' '. If you go to the base table EKPO you can check the code for status of records. (ideally the Trans. PD) you will know that the same document is rejected and released multiple times.
Below is the example where the same record is present multiple times with rejected and changed values in the same extractor.
Please take a look at the ROCANCEL mechanism and you will understand why it is happening.
Thanks
Amit

Similar Messages

  • Why am i getting extra rows in pivot/rollup?

    For this weekly PRoduct List Report by Period, rolled up to district, and company.
    1) Why am I getting an extra rollup record ( like 4th record)? Otherwise Totals are correct.
    2) When period only contains 4 weeks, There should only be 4 weeks, not 5, HOw can I prevent the Week 5 columns.
    Note, Districtname, and regionname are only included to help me visualize complex decode statements.
    WITH dummydata AS
      SELECT       '0177'  AS storenbr, 2 AS period, 1 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 16  AS sold, 100 AS total from dual UNION ALL
      SELECT       '0177'  AS storenbr, 2 AS period, 1 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 87  AS sold, 100 AS total from dual UNION ALL
      SELECT       '0177'  AS storenbr, 2 AS period, 2 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 26  AS sold, 100 AS total from dual UNION ALL
      SELECT       '0177'  AS storenbr, 2 AS period, 2 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 97  AS sold, 100 AS total from dual UNION ALL
      SELECT       '0277'  AS storenbr, 2 AS period, 1 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 16  AS sold, 100 AS total from dual UNION ALL
      SELECT       '0277'  AS storenbr, 2 AS period, 1 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 87  AS sold, 100 AS total from dual UNION ALL
      SELECT       '0277'  AS storenbr, 2 AS period, 2 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 26  AS sold, 100 AS total from dual UNION ALL
      SELECT       '0277'  AS storenbr, 2 AS period, 2 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 97  AS sold, 100 AS total from dual UNION ALL
      SELECT       '6504'  AS storenbr, 2 AS period, 1 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 18  AS sold, 100 AS total from dual UNION ALL
      SELECT       '6504'  AS storenbr, 2 AS period, 1 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 89  AS sold, 100 AS total from dual UNION ALL
      SELECT       '6504'  AS storenbr, 2 AS period, 2 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 28  AS sold, 100 AS total from dual UNION ALL
      SELECT       '6504'  AS storenbr, 2 AS period, 2 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 99  AS sold, 100 AS total from dual
    , store_details as
      SELECT    '0177'  AS storenbr, 'Bingham' as districtname,  'R-15 James'    as regionname, 'C-Atlantic'  as companyname    from dual   UNION ALL
      SELECT    '0277'  AS storenbr, 'Dunley'  as districtname,  'R-15 James'    as regionname, 'C-Atlantic'  as companyname    from dual   UNION ALL
      SELECT    '6504'  AS storenbr, 'Murdoc'  as districtname,  'R-16 Reynolds' as regionname, 'C-Soutn'     as companyname    from dual  
    , pivoted as
      select     storenbr
      ,          plu
      ,          max(descrip)                                    as  Descrip
      ,          max(decode(dd.weeknbr,  1,  sold    , 0))       as  Week1Sold
      ,          max(decode(dd.weeknbr,  1,  total   , 0))       as  Week1total
      ,          max(decode(dd.weeknbr,  2,  sold    , 0))       as  Week2Sold
      ,          max(decode(dd.weeknbr,  2,  total   , 0))       as  Week2total
      ,          max(decode(dd.weeknbr,  3,  sold    , 0))       as  Week3Sold
      ,          max(decode(dd.weeknbr,  3,  total   , 0))       as  Week3total
      ,          max(decode(dd.weeknbr,  4,  sold    , 0))       as  Week4Sold
      ,          max(decode(dd.weeknbr,  4,  total   , 0))       as  Week4total
      ,          max(decode(dd.weeknbr,  5,  sold    , 0))       as  Week5Sold
      ,          max(decode(dd.weeknbr,  5,  total   , 0))       as  Week5total
      from      dummydata dd
      group by  storenbr, plu
      order by  storenbr, plu
    select       decode(grouping(companyname),       0,  companyname,     'GRAND') as companyname
    ,            decode(grouping(regionname),        0,  regionname,       decode(grouping(companyname),  0, companyname,      'GRAND')) as regionname
    ,            decode(grouping(districtname),      0,  districtname,     decode(grouping(regionname),   0, regionname,        decode(grouping(companyname), 0, companyname,   'GRAND'))) as districtname
      ,          decode(grouping(stores.storenbr),   0,  stores.storenbr,  decode(grouping(districtname), 0, districtname,      decode(grouping(regionname),  0, regionname,     decode(grouping(companyname), 0, companyname,      'GRAND'))))        as storenbr
      ,          decode(grouping(plu),               0,  plu,              decode(grouping(districtname), 0,   'DISTRICT-PLU',   decode(grouping(regionname),   0,   'REGION-PLU',      decode(grouping(companyname),       0,  'COMPANY',     'GRAND'))))      as plu
    ,            decode(grouping(plu),               0,  max(descrip),     'TOTALS')                                                                   as description
      ,          sum(Week1Sold)                                 as  Week1Sold
      ,          sum(Week1total)                                as  Week1total
      ,          sum(Week2Sold)                                 as  Week2Sold
      ,          sum(Week2total)                                as  Week2total
      ,          sum(Week3Sold)                                 as  Week3Sold
      ,          sum(Week3total)                                as  Week3total
      ,          sum(Week4Sold)                                 as  Week4Sold
      ,          sum(Week4total)                                as  Week4total
      ,          sum(Week5Sold)                                 as  Week5Sold
      ,          sum(Week5total)                                as  Week5total
    from pivoted pvt
    inner  join  store_details   stores on  pvt.storenbr = stores.storenbr
    group by    rollup   (companyname, regionname, districtname,   stores.storenbr,  PLU  )
    COMPANYNAME REGIONNAME    DISTRICTNAME  STORENBR      PLU          DESCRIPTION WEEK1SOLD              WEEK1TOTAL             WEEK2SOLD              WEEK2TOTAL             WEEK3SOLD              WEEK3TOTAL             WEEK4SOLD              WEEK4TOTAL             WEEK5SOLD              WEEK5TOTAL            
    C-Soutn     R-16 Reynolds Murdoc        6504          40           tomato      18                     100                    28                     100                    0                      0                      0                      0                      0                      0                     
    C-Soutn     R-16 Reynolds Murdoc        6504          50           bacon       89                     100                    99                     100                    0                      0                      0                      0                      0                      0                     
    C-Soutn     R-16 Reynolds Murdoc        6504          DISTRICT-PLU TOTALS      107                    200                    127                    200                    0                      0                      0                      0                      0                      0                     
    C-Soutn     R-16 Reynolds Murdoc        Murdoc        DISTRICT-PLU TOTALS      107                    200                    127                    200                    0                      0                      0                      0                      0                      0                     
    C-Soutn     R-16 Reynolds R-16 Reynolds R-16 Reynolds REGION-PLU   TOTALS      107                    200                    127                    200                    0                      0                      0                      0                      0                      0                     
    C-Soutn     C-Soutn       C-Soutn       C-Soutn       COMPANY      TOTALS      107                    200                    127                    200                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  R-15 James    Dunley        0277          40           tomato      16                     100                    26                     100                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  R-15 James    Dunley        0277          50           bacon       87                     100                    97                     100                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  R-15 James    Dunley        0277          DISTRICT-PLU TOTALS      103                    200                    123                    200                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  R-15 James    Dunley        Dunley        DISTRICT-PLU TOTALS      103                    200                    123                    200                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  R-15 James    Bingham       0177          40           tomato      16                     100                    26                     100                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  R-15 James    Bingham       0177          50           bacon       87                     100                    97                     100                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  R-15 James    Bingham       0177          DISTRICT-PLU TOTALS      103                    200                    123                    200                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  R-15 James    Bingham       Bingham       DISTRICT-PLU TOTALS      103                    200                    123                    200                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  R-15 James    R-15 James    R-15 James    REGION-PLU   TOTALS      206                    400                    246                    400                    0                      0                      0                      0                      0                      0                     
    C-Atlantic  C-Atlantic    C-Atlantic    C-Atlantic    COMPANY      TOTALS      206                    400                    246                    400                    0                      0                      0                      0                      0                      0                     
    GRAND       GRAND         GRAND         GRAND         GRAND        TOTALS      313                    600                    373                    600                    0                      0                      0                      0                      0                      0                      ;

    Gotcha. What about the variable number of columns based on the number of weeks in a period?
    When I removed and renamed some columns, I saw that the PLU is at the bottom of the rollup, not the storenbr.
    = The PLU's rollup to the storebnr, and then storenbr to district. Thanks.
    Someone might learn a cool technique by looking at new code. See note below.
    WITH dummydata AS
      SELECT       'Store1'  AS storenbr, 2 AS period, 1 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 16  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store1'  AS storenbr, 2 AS period, 1 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 87  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store1'  AS storenbr, 2 AS period, 2 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 26  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store1'  AS storenbr, 2 AS period, 2 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 97  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store2'  AS storenbr, 2 AS period, 1 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 16  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store2'  AS storenbr, 2 AS period, 1 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 87  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store2'  AS storenbr, 2 AS period, 2 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 26  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store2'  AS storenbr, 2 AS period, 2 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 97  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store3'  AS storenbr, 2 AS period, 1 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 18  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store3'  AS storenbr, 2 AS period, 1 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 89  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store3'  AS storenbr, 2 AS period, 2 AS weeknbr,   '40' AS PLU, 'tomato'  as descrip, 28  AS used, 100 AS wasted from dual UNION ALL
      SELECT       'Store3'  AS storenbr, 2 AS period, 2 AS weeknbr,   '50' AS PLU, 'bacon'   as descrip, 99  AS used, 100 AS wasted from dual
    , store_details as
      SELECT    'Store3'  AS storenbr, 'D-Bingham' as districtname,  'R-15 James'    as regionname, 'C-Atlantic'  as companyname    from dual   UNION ALL
      SELECT    'Store2'  AS storenbr, 'D-Dunley'  as districtname,  'R-15 James'    as regionname, 'C-Atlantic'  as companyname    from dual   UNION ALL
      SELECT    'Store1'  AS storenbr, 'D-Murdoc'  as districtname,  'R-16 Reynolds' as regionname, 'C-Soutn'     as companyname    from dual  
    , pivoted as
      select     storenbr
      ,          plu
      ,          max(descrip)                                     as  Descrip
      ,          max(decode(dd.weeknbr,  1,  used    , 0))        as  Week1used
      ,          max(decode(dd.weeknbr,  1,  wasted   , 0))       as  Week1wasted
      ,          max(decode(dd.weeknbr,  2,  used    , 0))        as  Week2used
      ,          max(decode(dd.weeknbr,  2,  wasted   , 0))       as  Week2wasted
      ,          max(decode(dd.weeknbr,  3,  used    , 0))        as  Week3used
      ,          max(decode(dd.weeknbr,  3,  wasted   , 0))       as  Week3wasted
      ,          max(decode(dd.weeknbr,  4,  used    , 0))        as  Week4used
      ,          max(decode(dd.weeknbr,  4,  wasted   , 0))       as  Week4wasted
      ,          max(decode(dd.weeknbr,  5,  used    , 0))        as  Week5used
      ,          max(decode(dd.weeknbr,  5,  wasted   , 0))       as  Week5wasted
      from      dummydata dd
      group by  storenbr, plu
      order by  storenbr, plu
    select       decode(grouping(stores.storenbr),  0,  stores.storenbr,     decode(grouping(districtname), 0, districtname,  decode(grouping(regionname),  0, regionname,  decode(grouping(companyname), 0, companyname,  'GRAND'))))   as storenbr
      ,          decode(grouping(descrip), 0, descrip, 'TOTAL')   as descrip
      --==       I substited Description for clarity
      ,          sum(Week1used)                                                   as  Week1used
      ,          sum(Week1wasted)                                                 as  Week1wasted
      ,          sum(Week2used)                                                   as  Week2used
      ,          sum(Week2wasted)                                                 as  Week2wasted
      ,          sum(Week3used)                                                   as  Week3used
      ,          sum(Week3wasted)                                                 as  Week3wasted
      ,          sum(Week4used)                                                   as  Week4used
      ,          sum(Week4wasted)                                                 as  Week4wasted
      ,          sum(Week5used)                                                   as  Week5used
      ,          sum(Week5wasted)                                                 as  Week5wasted
      ,          companyname
    from pivoted pvt
    inner  join  store_details   stores on  pvt.storenbr = stores.storenbr
    group by     companyname
              ,  rollup  (   regionname
                           , districtname
                           , stores.storenbr  
                           , descrip
           ;New output:
    STORENBR      DESCRIP WEEK1USED              WEEK1WASTED            WEEK2USED              WEEK2WASTED            WEEK3USED              WEEK3WASTED            WEEK4USED              WEEK4WASTED            WEEK5USED              WEEK5WASTED            COMPANYNAME
    Store1        bacon   87                     100                    97                     100                    0                      0                      0                      0                      0                      0                      C-Soutn    
    Store1        tomato  16                     100                    26                     100                    0                      0                      0                      0                      0                      0                      C-Soutn    
    Store1        TOTAL   103                    200                    123                    200                    0                      0                      0                      0                      0                      0                      C-Soutn    
    D-Murdoc      TOTAL   103                    200                    123                    200                    0                      0                      0                      0                      0                      0                      C-Soutn    
    R-16 Reynolds TOTAL   103                    200                    123                    200                    0                      0                      0                      0                      0                      0                      C-Soutn    
    C-Soutn       TOTAL   103                    200                    123                    200                    0                      0                      0                      0                      0                      0                      C-Soutn    
    Store2        bacon   87                     100                    97                     100                    0                      0                      0                      0                      0                      0                      C-Atlantic 
    Store2        tomato  16                     100                    26                     100                    0                      0                      0                      0                      0                      0                      C-Atlantic 
    Store2        TOTAL   103                    200                    123                    200                    0                      0                      0                      0                      0                      0                      C-Atlantic 
    D-Dunley      TOTAL   103                    200                    123                    200                    0                      0                      0                      0                      0                      0                      C-Atlantic 
    Store3        bacon   89                     100                    99                     100                    0                      0                      0                      0                      0                      0                      C-Atlantic 
    Store3        tomato  18                     100                    28                     100                    0                      0                      0                      0                      0                      0                      C-Atlantic 
    Store3        TOTAL   107                    200                    127                    200                    0                      0                      0                      0                      0                      0                      C-Atlantic 
    D-Bingham     TOTAL   107                    200                    127                    200                    0                      0                      0                      0                      0                      0                      C-Atlantic 
    R-15 James    TOTAL   210                    400                    250                    400                    0                      0                      0                      0                      0                      0                      C-Atlantic 
    C-Atlantic    TOTAL   210                    400                    250                    400                    0                      0                      0                      0                      0                      0                      C-Atlantic  the trick I used here to avoid individual rollup columns that become null on the rollup.
    I used the GROUPING Function and DECODE statement to let my storenbr column reflect the rollup level. The DECODE tells the query to use the value in the column in the level up
    instead of outputing NULL. The GROUPING function tells the query when the rollup occurs. See the storenbr column is never blank.
    There is no rollup on companyname, so no need to place in rollup clause.
    Feel free to offer better worded explanation.

  • Export to Excel - Problem with extra rows

    Hi have a report that has 3 groups. I suppress the group headers and am using the group footers for totals.
    When I export to excel, I get extra rows in the excel file for the suppressed sections. How can I get rid of these?
    Thanks,
    Linda

    I can use this to get out additional rows on my excel export. However, in the columns, I usually put some distance between each column so the columns won't run together. This is giving me extra columns. It would be much easier if I did not have to put that distance. Is there a way to format the field to have a leading or trailing space so all the fields don't run together on the report?
    example:
    field1
    field2
    field 3
    if all these fields have data the output would look like:
    field1datafield2datafield3data
    how can I make it look like:
    field1data field2data field3data

  • Extra row in data grid

    after I load a object into data grid created from a web
    service it will always seem to create a new blank row. When I get a
    error after clicking on it, it always says "-1" for the rows count.
    when I shrink the size of the datagrid it elminates some of the
    extra row, but still there is a bit of it showing. how do I resize
    the datagrid so it doesn't spit out a extra row, or a part of one.
    http://www.ctrlzsc.com/other/pic.png
    this is a pic showing the extra row, just look where my badly drawn
    arrow is pointing to.

    hi, xyco45
    you can set the dataGrid's height and the rowHeight. In my
    experience, for example, first, you set the headerHeight="25" and
    rowHeight="22", the height will be setted
    (headerHeight+rowHeight*(rowNumbers)+1) or
    (headerHeight+rowHeight*(rowNumbers)+2), I thought this question
    will be solved.

  • XML DB: is it possible to get a row for each element in a container element?

    I have an XML document containing a container element (collection). If I query, using an XPath expression, the contained elements I get a row for each container element with the contained element concatenated. Is it possible to get a row for each contained element?
    I run this simple query:
    select extract(xmltype('<colors><color>Red</color><color>Green</color></colors>')
    , '/colors/color/text()').getstringval() from dual
    And get this result:
    EXTRACT(XMLTYPE('<COLORS><COLOR>RED</COLOR><COLOR>GREEN</COLOR></COLORS>'),'/COL
    RedGreen
    1 row selected.
    What I would like to have is:
    Red
    Green
    2 rows selected.
    Wishful thinking or possible? Many thanks!

    Sure. This is where our XMLSequence() function comes in. It allows you to treat the top-level nodes in a nodeset as if they were rows in a table when combined with the TABLE() operator. Here's an example.
    First, to make the SQL look a little cleaner, I like to define a function like this:
    create or replace function testdoc return xmltype as
    begin
      return xmltype('<colors><color>Red</color><color>Green</color></colors>');
    end;.
    To break out the nodeset of <color> elements as a table, we use the following query:
    select value(list_of_color_elements).extract('*/text()').getStringVal() as color
    from TABLE( XMLSequence( extract(testdoc(),'/colors/color'))) list_of_color_elements.
    Or, using the new-in-9.2 extractValue() operator so we don't have to remember the text() part:
    select extractValue( value(list_of_color_elements), '.') as color
    from TABLE( XMLSequence( extract( testdoc() ,'/colors/color'))) list_of_color_elements.
    Here the TABLE(XMLSequence(...)) combo produces a table of XMLType, with one XMLType object in each row of the table.
    In general, if the XMLType instance were coming from an XMLType table xmltab the query would look like this:
    select extractValue( value(colors), '.') as color
    from xmltab x, /* Important that this table comes earlier in the FROM clause! */
         TABLE( XMLSequence( extract( value(x),'/colors/color'))) colors.
    And if the XMLType were instead in a column of XMLType named doc in a table xmltab, then we would have the syntax:
    select extractValue( value(colors), '.') as color
    from xmltab x, /* Important that this table comes earlier in the FROM clause! */
         TABLE( XMLSequence( extract( x.doc ,'/colors/color'))) colorsOnce you get the hang of it, you'll see that the combination of TABLE(XMLSequence()) to "shred" XML nodes into rows, and XMLAgg() to aggregate fragments of XML across multiple rows back into a single document, is quite powerful.

  • SELECT from XML to get multiple rows

    We are trying to set up web services to facilitate access to a central asset database. I’m able to make the request, & I store the response in the following table:
    CREATE TABLE assets
    (asset_name VARCHAR2(40),
    asset_xml XMLType,
    add_dt DATE);
    Different asset types can have the same name so when I get a response there may be several assets returned with the same name but different types as seen in this formatted XML:
    <soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
    <AssetDetailsResponse>
    <Asset>
    <ID>44535</ID>
    <AssetName>asset1</AssetName>
    <TypeName>Server</TypeName>
    <Status>Active</Status>
    <SerialNumber>jk823</SerialNumber>
    <Business>Finance</Business>
    <Vendor>hewlett packard</Vendor>
    <Location>
    <CountryName>United States</CountryName>
    <StateProvName>Ohio</StateProvName>
    <CityTownName>Cincinnati</CityTownName>
    <Street>2875 Vine Street</Street>
    <PostalCode>45229</PostalCode>
    </Location>
    </Asset>
    <Asset>
    <ID>453051</ID>
    <AssetName>asset1</AssetName>
    <TypeName>Tape Backup</TypeName>
    <Status>Inactive</Status>
    <SerialNumber>s97032</SerialNumber>
    <Business>Sales</Business>
    <Vendor>Any vendor</Vendor>
    <Location>
    <CountryName>United States</CountryName>
    <StateProvName>Ohio</StateProvName>
    <Street>7683 Main Street</Street>
    <CityTownName>Cincinnati</CityTownName>
    <PostalCode>45492</PostalCode>
    </Location>
    </Asset>
    </AssetDetailsResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    The following query works but the assets are strung together rather than on separate rows:
    SQL> SELECT extract(asset_xml, '//AssetName/text()') from gewscadb;
    EXTRACT(ASSET_XML,'//ASSETNAME/TEXT()')
    asset1asset1
    I have tried the following queries to return separate rows but they return “no rows selected”:
    SELECT a.asset_id, a.asset_name
    FROM assets,
    XMLTABLE('/Asset' PASSING assets.asset_xml
    COLUMNS asset_id VARCHAR2(20) PATH '/Asset/ID',
    asset_name VARCHAR2(30) PATH '/Asset/AssetName') a;
    SELECT a.asset_id, a.asset_name
    FROM assets,
    XMLTABLE('/AssetDetailsResponse'
    PASSING assets.asset_xml
    COLUMNS asset_id VARCHAR2(20) PATH '/AssetDetailsResponse/Asset/ID',
    asset_name VARCHAR2(30) PATH '/AssetDetailsResponse/Asset/AssetName') a;
    I suspect there is a problem with my path names in these queries. Can someone please provide some guidance on how I can get a separate row for each asset?

    Hi,
    You must use a double slash to extract assets nodes :
    WITH assets AS (
    SELECT xmltype('<soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
    <AssetDetailsResponse>
    <Asset>
    <ID>44535</ID>
    <AssetName>asset1</AssetName>
    <TypeName>Server</TypeName>
    <Status>Active</Status>
    <SerialNumber>jk823</SerialNumber>
    <Business>Finance</Business>
    <Vendor>hewlett packard</Vendor>
    <Location>
    <CountryName>United States</CountryName>
    <StateProvName>Ohio</StateProvName>
    <CityTownName>Cincinnati</CityTownName>
    <Street>2875 Vine Street</Street>
    <PostalCode>45229</PostalCode>
    </Location>
    </Asset>
    <Asset>
    <ID>453051</ID>
    <AssetName>asset1</AssetName>
    <TypeName>Tape Backup</TypeName>
    <Status>Inactive</Status>
    <SerialNumber>s97032</SerialNumber>
    <Business>Sales</Business>
    <Vendor>Any vendor</Vendor>
    <Location>
    <CountryName>United States</CountryName>
    <StateProvName>Ohio</StateProvName>
    <Street>7683 Main Street</Street>
    <CityTownName>Cincinnati</CityTownName>
    <PostalCode>45492</PostalCode>
    </Location>
    </Asset>
    </AssetDetailsResponse>
    </soapenv:Body>
    </soapenv:Envelope>') asset_xml
    FROM dual
    SELECT a.asset_id, a.asset_name
    FROM assets,
    XMLTABLE(
    '//Asset' -- << Here
    PASSING assets.asset_xml
    COLUMNS asset_id VARCHAR2(20) PATH '/Asset/ID',
             asset_name VARCHAR2(30) PATH '/Asset/AssetName'
    ) a;

  • How to manually insert an extra row of data in to a record set

    hi there, i have a standard query which gets me some rows of
    data
    is there a way to manually add in an extra row of data (an
    position that as row number 1 in the recordset)?
    i've tried to find something on this in google / live docs -
    but alas to no avail
    if anyone could give me a pointer in the right direction
    (just a tag would be a help) i'd be very grateful indeed.
    thanks very much

    thank you very much for your replies, this "union query"
    sounds like the way forward for me - thank you very much i shall go
    and investiage this now.
    the reason i was a bit slow in replying was that in interim i
    had coded around my problem
    <cfif recordset.currentrow eq 1>
    #output the extra row i wanted to add here#
    </cfif>
    which, whilst being a bit crude did do the job - however i
    will check out this union query and if that does what it sounds
    like it will - i'll document my final solution here in case this
    helps anyone else
    thanks again for your help guys

  • SQL*Plus two fetches for getting one row.

    Hi all.
    I have tested following script.
    alter session set events '10046 trace name context forever, level 12';
    select * from dual;And achieved such results (extract from .trc file).
    SQL*Plus: Release 11.2.0.1.0; (Oracle Version 10.2.0.4.0, 11.2.0.1.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          0          0           1
    total        4      0.00       0.00          0          0          0           1SQL*Plus: Release 8.1.7.0.0; (Oracle Version 8.1.7.0.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          1          4           1
    total        5      0.00       0.00          0          1          4           1Allround Automations PL/SQL Developer 8.0.4; (Oracle Version 10.2.0.4.0, 11.2.0.1.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          0          0           1
    total        3      0.00       0.00          0          0          0           1Allround Automations PL/SQL Developer 8.0.4; (Oracle Version 8.1.7.0.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          1          4           1
    total        3      0.00       0.00          0          1          4           11) I can't figure out why sqlplus does TWO fetches for getting ONE row (instead of pl/sql developer).
    8i raw trace
    PARSING IN CURSOR #1 len=31 dep=0 uid=0 oct=3 lid=0 tim=0 hv=3549852361 ad='4a0155c'
    select 'hello world' from dual
    END OF STMT
    PARSE #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=0
    BINDS #1:
    EXEC #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=0
    WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1111838976 p2=1 p3=0
    FETCH #1:c=0,e=0,p=0,cr=1,cu=4,mis=0,r=1,dep=0,og=4,tim=0
    WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1111838976 p2=1 p3=0
    FETCH #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,tim=0
    WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1111838976 p2=1 p3=0
    WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1111838976 p2=1 p3=0
    STAT #1 id=1 cnt=1 pid=0 pos=0 obj=195 op='TABLE ACCESS FULL DUAL '11g raw trace
    PARSING IN CURSOR #3 len=30 dep=0 uid=96 oct=3 lid=96 tim=1581355246985 hv=1158622143 ad='b8a1bcdc' sqlid='5h2yvx92hyaxz'
    select 'hello world' from dual
    END OF STMT
    PARSE #3:c=0,e=130,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1388734953,tim=1581355246984
    EXEC #3:c=0,e=40,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1388734953,tim=1581355247154
    WAIT #3: nam='SQL*Net message to client' ela= 7 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=1581355247252
    FETCH #3:c=0,e=18,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=1388734953,tim=1581355247324
    STAT #3 id=1 cnt=1 pid=0 pos=1 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=1)'
    WAIT #3: nam='SQL*Net message from client' ela= 193 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=1581355247735
    FETCH #3:c=0,e=2,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,plh=1388734953,tim=1581355247800
    WAIT #3: nam='SQL*Net message to client' ela= 5 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=15813552478552) Is there any possibility to view data provided by each fetch?
    Thanks in advance!
    P.S.
    SQL> sho arraysize
    arraysize 15

    Thanks.
    I have tested two statements.
    select 'hello world' from dual where 1=1;
    select 'hello world' from dual where 1=0;When query returns no data, there is only one SQL*Net roundtrip (and one fetch)
    SQL> set autot on statistics
    SQL> select 'hello world' from dual where 1=1;
    'HELLOWORLD
    hello world
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            528  bytes sent via SQL*Net to client
            492  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL> select 'hello world' from dual where 1=0;
    no rows selected
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            329  bytes sent via SQL*Net to client
            481  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processedBut in both cases i found in client trace this sequence of bytes:
    ] nsprecv: 00 00 36 01 00 00 00 00  |..6.....|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 90 19 43 13 00 00  |....C...|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 19 4F 52 41 2D 30  |...ORA-0|
    ] nsprecv: 31 34 30 33 3A 20 6E 6F  |1403:.no|
    ] nsprecv: 20 64 61 74 61 20 66 6F  |.data.fo|
    ] nsprecv: 75 6E 64 0A              |und.    |In first case - it was in 2nd packet and in second case (query returns no data) - part of 1st packet.

  • Select extra row without using UNION ALL in pl/sql

    Hi,
    Can anyone tell me how to select extra row without using UNION or UNION ALL in pl/sql. Actually I want to have my o/p of query as partitioned by designation and ordered by salary and than one extra row which will contain the highest salary in a particular salary. My table has first_name,emp_id,designation and salary column. And I wnt the o/p as.
    Mohinish,12212,SI,46000
    Ram,11212,SSI,47000
    Shyam,12133,SI,48000
    Rick,9898,SI,46000
    Rocky,12312,SSI,56000
    Sariq,23948,SI,43000
    Suman,12789,HR,49000
    Sampy,12780,SI,46000
    Parna,11111,HR,50000
    Now the o/p should be.
    Mohinish,12212,SI,46000
    Rick,9898,SI,46000
    Sariq,23948,SI,43000
    Shyam,12133,SI,48000
    Shyam,12133,SI,48000
    Ram,11212,SSI,47000
    Rocky,12312,SSI,56000
    Rocky,12312,SSI,56000
    Suman,12789,HR,49000
    Parna,11111,HR,50000
    Parna,11111,HR,50000
    Thanks in Advance

    You don't have to do a UNION or UNION ALL in PL/SQL but you would need to in SQL to get the desired output:
    with data_recs
    as (select 'Mohinish' first_name,12212 emp_id,'SI' designation,46000 salary from dual union
         select 'Ram',11212,'SSI',47000 from dual union
         select 'Shyam',12133,'SI',48000 from dual union
         select 'Rick',9898,'SI',46000 from dual union
         select 'Rocky',12312,'SSI',56000 from dual union
         select 'Sariq',23948,'SI',43000 from dual union
         select 'Suman',12789,'HR',49000 from dual union
         select 'Sampy',12780,'SI',46000 from dual union
         select 'Parna',11111,'HR',50000 from dual)
    select first_name, emp_id, designation, salary from data_recs union all
    select s.first_name, s.emp_id, s.designation, s.salary
      from (select first_name,
                   emp_id,
                   designation,
                   salary,
                   row_number() over (partition by designation order by salary desc) high_salary
              from data_recs
             order by designation, salary) s
    where s.high_salary = 1
    order by designation, salary;
    FIRST_NAME  EMP_ID DESIGNATION   SALARY
    Suman        12789 HR             49000
    Parna        11111 HR             50000
    Parna        11111 HR             50000
    Sariq        23948 SI             43000
    Rick          9898 SI             46000
    Mohinish     12212 SI             46000
    Sampy        12780 SI             46000
    Shyam        12133 SI             48000
    Shyam        12133 SI             48000
    Ram          11212 SSI            47000
    Rocky        12312 SSI            56000
    Rocky        12312 SSI            56000

  • Extra row in Ready input query.

    Hi gurus,
    I have developed a  Ready input query and its working fine but in the report i mean after the over all Result row at the end there should be extra row get added by default for entering the data iam not getting the extra row for entering the Data. How to bring that extra row please suggest accordingly
    Regards

    In analyzer, check that Analysis Grid property 'Suppress New Lines' is unchecked.
    Also, check this link http://help.sap.com/SAPHELP_NW70/helpdata/EN/43/f234619e3c4c5de10000000a155369/frameset.htm
    It explains the prerequisites for new input-ready rows for BEx Analzer as well as WAD.

  • Extra row

    hi,
    good day,
    appreciate if some one can advice me how to get rid of the extra row in the array table.
    thanks in advance.
    Attachments:
    table to array.vi ‏13 KB

    see attached and embedded comments
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?
    Attachments:
    table to array2.vi ‏19 KB

  • ORA-01423: error encountered while checking for extra rows in exact fetch

    ERROR at line 1:
    ORA-01423: error encountered while checking for extra rows in exact fetch
    ORA-01722: invalid number
    ORA-06512: at "Department.get_emp_name", line 57
    ORA-06512: at line 14
    Hi
    The above are the error messages I am running into and I am not sure what it means at all. I do have a query which select few rows into cursor
    cursor c_requested is
    select * from departments where emp_id in (1, 2, 3)
    now from these rows I again creating a query dynamically
    open c_requested;
    loop
    fetch c_requested into deptID, name, authorized; -- declared variables
    exit when c_requested%NotFound;
    sqlstring := 'Select name from employees where deptID = ' || deptID || ' and Authorized = ' || authorized;
    begin
    execute immediate sqlstring into description; -- declared variable
    exit;
    exception when no_data_found then
    description := 'FILTER_OUT';
    end;
    end loop;
    close c_requested;
    This code is inside a function get_emp_name(). When I execute this function I am getting the above errors. I really appreciate all your help. Please let me know if you need more information.
    Thank you very much

    Thank you very much damorgan,
    I looked through my code and figured out what was wrong. I had a varchar2 column in the table where I was passing a value 999 instead of '999'. Thanks again.
    I have one more question. I am using cursor to loop through.. here is my code
    rowcount integer;
    cursor c_emp is
    select * from employees where empID in (....);
    begin
    open c_emp;
    rowcount := c_emp%RowCount;
    loop
    end loop;
    dbms_output.put_line(rowcount);
    end;
    I am getting rowcount = 0 even though there are many values in it. I am not sure if I am using the where clause properly. Any help would be appreciated.
    thank you.

  • Want single row but get multiple rows

    Hi,
    A report exists of payment details. It was requested to change it such that there is only one row per checkrun name.
    I did a group sort on all non amount fields and changed the amount field to sum instead of detail.
    What I am getting is for each checkrun name, a row with all the information that I want, but in addition, and extra row with the same sum amount repeating itself. Checking delete duplicate rows doesn't help. Doing a group sort on the amount doesn't help; it just gives blank rows after the necessary row.
    This is urgent. Can anyone help?
    THanks.
    Leah

    Here is the sql inspector after I had removed the group sort.
    SELECT DISTINCT APPS.JAFI_DISCO_UTILS_PKG.GET_BANK_ACCOUNT_NAME_BY_ID(i462841) as C_1,SUBSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )+1,( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'!',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )) )-( ( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )+1 )) as C_10,SUBSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'!',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )) )+1) as C_2,INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'!',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )) as C_9,SUBSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )+1,( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )-( ( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )+1 )) as C_3,INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) as C_8,INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) as C_7,APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) as C_6,APPS.JAFI_DISCO_UTILS_PKG.GET_AWT_AMOUNT(i463119,i463130) as C_4,i462479 as E462479,i462485 as E462485,i462599 as E462599,i462686 as E462686,i462687 as E462687,i462688 as E462688,i462689 as E462689,i462693 as E462693,i462697 as E462697,i463248 as E463248,i463274 as E463274,i463495 as E463495,i463500 as E463500,o462239.i463990 as E463990,o462239.i463993 as E463993,o462239.i622984 as E622984,o462239.i622987 as E622987,as462349_463495_OLD as as462349_463495_OLD,SUM(i462485) OVER(PARTITION BY i462686 ) as C_5
    FROM ( SELECT INVOICE_ID AS i463119, INVOICE_PAYMENT_ID AS i463130, EXTERNAL_BANK_ACCOUNT_ID AS i462840, CHECK_CURRENCY_CODE AS i462688, AMOUNT AS i462485, CHECK_DATE AS i462689, APPS.JAFI_DISCO_UTILS_PKG.GET_PAYMENT_GROUP(INVOICE_ID) AS i463990, APPS.JAFI_DISCO_UTILS_PKG.GET_PAYMENT_PRIORITY(INVOICE_ID) AS i463993, BANK_ACCOUNT_NAME AS i462599, CHECK_TYPE AS i462697, CHECK_NUMBER AS i462693, PAYMENT_BASE_AMOUNT AS i463248, CHECK_AMOUNT AS i462687, PAYMENT_NUMBER AS i463274, APPS.JAFI_DISCO_UTILS_PKG.GETCHECKRECEIVER(INVOICE_ID) AS i622984, APPS.JAFI_DISCO_UTILS_PKG.GETCHECKRECEIVERID(INVOICE_ID) AS i622987, CHECK_ID AS i462691 FROM APPS.JAFI_RO_APFG_AP_INVOICE_PAYME) o462239,
    ( SELECT EXTERNAL_BANK_ACCOUNT_ID AS i462841, CHECKRUN_NAME AS i462686, CHECK_ID AS i462692, VENDOR_ID AS i463582, VENDOR_SITE_ID AS i463601 FROM APPS.JAFI_RO_APFG_AP_PAYMENTS) o462240,
    ( SELECT SUPPLIER_NUMBER AS i463495, SUPPLIER_TYPE AS i463500, SUPPLIER_ID AS i463490 FROM APPS.JAFI_RO_POFG_SUPPLIERS) o462242,
    ( SELECT ALTERNATE_SUPPLIER_SITE_NAME AS i462479, IL_WHT_TAX_RPT_GROUP_2 AS i463072, SUPPLIER_SITE_ID AS i463498 FROM APPS.JAFI_RO_POFG_SUPPLIER_SITES) o462244,
    ( SELECT i263947 AS as462349_463495_OLD_2, MAX(i264114) AS as462349_463495_OLD FROM ( SELECT V_VEND_NUM_ALT AS i264114, V_VENDOR_NUMBER AS i263947 FROM (select
    V.VENDOR_ID V_VENDOR_ID
    , V.VENDOR_NAME V_VENDOR_NAME
    , V.SEGMENT1 V_VENDOR_NUMBER
    , to_number(V.SEGMENT1) V_VEND_NUM_ALT
    , V.SEGMENT1 || ' - ' || V.VENDOR_NAME
    V_VEND_NUM_NAME
    , V.VAT_REGISTRATION_NUM V_OSEK_MURSHE
    , lpad(nvl(V.VAT_REGISTRATION_NUM,'0'),10,'0') V_OSEK_MURS_ALT
    from PO.PO_VENDORS V
    Union
    Select
    -1
    ,' ALL'
    ,' ALL'
    ,-1
    ,' ALL'
    ,' ALL'
    ,' ALL'
    from DUAL) CUO263942) o263942 GROUP BY i263947)
    WHERE ( (i462692 = i462691(+))
    and (i463490 = i463582)
    and (i463498 = i463601)
    and (i463495 = as462349_463495_OLD_2(+)))
    AND (i462688(+) = :"CurrencyCode")
    AND (i463072 = :"WithholdingTaxGroup")
    AND ( ( i463500 = :"Supplier Type" OR ' ALL' = :"Supplier Type" ) )
    AND ( ( i462599 <= :"ToBank" OR :"ToBank" IS NULL ) )
    AND ( ( i462689 <= :"ToCheckDate" OR :"ToCheckDate" IS NULL ) )
    AND ( ( i462689 >= :"FromCheckDate" OR :"FromCheckDate" IS NULL ) )
    AND ( ( i462599 >= :"FromBank" OR :"FromBank" IS NULL ) )
    AND ( ( o462239.i463993 = :"PaymentPriority" OR :"PaymentPriority" IS NULL ) )
    AND ( ( o462239.i463990 = :"Payment Group" OR :"Payment Group" IS NULL ) )
    AND ( ( i462686 = :"CheckrunName" OR :"CheckrunName" IS NULL ) )
    AND ( ( i462479 LIKE :"AlternateSupSite" OR :"AlternateSupSite" IS NULL ) )
    AND ( ( i463495 = :"sapak_num" OR ' ALL' = :"sapak_num" ) )
    ORDER BY i462686 ASC , i462689 ASC , SUBSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )+1,( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'!',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )) )-( ( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )+1 )) ASC , SUBSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'!',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )) )+1) ASC , SUBSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )+1,( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'=',( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )) )-( ( INSTR(( APPS.JAFI_DISCO_UTILS_PKG.GET_BANKBRANCH_FROMBANKACCID(i462840) ),'+',1) )+1 )) ASC , o462239.i463990 ASC , o462239.i463993 ASC , i462599 ASC , i462688 ASC , i462693 ASC , i462479 ASC , as462349_463495_OLD ASC , APPS.JAFI_DISCO_UTILS_PKG.GET_BANK_ACCOUNT_NAME_BY_ID(i462841) ASC , i463500 ASC , i463274 ASC , o462239.i622984 ASC , o462239.i622987 ASC , C_5 ASC , i462697 ASC ;

  • Problem getting the row  element

    hi
        i have a scenario where  i have  filtered data from
       3 listboxes  and  populated the data in the  table .
      now  the table contains  about  10  rows  .
      now  i need to select a particular  row  in the  table 
       and  catch the particular row data  of the table .
    n is size of the table .     
    for(int i=0;i<n;i++)
                           if(wdContext.nodeIt_Car_Data_t().isSelected(i) {
    String model=wdContext.nodeIt_Car_Data_t().currentIt_Car_Data_tElement().getP_Model();
    String trim=wdContext.nodeIt_Car_Data().currentIt_Car_DataElement().getP_Trim();
    but  iam not able get the row data in the string where i am catching in
      it_car_data_t  is the  table node .  
    model  and  trim  are table elements . 
    how can i solve this ?

    hi
    thanks  for the reply  ,  but  the same issue .
    problem here is  when i am filtering the data for the Itemlistbox
              i am catching filtered data in the String
      and  then setting it to a Structue IT_CAR  as 
    Z_CAR_DATA car= new Z_CAR_DATA()
    car.setMake(make)
    next   adding this car to the   RFC 
    wdcontext.currentRFC.modelobject.additcar(car).
    not  i will get the filtered ddata in table . along with  some 
    extra data in the  table .
    now  i need to catch the row  data  then  again set it
    IT_CAR (which i have done above )
    data i am setting is not  going to IT_CAR structure  .
    because  after i get the data in the IT_CAR strucure i can
    data this to the RFC .
        can  any one help me out with this issue .
      i need to  get the  row of the table  and then  set it 
    to a structure  which  iam not able to .

  • Cannot get all rows from cfProcResult

    We upgraded one of our servers (A) from CF 6 to 7.02. Another
    server (B) has CF 7.01.
    On server B (CF 7.01) the code works (below), all rows of
    each dataset are returned.
    Now on server A (CF 7.02) all of the resulting datasets have
    only the first record in them. If I add maxrows="-1" to each of the
    cfProcResult tags there is no change. If I change that to
    maxrows="100" then I can get the rows up to 100.
    Is this a bug or is there a different means to return all
    rows?

    It think its a bug. I got the same results under MX 7.0.2.
    The topic of maxrows recently came up on another thread. I
    did some searching and according to TechNote 18339 there was a
    change with maxrow
    "<cfquery maxrows=N> bug. ColdFusion MX (until ColdFusion
    MX 7.0.1 CHF2) didn't pass maxrows to the underlying driver
    (statement.setMaxRows())"
    Given the results you're getting, it sounds like CF is
    applying the maxrow to all of the resultsets, not just the one
    where maxrows was declared. I suspect cfstoredproc's usage of
    statement.setMaxRows() is incorrect. Thats just a guess though.
    Bottom line, I think you'll need handle it manually.
    Personally, I would recommend placing the row count logic in the
    stored procedure (if possible). The overall results will be more
    consistent and you won't have to worry about this kind of issue
    again.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18339
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00000314.htm
    http://www.remotesynthesis.com/blog/index.cfm/2006/3/23/Maxrows-Issue-in-CFQuery

Maybe you are looking for

  • New WiFi behavior in OS 10.5.4

    Over the last couple of weeks or so (I guess since installing the latest system update), my MacBook Pro no longer automatically connects to the last WiFi network used when it wakes from sleep - I have to select the network manually each time. Has any

  • PROBLEM IN P.O HISTORY

    SEVICE ENTER HAS CREATED & RELEASED.IT SHOULD APPEAR IN PUR. ORDER HISTORY. BUT IT IS NOT COMING. SERVICE ENTRY NO. IS AVAILABLE IN CSSR TABLE. IT IS ALSO AVAILABLE IN T-CODE-ML84. BUT IT IS NOT AVAILABLE IN P.O HISTORY.BUT IN TABLE-EKBE IT IS NOT AV

  • TS1424 Purchased a song that won't download...

    A song I just purchased won't download. I did all the proper troubleshooting steps and it still won't download. Can I get a refund? ...It's showing up as purchased but won't download (error-1000000 is showing up)...what can I do?

  • Change in Infotype fields

    Hi, If the below question is already answered, provide me the thread. I want to change HRP1001-PROZT field to HRP1001-PERCE and PA0002-NACHN to PA0002-FIRSTN. I am trying to say that is there any way to change the standard fields in the standrard inf

  • Ai CS6 is Corrupting Files

    I just upgraded to Ai CS6 and it's corrupting my files. This has never happened before. After clicking OK, the files open but half the work has dissapeared! The first time, weeks ago, it turned my whole screen blue - two differnt shades of blue on di