OracleXMLQuery not fetching ALL rows

Problem:
======
For example, if there are 10 rows in the Table, sometimes the XMLQuery sees less than 10 rows. We wrote a small test program with a JDBC query for select count(*) from Table, which always shows 10. So nothing wrong with Connection/Statement settings. They all use DEFAULT settings (READ_COMMITTED, TYPE_FORWARS_ONLY).
Why does n't XMLQuery see all rows available from the Query?
Software Version:
============
Oracle 10.1.0.5
XDK: Oracle XDK 10g
JAVA 5
My program:
=========
Connection connection = dataSource.getConnection();
Statement stmt = connection.createStatement(); <-- We tried with TYPE_SCROLL*. Still not working.
ResultSet rs = stmt.executeQuery("select * from MyTable);
//1. Query the database with the OracleXMLQuery. Result will be in XML format.
OracleXMLQuery query = new OracleXMLQuery(connection, rs);
query.keepObjectOpen(true);
query.setMaxRows(1); //We don't want to build huge XML DOM for all rows.
while (rs.next()) { <--- Ideally it should iterate 10 times XMLDocument xmlDoc = (XMLDocument) query.getXMLDOM();          
System.out.println(xmlDoc);
if (query.getNumRowsProcessed() > 0) {          
//Do something here
Thanks.
Kanugula.

I am providing the stack trace. You have more information.
By the way, what surprises me is "OracleXMLQuery sees 1/2 of the rows only. Means if you have 12 rows, it sees 6 only"
query= OracleXMLQuery (id=2148)
conv= OracleXMLConvert (id=2154)
colCount= 48
collectTimingInfo= false
collIdAttrName= null
collItemTag= "_ITEM"
colNames= OracleColumnName[48] (id=2376)
colNamesHash= Hashtable<K,V> (id=2377)
conn= LogicalConnection (id=2145)
curCount= 2
dataHeader= null
dateFormat= "yyyyMMddhhmmss"
docTag= null
docType= 1
dset= OracleXMLDataSetExtJdbc (id=2378)
bindPosHash= null
conn= LogicalConnection (id=2145)
connUser= null
cursorCols= int[0] (id=2380)
dsetList= null
isConsistent= true
msg= XSUMesg (id=2166)
ncharSuported= true
rmdata= OracleResultSetMetaData (id=2381)
rowCount= 4
rset= ScrollableResultSet (id=2147)
close_statement_on_close= false
m_allRowsCached= false
m_autoRefetch= true
m_beginColumnIndex= 0
m_cache= OracleResultSetCacheImpl (id=2190)
m_columnCount= 48
m_conn= T4CConnection (id=2195)
m_currentRow= 6
m_lastRefetchSz= 0
m_metadata= OracleResultSetMetaData (id=2371)
m_numRowsCached= 6
m_refetchRowids= null
m_refetchStmt= null
m_rset= OracleResultSetImpl (id=2196)
m_scrollStmt= T4CStatement (id=2146)
m_type= 1004
m_update= 1007
m_usrFetchDirection= 1000
m_warning= null
m_wasNull= 0
rsetFirstTime= false
rsetIsExt= true
rsetVal= true
sdf= SimpleDateFormat (id=2382)
stmt= null
tempS= T4CStatement (id=2146)
dsetIsExt= false
DTDString= null
errTag= "ERROR"
extException= null
firstXElemNmIdx= 0
isNull= "TRUE"
keepCursor= true
maxRows= 1
metaHeader= null
metaType= 0
miscFlags= 0
namesValid= true
noRowsException= false
notNull= "FALSE"
nullAttrId= "NULL"
objClosed= false
qstring= null
raiseException= false
refAttrName= "REFTYPE"
rootNodeSupplied= false
rowCountStr= "num"
rowIdAttrDt= 2
rowIdColName= null
rowIdColNum= 0
rowsetTag= "ROWSET"
rowTag= "ROW"
rset= ScrollableResultSet (id=2147)
rsetIsExt= true
skipRows= 0
styleSheetType= null
styleSheetURI= null
tagCase= 0
tim= null
tns= null
updateDateFormat= false
useColumnLabelAsRoot= false
useNullAttrId= false
useTypeForCollElemTag= false
val= OracleScalarName (id=2379)
xAttrAfterElem= false
xAttrIdxs= null
xElemCnt= 48
encoding= null
encSet= false
xslp= null
xslt= null

Similar Messages

  • Strange Problem: Cursor not fetching all rows

    Hello,
    When fetching from a cursor on a PL/SQL block in a stored procedure, the cursor seems to stop in the middle of the loop without an exception. The number of rows the cursor fetches varies from call to call. The same problem repeats in a FOR loop, direct CURSOR open and calling the fetch directly in the FOR loop.
    The strangest thing is that I took the code and executed it on an external script and it worked fine.
    What can cause the cursor to stop?
    Thanks

    Hi,
    Could you paste your stored procedure?
    cheers

  • ADF/BC4J fetches all rows, should fetch only if needed

    Hello,
    I'm using JDeveloper 10.1.2. Technologies are Struts, ADF and BC4J.
    I have a problem with viewObjects. I have created components from database tables. I'm fetching in appModuleImpl:
    ViewObjImpl impl = getObjectViewImpl();
    impl.setWhereClause("id=101");
    impl.executeQuery();Problem is that when page is loaded, it fetches ALL ROWS (80 000 rows)from table and then makes another query to fetch group above. I want only fetch rows that i decide to fetch. My application is in immediate mode. Couple of iterators has fetch range -1 and couple 10.
    I have debugged that the first ALL ROWS fetch is made somewhere out of my code.
    What i'm doing wrong? Any feature development hints are welcome also.
    Thank you advance!
    null

    hello
    First of all thank you for commenting on my timeout post
    I think i have a solution for you problem.
    If i understand you correctly, when the page is loaded, you only want the framework to only fetch one page worth of rows, look yahoo and google. Then when you select another page, you want the other records to be fetch.
    public void executeQuery() {
    setAccessMode(RowSet.RANGE_PAGING); //shall do the trick
    super.executeQuery();
    Djbo.debugoutput=console
    SELECT * FROM (SELECT /*+ FIRST_ROWS */ IQ.*, ROWNUM AS Z_R_N FROM (select * from emp) IQ WHERE ROWNUM < :0) WHERE Z_R_N > :1
    [253] Bind params for ViewObject: ViewObj1
    [254] setting rownum query between (0, 4)
    As shown above, the query is designed to only fetch 4 rows and this is managed by manipulating the ROWNUM.
    When you run it the page will only display RANGE_PAGE only execpt of the 80,000 and your first page will run very fast
    This will cause a database hit each time you select another page! If you ask the framework designer, i bet, they shall tell you we are avoiding database hits with this. My answer to them, who would go about navigation all pages anyway!
    Kindly comment if the code above solved your issue or not
    Ammar Sajdi
    Amman - Jordan

  • Lookup in transformation not fetching all records

    Hi Experts,
    In the routine of the transformation of a DSO (say DSO1), i have written a look-up on other DSO (say DSO2) to fetch records. I have used all the key fields of DSO2  in the Select statement, Still the look-up is not fetching all the records in DSO1. There is difference in the aggregated value of the Key Figure of both the DSOs. Please suggest, how can i remove this error.
    Thanks,
    Tanushree

    hi tanushree,
    The code which yu have written in the field routine for lookup is not fetching the data. you can debug the field routine code in the simulation mode of execution of DTP by keeping a break point after the transformation.
    you can test the routine with out actually loading the data..
    double click rule where you have routine and in the below you have option called test routine.
    here you can pass input parameters..
    i hope it will give you an idea.
    Regards
    Chandoo7

  • People Picker JS Control not fetching all the users...

    Hi,
    I am using Java Script people picker control. It fetching information for users but not all. I used following code block to get the control working. Why is not fetching all the users?? Where as OOTB people picker fetches same user. This does not make sense.
    My environment is SharePoint online.  
    // Run your custom code when the DOM is ready.
    $(document).ready(function () {
    // Specify the unique ID of the DOM element where the
    // picker will render.
    initializePeoplePicker('peoplePickerDiv');
    // Render and initialize the client-side People Picker.
    function initializePeoplePicker(peoplePickerElementId) {
    // Create a schema to store picker properties, and set the properties.
    var schema = {};
    schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup';
    schema['SearchPrincipalSource'] = 15;
    schema['ResolvePrincipalSource'] = 15;
    schema['AllowMultipleValues'] = true;
    schema['MaximumEntitySuggestions'] = 50;
    schema['Width'] = '280px';
    // Render and initialize the picker.
    // Pass the ID of the DOM element that contains the picker, an array of initial
    // PickerEntity objects to set the picker value, and a schema that defines
    // picker properties.
    this.SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, null, schema);
    Here is the link from Microsoft explaining it.
     How to: Use the client-side People Picker control in SharePoint-hosted apps: https://msdn.microsoft.com/en-us/library/office/jj713593.aspx
    Appreciate any help or workaround here.
    Thanks.

    Hi,
    In my case im usign customize people picker. it is better to use in delelopement since you have the control and customization.
    I have used select2 (https://select2.github.io/examples.html) drop down control and create a people picker
    You can use the same REST call to populate data.
    function initApproversPicker(success, fail) {
                var data = { results: [] };
                var executor = new SP.RequestExecutor($$.getAppWebUrlUrl());
                executor.executeAsync(
      url: $$.getAppWebUrlUrl() + "/_api/web/siteusers",
      method: "GET",
      contentType: "application/json;odata=verbose",
      headers: { "Accept": "application/json; odata=verbose" },
      success: function (dt) {
          $.each(JSON.parse(dt.body).d.results, function (i, ele) {
              data.results.push({ id: ele.Id, text: ele.Title });
          executor.executeAsync(
               url: $$.getAppWebUrlUrl() + "/_api/web/sitegroups",
               method: "GET",
               contentType: "application/json;odata=verbose",
               headers: { "Accept": "application/json; odata=verbose" },
               success: function (dt) {
                   $.each(JSON.parse(dt.body).d.results, function (i, ele) {
                       data.results.push({ id: ele.Id, text: ele.Title });
                   $("#WFApprovers").select2({ data: data, multiple: true });
                   if (success) {
                       success();
               error: function (d, errorCode, errorMessage) {
                   if (fail) {
                       fail();
                   utils.log(errorMessage);
      error: function (d, errorCode, errorMessage) {
          utils.log(errorMessage);
    Melick Rajee http://melick-rajee.blogspot.com

  • SQD3 select options not fetching all the data?

    Hi abapers,
    standard SDQ3 tcode is not fetching all the data?
    In this standard t.code how to find that for different Select-options, different data retrieval queries have been written?
    where to find the select options conditions are written?
    thans in advance

    This could be an issue as ROWTERMINATOR and FIELDTERMINATOR are not well placed.
    Use FORMAT FILE while using BULK INSERT.

  • Delete command is not deleting all rows

    Hi All,
    Database version 10.2.0.2
    Delete command is not deleting all rows and deleting some subset of rows which it should delete, ever time I delete and do the roll back, next time it will delete some random rows, count is different everytime with in the range but not complete in anyway. see the following -
    select count(*) from test where evt_id in (select evt_id from test1);
    COUNT(*)
    27105
    delete from test where evt_id in (select evt_id from test1);
    16045 rows deleted.
    select count(*) from test where evt_id in (select evt_id from test1);
    11060
    rollback;
    Againg the same procedure -
    select count(*) from test where evt_id in (select evt_id from test1);
    COUNT(*)
    27105
    delete from test where evt_id in (select evt_id from test1);
    14320 rows deleted.
    select count(*) from test where evt_id in (select evt_id from test1);
    COUNT(*)
    12785
    why its not deleting all the 27k rows in one shot? Is there any bug related to that?
    Thanks
    Abhinav

    Odd that what looked like identical statements produced different results, both the counts and the deletes. The most likely cause of that is your data is changing - as Fahd suggested perhaps a simultaneous load taking place.
    The delete issue is probably not due to a bug. Possible but unlikely.
    If any evt_id values are NULL they won't be deleted with the subquery - a NULL in test.evt_id will never match a NULL in test1.evt_id.
    Have you tried alternative subqueries - a correlated EXISTS subquery for instance?

  • Rowtype not fetching all the rows

    This my cursor declaration. When the Package is executed it get all records minus 1 (Assumming there are 10 rows to be processed, it ONLY processes 9 records)
    cursor X1 is
    select *
    from NT
    hdr X1%rowtype;
    Below is the procedure call
         open X1;
         fetch X1 into hdr;
         loop
         exit when X1%notfound;
                   fetch X1 into hdr;
                   pkgXX.insrt(hdr);
         end loop;
              commit;
         close X1;

    That makes sense. You 1) fetch a row, 2) check for %notfound, 3) fetch a row and process it. Notice that the row you fetched in 1 was never processed. Try this:
    open X1;
    loop
      fetch X1 into hdr;
      exit when X1%notfound;
      pkgXX.insrt(hdr);
    end loop;
    commit;
    close X1;

  • Loop Not Returning All Rows

    I finally need to turn to the forum after trying for a few days to resolve my problem I decide to turn to the Oracle people for help.
    The following code below does two things:
    1. If I have the get_menu_label in side of it's own loop it never returns
    2. If I take the get_menu_label out side of it's own loop it returns but does not return all the data.
    DECLARE
    -- GETTING THE DATABASE NAME
    CURSOR get_db_name
    IS
    SELECT DATABASE
    FROM uaf_mfgp_menus_and_groups_vm
    GROUP BY DATABASE
    ORDER BY DATABASE ASC;
    -- GETTING THE OBJECT_ID FOR EACH DATABASE
    CURSOR get_object_id_db (l_db_name VARCHAR2)
    IS
    SELECT object_id
    FROM UAF_FORM_OBJECTS
    WHERE object_label_2 = l_db_name;
    -- GETTING THE GROUP NAME
    CURSOR get_gp_name
    IS
    SELECT group_name
    FROM uaf_mfgp_menus_and_groups_vm
    GROUP BY group_name
    ORDER BY group_name ASC;
    -- GETTING THE OBJECT_ID FOR GROUP WITH GP NAME AND DATABASE
    CURSOR get_object_id_gp (l_gp_name VARCHAR2, db_id NUMBER)
    IS
    SELECT object_id
    FROM UAF_FORM_OBJECTS
    WHERE object_label_2 = l_gp_name AND parent_object_id = db_id;
    -- GETTING MENU LABEL
    CURSOR get_menu_label (l_db_name VARCHAR2, l_gp_name VARCHAR2)
    IS
    SELECT menu_label
    FROM uaf_mfgp_menus_and_groups_vm
    WHERE DATABASE = l_db_name AND group_name = l_gp_name;
    got_object_id_db NUMBER (20);
    got_object_id_gp NUMBER (20);
    got_db VARCHAR2 (100);
    got_menu_label VARCHAR2 (200);
    BEGIN
    FOR c1 IN get_db_name
    LOOP
    FOR c2 IN get_gp_name
    LOOP
    OPEN get_object_id_db (c1.DATABASE);
    FETCH get_object_id_db
    INTO got_object_id_db;
    OPEN get_object_id_gp (c2.group_name, got_object_id_db);
    FETCH get_object_id_gp
    INTO got_object_id_gp;
              CLOSE get_object_id_db;
    CLOSE get_object_id_gp;
    OPEN get_menu_label (c1.DATABASE, c2.group_name);
    LOOP
    FETCH get_menu_label
    INTO got_menu_label;
    END LOOP;
    CLOSE get_menu_label;
    DBMS_OUTPUT.put_line ( 'GP_OBJECT_ID= '
    || got_object_id_gp
    || ' '
    || 'MENU_LABEL= '
    || got_menu_label
    END LOOP;
    END LOOP;
    END;
    /

    Javier, this the wrong way to use PL/SQL. Oracle SQL can do all this for you using JOINs.
    This code, even if it did work, would be terrible slow - unable to scale with data volumes.
    This code breaks a few fundamental Oracle rules:
    - row-by-row processing using PL/SQL
    - huge number of context swicthes per PL/SQL loop iteration
    - not maximizing SQL and minimizing PL/SQL
    I suggest you trash this code and write a SQL JOIN instead.

  • Bex Query not passing all rows to Crystal reports

    hello experts,
    i have created a bex query that shows all employees from the master data table and links to the cats table to show absence hours...
    in bex, all employees are showing and some of the employees have hours showing for sick time. this is known as a left outer join.
    i have created a report in crystal with this bex query and it does not show rows from the master data that do not have a link to the cats table. only the rows that have a link to the cats table are showing up. (this is compared to a inner join)
    the reason i need the master data from the employee table is that the users want to divide the total hours off(sick time) per department by the total employees in that department.
    here is the sql query from crystal that was created automatically when i used the bex query to created the crystal report.
    SELECT {Measures.4J8L2TQJ3P517ISQ1R4Y8UZ36, Measures.4J9PY3UANRIW2HW15YSOED92A, Measures.4J9TLIO0NDQROSA2YONCW6HB6}
    ON COLUMNS,
    NON EMPTY
    CROSSJOIN(0EMPLOYEE.LEVEL01.MEMBERS, 0EMPLOYEE__0COMP_CODE.LEVEL01.MEMBERS)
    DIMENSION PROPERTIES 0EMPLOYEE.50COMP_CODE, 0EMPLOYEE.50MAST_CCTR ON ROWS
    FROM ZCATS_MC1/ZZCATS_MC1_Q001C
    SAP VARIABLES 0I_DAYS INCLUDING 0CALDAY.20100502 : 0CALDAY.20100903
    i am using the mdx driver, and the integration kit is 2.8.
    any thoughts?
    thanks,
    erik

    Thanks Ingo for the quick response.
    this sounds like a limitation in the integration between bex and crystal because the query shows the correct data and the crystal reports does not. i have tried to add a calculated key figure to all the rows and put a number in it but it still does not show the rows in crystal.
    my issue is that they(the business users) want to know all the employees in the employee master data along with all the sick / illness data.
    do you have a suggestion for this issue?
    do you think that the mdx driver should be updated to allow master data to flow to crystal?
    thx,
    Erik

  • Select Single * is not fetching all Data

    Hi,
    I have a peculiar problem, when i am extending the customer to a new company code, we are getting Dump saying 'ASSERTION_FAILED'
    when i debugg i am geeting issue with following Code of a FM 'KNA1_SINGLE_READER'
    IF NOT i_bypassing_buffer IS INITIAL.
        *SELECT SINGLE * FROM kna1*
                        INTO o_kna1
                        WHERE kunnr = i_kunnr.
        IF sy-subrc <> 0.
          MESSAGE e300(vs) WITH 'KNA1' RAISING not_found.
        ENDIF.
    i am passing customer number (i_kunnr), this code is executed 2 times first time it is fetching all columns but second time it is only fetching customer number and no other information regarding customer. But in data base all information is present. Can any one help me in this.
    Thanks a lot...
    Reddy
    Edited by: JAGAN MOHAN REDDY on Jun 2, 2010 11:30 AM

    Hi Jagan,
    It'll be helpful to others if you can please post how and what was done to resolve the issue.
    Thanks!
    Sandeep

  • Cursor with in clause in not fetching any rows (happens rarely)

    Hi Experts,
    Applications: Oracle Apps 11.5.10.2
    Data base version: 11.2.0.1.0
    we are running concurrent programs (scheduled every day),
    we obsereved one of cursor is not fetching any records (happens rarely);
    please refer the cursor below.
    CURSOR LCU_GET_ADJ_JN_CAT_DET IS WITH LCU_GET_ROWS_DETAILS AS(
          SELECT <columns1, columns1_1, columns1_2>
            FROM (SELECT <columns2> from table1 <conditions>            
                   GROUP BY <columns>
                  UNION ALL
                  SELECT <columns3> from table2 <conditions>
                  GROUP BY <columns>)
           WHERE (columns1_1 <> 0 OR columns1_2 <> 0)
           GROUP BY <columns>)
          SELECT *
            FROM (SELECT ROW_DET.* FROM LCU_GET_ROWS_DETAILS ROW_DET),
                 (SELECT COUNT(1) TOTAL_RECORDS,
                         SUM(columns1_1) TOTAL_CLOSING_DEBIT,
                         SUM(columns1_2) TOTAL_CLOSING_CREDIT
                    FROM LCU_GET_ROWS_DETAILS ROW_SUM)
           ORDER BY <columns>;

    Please enable trace/debug and check the log files then.
    How To Get Level 12 Trace And FND Debug File For Concurrent Programs (Doc ID 726039.1)
    How to enable and retrieve FND debug log messages (Doc ID 433199.1)
    Thanks,
    Hussein

  • Regular Report Not Returning All Rows

    Greetings,
    On APEX version 4.1.1.00.23 Using latest versions of Chrome and IE. I found some threads that discussed this aspect some, but not to the extent that is helpful to my situation.
    I know it is crazy to have APEX return 40K+ rows on a report, but I have a need to do so. I need to return that many rows from a table so that an APEX page can be opened via Excel and then have an Excel macro run over the report results and import all 40K+ rows into a worksheet. As I said, that's crazy, but the decision isn't mine. :-) We have the macro working and it passes parameters to the APEX page and imports data from the APEX page.
    Also, the report has 14 columns on it, not that many.
    Given the requirement above I have a regular report page that only has the report and 2 page items on it. The page items contain values that are passed via Excel and are then used in the WHERE condition of the report. Using the same WHERE condition, when I run the SQL for the report outside of APEX it returns 46,840 rows. I have the both the Number of Rows and Maximum Row Count settings set to 50000. And, I have the Pagination Scheme set to Row Ranges X to Y of Z (with pagination).
    When I run the page and enter the selection criteria the report only returns 15,500 rows. Yes, that's a lot rows. And, it takes about 5 minutes to populate. But, it doesn't return ALL of the rows. Also, the pagination suggests that all rows were returned because it reads - row(s) 1 to 15500 of 15500. I have changed the pagination and max rows settings a lot to see of it's just a matter of having the correct report setting. I've yet to find a setting that will cause the whole 46840 result set to be returned.
    It may end up that the report selection needs to change in order to return fewer rows. But, regardless of that why isn't APEX returning the complete result set now? And, is there a way to force it to return the complete result set regardless of the size?
    Any suggestions are appreciated.
    Thanks, Tony

    cloaked wrote:
    Thanks for the response. Yup, you're correct. Downloading to a CSV might be better. I've set reports up that way many, many times. I have even developed pages that import from a CSV into APEX using PL/SQL, years before it was an APEX feature. I initially set the report up to allow it to be downloaded, but the user doesn't want it to work that way.
    The worksheet will be used by a lot of people in our accounting department and they want the process to be as simple as possible. Right now Excel opens up the APEX page, logs into the application, passes parameters to it for the month and company, hits the Select button, waits on the report to build, then automatically imports it, and finally closes the page. It is quite slick. Yes, it takes 5 minutes to run, but the user is OK with that given what the automation provides.
    So, in order for the automated import to work properly all 45K rows need to display on one page, without pagination. I currently have pagination on the page simply to determine if APEX is returning all of the rows.A process of this nature might work better using an export: XML or export: CSV report template, which won't go anywhere near pagination. When a page containing a report using these templates is requested APEX sends the report results in XML or CSV format rather than rendering the page. This should be faster, avoid complications with pagination, and be easier to parse in Excel.
    Previous thread along similar lines: +{thread:id=2285213}+

  • Abap logic not fetching multiple rows from master data table

    Hi
    I just noticed that my logic is fetching only 1 row from master data table.
    ProdHier table
    PRODHIERACHY            Level
    1000                                  1
    1000011000                      2
    10000110003333              3
    10000110004444              3
    '10000110005555              3*
    logic only fetches one row of level 3, I would like to fetch all level 3 rows.
    DATA: ITAB type table of /BI0/PPROD_HIER,
          wa like line of ITAB.
    Select * from /BI0/PPROD_HIER INTO wa where /BIC/ZPRODHTAS = 3.
    IF wa-PROD_HIER(10) = SOURCE_FIELDS-PRODH2.
         RESULT = wa-PROD_HIER.
         ELSEIF wa-PROD_HIER(5) = SOURCE_FIELDS-PRODH1.
         RESULT = wa-PROD_HIER.
    ENDIF.
    ENDSELECT.
    thanks

    Hi,,
    I have implemented the logic in end routine and it still reads only the first row.
    I am loading only PRODH1 and PROD2 but now I want to get all values of PRODH3 from the master data table.
    The first 5 values are PRODH1 and first 10 values belongs to PRODH2.
    Whenever PRODH2 = 1000011000 in source I should get the following values
    10000110001110
    10000110001120
    10000110001130
    I have multiple rows of 1000011000 so my result should be
      1000011000               10000110001110
      1000011000               10000110001120
      1000011000               10000110001130
    DATA: ITAB type table of /BI0/PPROD_HIER,
    wa like line of ITAB.
    data rp type _ty_s_TG_1.
    Select  * from /BI0/PPROD_HIER INTO table itab where /BIC/ZPRODHTAS = 3.
    LOOP AT RESULT_PACKAGE INTO rp.
    read table itab into wa with key PROD_HIER(5) = rp-PRODH1.
    IF sy-subrc EQ 0.
         rp-PRODH3 = wa-PROD_HIER.
         ELSE.
    read table itab into wa with key PROD_HIER(10) = rp-PRODH2.
    IF sy-subrc EQ 0.
         rp-PRODH3 = wa-PROD_HIER.
    ENDIF.
    ENDIF.
    MODIFY RESULT_PACKAGE FROM rp.
    ENDLOOP.
    Edited by: Bhat Vaidya on Sep 10, 2010 11:27 AM
    Edited by: Bhat Vaidya on Sep 10, 2010 11:37 AM

  • Analysis does not show all rows returned by SQL

    Hi.
    OBIEE 11.1.1.7.0
    I have a strange problem.  I have a simple table that should return customer number and sales.  The report will show all of the sales, but it does not show all the customer numbers.  The SQL that OBIEE creates does return all of the customer numbers.  When I remove the sales and just include the customer number, the report only shows a couple of the customer numbers (it should show several hundred).
    I guess what I'm looking for is any advice for how to debug this.  I have spent about 3 days on this problem, so I have tried to look at it from every angle (data, RPD, report).
    Any suggestions are appreciated.
    Thank you.

    Thank you for your reply.
    New development.  The issue has to do with a descriptor ID column.  The customer number column is a varchar field and I set the descriptor ID column to the column_ID field.  When I remove the descriptor ID setting, I received all custom numbers.

Maybe you are looking for

  • Can I open CS6 files on my iPad (& vise versa)

    I'm considering getting Photoshop touch for my iPad... But as I'm a Graphic Design student I'd like to know how easy, if possible, is it to open the PSD files on my Mac CS6

  • Re: BT Broadband Desktop Help problem

    I am new to this FORUM and as yet have not been able to find how to open a THREAD so I have taken this facility to post my query or should it be queries. According to the BT.Com website the Broadband Desktop Help program functions with XP, Vista and

  • Where can I find the user key precedence hierarchy for each record type?

    Example: I want to update contact records through the CRMOD web service API. So I'm looking at the "Oracle Web Services On Demand Guide, Version 6.0 (released August 2010)", page 316, and it lists 3 user keys for Contact.wsdl v2.0 in the following or

  • Ad Hoc reports

    Hi All, Is BI 7.0 a better version when compared to 3.5 when it comes to ad hoc reporting. Ad hoc meaning 'one-off' or for a particular purpose as opposed to referring Ad Hoc Query tool in SAP. If so, how. Can anyone please throw some kight on this.

  • Captivate 8 Crashing On Launch...Every Time

    Hi there, I'm a new Captivate user, I recently reinstalled the patch (8.01 245 from October) and now whenever I launch Captivate and choose new responsive project it loads up, gets to "adding slides"...and crashes.  Every time.  I can load other proj