Number of Dataset in query

Hi Gurus
I am new in query reports
I had created a query report and t code but when running the transaction eg zlog it is displaying with layout first and executing it is displaying as Number of databasets to be read max 100 I want to get ride of this popup how can i do that
regards
Piroz

Thanks Gareth for your response. Well, can you suggest any way to achieve this requirement? now that its clear that subtemplates is not a coorect way
eg : my layout is somewhat like this
Emp 1
Name Age ....
Emp 2
Name Age ...
So i need to put individual records returned by the query into different blocks in the template and not as a single table and also deciding runtime the number of blocks. Let me know if his is possible.
Thanks

Similar Messages

  • How to add a receipt number in the following Query for PO Report

    Hi Guys,
    I need a help regarding following query.
    Its a PO report for 11.5.10.2
    select distinct pv.segment1 supplier_number,
    pv.vendor_name supplier_name,
    pha.segment1 po_number,
    pha.revision_num revision_num,
    pha.authorization_status po_status,
    to_char(pha.creation_date, 'DD/MM/YYYY') creation_date,
    pha.currency_code currency_code,
    pla.sum_amount_ordered sum_amount_ordered,
    pda.sum_quantity_ordered sum_quantity_ordered,
    pda.sum_amount_received sum_amount_received,
    pda.sum_quantity_received sum_quantity_received,
    (pla.sum_amount_ordered - pda.sum_amount_received) sum_accrued, --AVI
    ( pda.sum_quantity_ordered - pda.sum_quantity_received) quantity_accrued, --AVi
    to_char(rsl.date_receipt, 'DD/MM/YYYY') date_receipt,
    -- rsl.receipt_num receipt_number,
    ppa.segment1 project_code, ppa.project_status_code, --10.0.0.4
    aia.invoice_num invoice_num,
    aia.invoice_date invoice_date, --AVI 
    aia.creation_date invoice_creation_date, --AVI 
    aia.amount invoice_amount_allocated_to_po, --AVI
    pla.purchase_basis,
    pla.category_id,
    -- pda.item_description,
    haou.name organisation, --10.0.0.3
    pda.sum_quantity_billed sum_quantity_billed , --10.0.0.3
    gcc1.CONCATENATED_SEGMENTS,
    gcc2.CONCATENATED_SEGMENTS
    from po_headers_all pha,
    po_vendors pv,
    pa_projects_all ppa,
    hr_all_organization_units haou,
    (select po_header_id,
    sum(quantity * unit_price) sum_amount_ordered,
    org_id,
    purchase_basis,
    category_id
    -- pla.item_description,
    from po_lines_all
    group by po_header_id, org_id
    , purchase_basis,
    category_id
    -- pla.item_description
    ) pla,
    (select pla.po_header_id,
    pda.project_id,
    sum(pda.quantity_ordered) sum_quantity_ordered,
    sum(pda.quantity_delivered * pla.unit_price) sum_amount_received,
    sum(pda.quantity_delivered) sum_quantity_received,
    sum(pda.quantity_billed) sum_quantity_billed, --10.0.0.3
    accrual_account_id
    from po_distributions_all pda, po_lines_all pla
    where pla.po_line_id = pda.po_line_id
    group by pla.po_header_id, pda.project_id,accrual_account_id
    ) pda,
    (select po_header_id, charge_account_id,
    -- rsh.receipt_num,
    min(rsl.creation_date) date_receipt
    from rcv_shipment_lines rsl
    where rsh.SHIPMENT_HEADER_ID=rsl.SHIPMENT_HEADER_ID
    group by po_header_id,charge_account_id
    ) rsl,
    (select distinct aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
    , aia.creation_date , sum(aida.amount) amount
    from po_distributions_all pda,
    ap_invoice_distributions_all aida,
    ap_invoices_all aia
    where pda.po_distribution_id = aida.po_distribution_id(+)
    and aia.invoice_id(+) = aida.invoice_id
    Group by
    aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
    , aia.creation_date) aia,
    (select haou2.organization_id, haou2.name
    from fnd_flex_value_sets ffvs,
    fnd_flex_value_norm_hierarchy ffvnh,
    fnd_flex_values_vl ffvv,
    hr_all_organization_units haou1,
    FND_FLEX_VALUE_CHILDREN_V ffvcv,
    hr_all_organization_units haou2
    where ffvs.FLEX_VALUE_SET_NAME = 'CAP_CODE_BU'
    and ffvs.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
    and ffvnh.parent_flex_value like 'PO%'
    and ffvv.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
    and ffvv.FLEX_VALUE between ffvnh.child_flex_value_low and ffvnh.child_flex_value_high
    and substr(haou1.name, 1, Instr(haou1.name, '-')) =
    substr(ffvv.DESCRIPTION, 1, Instr(ffvv.DESCRIPTION, '-'))
    and haou1.organization_id = fnd_global.org_id
    and ffvcv.parent_flex_value = ffvnh.parent_flex_value
    and ffvcv.flex_value_set_id = ffvs.flex_value_set_id
    and substr(haou2.name, 1, Instr(haou2.name, '-')) =
    substr(ffvcv.DESCRIPTION, 1, Instr(ffvcv.DESCRIPTION, '-'))
    union --10.0.0.1
    select f.organization_id, f.name --10.0.0.1
    from hr_all_organization_units f --10.0.0.1
    where f.organization_id = fnd_global.ORG_ID --10.0.0.1
    ) bu
    , po_line_locations_all plla --10.0.0.4
    , gl_code_combinations_kfv gcc1
    ,gl_code_combinations_kfv gcc2
    where pv.vendor_id = pha.vendor_id
    and pla.po_header_id = pha.po_header_id
    and pda.po_header_id = pha.po_header_id
    and pha.po_header_id = rsl.po_header_id(+)
    and pda.project_id = ppa.project_id(+)
    and pha.po_header_id = aia.po_header_id(+)
    and aia.po_header_id = pha.po_header_id
    and pla.org_id = haou.organization_id
    and pha.authorization_status in ('APPROVED', 'OPEN')
    and plla.po_header_id = pha.po_header_id --10.0.0.4
    and plla.closed_code in ('APPROVED', 'OPEN', 'CLOSED FOR INVOICE', 'CLOSED FOR RECEIVING', 'CANCELLED') --10.0.0.4
    and bu.organization_id = haou.organization_id
    AND gcc1.code_combination_id = pda.accrual_account_id
    AND gcc2.code_combination_id =rsl.CHARGE_ACCOUNT_ID
    In the following query I have commented receipt_num using the table rcv_transaction_headers.
    If I uncomment it the query results huge number of unexpected report.
    How can I add receipt number to the following query?
    Should I use rcv_transactions. If yes, what would be the join conditions.
    Kindly help as its urgent.
    Thanks in advance.
    Regards
    Avijit

    Sandeep is correct. I don't have time to tell you the correct query, but mine is something like this based on Sandeep's information:
    SELECT rsh.receipt_num
    FROM   rcv_transactions      rcvt,
           po_lines_all          pla,
           rcv_shipment_headers  rsh
    WHERE  rcvt.shipment_header_id   = rsh.shipment_header_id
    AND    rcvt.PO_LINE_ID          = pla.PO_LINE_ID
    AND    pla.item_id              = (select distinct inventory_item_id
    from mtl_system_items
    where segment1 = '1216107-2')

  • Select  a specific  number of rows in query

    How can a specific number of rows be selected in a query? For example, a query retrieves 30,000 records and I want to retrieve the output by groups of 5,000. I want the query to retrieve the first 5,000 records, then the next 5,000 records etc. I tried rownum but that does not work.
    Thanks,
    PANY

    Not AGAIN. Please...........
    Do you know how to Google? Search forum?
    Why do you ask this boring FAQ AGAIN?
    Sybrand Bakker
    Senior Oracle DBA
    Experts: Those who know how to search.

  • CHANGE THE LEVEL NUMBER IN AN SQL QUERY

    Hi
    I've this query:
    SELECT LEVEL,LPAD(' ',(LEVEL+1)*5,' ')||ENAME ENAME
    FROM EMP
    START WITH MGR IS NULL
    CONNECT BY PRIOR EMPNO = MGR
    the result is:
    LEVEL ENAME
    1 KING
    2 JONES
    3 SCOTT
    2 FORD
    3 SMITH
    my question is that if i except FORD how can i change the level number to SMITH from 3 to 2.
    for example:
    SELECT LEVEL,LPAD(' ',(LEVEL+1)*5,' ')||ENAME ENAME
    FROM EMP
    WHERE ENAME <> 'FORD'
    START WITH MGR IS NULL
    CONNECT BY PRIOR EMPNO= MGR
    the result is:
    LEVEL ENAME
    1 KING
    2 JONES
    3 SCOTT
    2 SMITH
    regards
    nadia

    Hi,
    If you notice the level of SMITH is 4 in the initial query but when you exclude FORD, then SMITH is taking up his level i.e., 3.
    SQL>     SELECT LEVEL lvl, ENAME
      2      FROM EMP
      3      START WITH MGR IS NULL
      4      CONNECT BY PRIOR EMPNO = MGR;
           LVL ENAME
             1 KING
             2 JONES
             3 FORD
    4 SMITH
             2 BLAKE
             3 ALLEN
             3 WARD
             3 MARTIN
             3 TURNER
             3 JAMES
             2 CLARK
             3 MILLER
    12 rows selected.
    SQL> Select decode(ename, 'SMITH', lag_level, lvl) dec_lvl,
      2      ename from (
      3      SELECT rownum rn, LEVEL lvl, lag(level) over (order by level) lag_level, ENAME
      4      FROM EMP
      5      START WITH MGR IS NULL
      6      CONNECT BY PRIOR EMPNO = MGR )
      7      Where ename <> 'FORD'
      8      order by rn;
       DEC_LVL ENAME
             1 KING
             2 JONES
             3 SMITH
             2 BLAKE
             3 ALLEN
             3 WARD
             3 MARTIN
             3 TURNER
             3 JAMES
             2 CLARK
             3 MILLER
    11 rows selected.
    SQL>Regards

  • ORA-01722  Invalid Number while executing the Query

    Hi Friends,  need your valuable suggestions.
    We have a DSO with a   characteristic info object  ZDAT (DATA TYPE DATS)  with a reference from 0DATE.
    I am able to see the data of the info object ZDAT using LIST CUBE on the DSO.
    While using this info object ZDAT in the query moniter or bex analyzer it shows the  following errors.
    EORA-01722: invalid number .
    EError reading the data of InfoProvider.
    EError while reading data; navigation is possible   
    I>> Row: 71 Inc: NEXT_PACKAGE Prog: CL_SQL_RESULT_SET.
    Kindly please help me on this issue.

    Hello soumya
    Can you check if you have any NULL values in ZDAT in from LISTCUBE?
    If yes, check the note below
    https://service.sap.com/sap/support/notes/1327167.
    If null value is your problem, you can change the query setting for not to show the null values. Just add a filter in ZDAT to exclude "NULL"
    Regards
    Anindya

  • Format issue for Number field in af:query. Is it an ADF Bug?

    Hi OTN,
    Requirement : Format DepartmentId in query panel
    I have created a view criteria from Employees table (HR Schema). I have four view criteria items called EmployeeId, DepartmentId, Firstname, LastName and all the items having validation property as Selectively Required. DepartmentId attribute have UI Hints property as Format Type = Number and Format = *0000* and Auto Submit=true.
    But in UI, I am not able to do search from af:Query panel. It works fine without setting UI Hints property Format Type* and Format
    Step 1 : Enter 123 in DepartmentId field
    Step 2 : Click Search Button
    Error : Please provide a value for atleast one of the indicated fields
    Error Screen : http://www.freeimagehosting.net/24d51
    Please check the below link for downloading the sample application
    http://formatissue.googlecode.com/svn/trunk/FormatTest/FormatTest.zip
    http://formatissue.googlecode.com/svn/trunk/FormatTest ( SVN version)
    Note:
    JDev Version : 11.1.1.5.0
    I am using ADF BC and ADF Faces Components
    Any recommendations fully appreciated
    Thanks,
    Dinil Mithra
    Edited by: Dinil Mithra on Nov 23, 2011 4:51 PM
    Edited by: Dinil Mithra on Nov 23, 2011 5:21 PM

    Please find the metadata for VO attribute and View Criteria
    <ViewAttribute
    Name="DepartmentId"
    PrecisionRule="true"
    EntityAttrName="DepartmentId"
    EntityUsage="Employees"
    AliasName="DEPARTMENT_ID">
    <Properties>
    <SchemaBasedProperties>
    <CONTROLTYPE
    Value="edit"/>
    <FMT_FORMATTER
    ResId="model.EmployeesView.DepartmentId_FMT_FORMATTER"/>
    <FMT_FORMAT
    ResId="model.EmployeesView.DepartmentId_FMT_FORMAT"/>
    <AUTOSUBMIT
    Value="true"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewCriteria
    Name="EmployeesViewCriteria"
    ViewObjectName="model.EmployeesView"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    </CustomProperties>
    </Properties>
    <ViewCriteriaRow
    Name="vcrow103"
    UpperColumns="1">
    <ViewCriteriaItem
    Name="EmployeesViewCriteria_vcrow103_EmployeeId"
    ViewAttribute="EmployeeId"
    Operator="="
    Conjunction="AND"
    Required="SelectivelyRequired"
    GenerateIsNullClauseForBindVars="false"/>
    <ViewCriteriaItem
    Name="EmployeesViewCriteria_vcrow103_DepartmentId_EmployeesViewCriteria_vcrow103_DepartmentId_itemHolder_vcrow105_DepartmentId"
    ViewAttribute="DepartmentId"
    Operator="="
    Conjunction="AND"
    Required="SelectivelyRequired"
    GenerateIsNullClauseForBindVars="false"/>
    <ViewCriteriaItem
    Name="FirstName"
    ViewAttribute="FirstName"
    Operator="CONTAINS"
    Conjunction="AND"
    Required="SelectivelyRequired"
    GenerateIsNullClauseForBindVars="false"/>
    <ViewCriteriaItem
    Name="LastName"
    ViewAttribute="LastName"
    Operator="CONTAINS"
    Conjunction="AND"
    Required="SelectivelyRequired"
    GenerateIsNullClauseForBindVars="false"/>
    </ViewCriteriaRow>
    </ViewCriteria>

  • Number of document in query

    Dear all,
    we have a query which are reffering  to an Multicube with an infocube underneath. The infocube is filled with sales document data. Therefore we have created an infoobject (key figure) which is filled with "1" for each position in order to count the sales documents.
    Then in the query we want to count the sales documents. As long as the characteristic "sales document" is in the drilldown the count works fine.
    But when we remove the sales document from the drilldown the count just displays the number of rows instead the number of the documents. We need the number of documents in order to make average calculations.
    We are on BI 7.0. Any help would be great.
    Best regards,
    Stefan from Munich/germany

    I think this is happening because the KF is created for Sales documents.
    Try this > create a formula F1 for below.
    If sales docs NE 0, then 1.
    In Bex, it will be like (Sales docs <> 0)*1.
    Now, write a condition to display when F1= 1. In the characteristics drill down, select the first radio button ( independent of any drill down).
    I hope this will work.
    Thanks...
    Shambhu

  • Count the number of customer in query designer

    Dear Friends,
    I am trying to create a query where we have two key figures.
    ( Division )      (Total Customer)        (Total Customer who purchase)
    10                      10                                 5
    20                       20                              15
    This means i need two figures one is total number of customer against
    each division irrespect of sales either they purchase somthing or not means read from
    master data.
    and second figure i need total number of customer who purchase
    from us by eash division.
    second KF is achived by creating a  New Formula and put 1 in detail view and
    in aggregation tab i select total option and in ref. char. i choose division.
    now i am getting right number of customer who purchased from us.
    for KF one  i dont know how can we read from master data for customer count.
    i know there is a option for characterstics in advance properties choose from
    transaction data or from master data but i am unable to build logic for counting using
    these advance features.
    any help higly appricated.
    Regards,
    Malik
    Edited by: Malik Naeem on Jan 20, 2009 9:01 AM

    HI,
    Maintain the Total Customer as an attribute..
    Then this characteristic has the values from master data..
    THen Convert this characteristic into key figure using Formula Variable with Replacement path.
    Using Formula varaible with replacemant path,  we can convert a characteristic into key fure..
    I Hope u can achieve the result now...
    Hope this helps u..
    Best Regards.
    VVenkat..

  • Count number of columns in query passed as PLSQL parameter

    Hi All,
    I am using a PLSQL package to generate excel file in a Database directory, to generate file i am passing sql query and number of columns manually in a parameter.
    Now i want to automate it and do not want to pass "Number of Columns" as parameter.
    HOW CAN I CALCULATE NUMBER OF COLUMNS IN PASSED QUERY.
    Note: query can contain functions ( to get description or any other data)
    Many Thanks in advance

    http://saubbane.blogspot.com/2011/01/how-to-find-column-count-of-query.html
    Along with Re: Dynamic Fetch on dynamic Sql and just below this post, Blushadow's original run_query (from which I nicked!).

  • Personnel number in Ad Hoc query

    Hi,
    The personnel number in the Ad Hoc query is not coming up. I mean the field is selected for Output but 000000 is seen for al employees. Can anyone please guide as to what needs to be done in order for the Personnel number to show.
    Thanks in advance,
    Aarti

    Hi Aarti,
    I have created a query(in Adhoc query), I have selected Personnel number from KEY FIELDS but in the output it is displaying employee full name instead of Personnel number and I don't see any other Personnel number option to select in any one of these infotypes 0000,0001 and 0002.
    Please give me response.
    Thank you in Advance.
    Regards,
    Prasad Kumar

  • Undocumented error number when doing Spatial Query

    Can anyone tell me why I get these errors?
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13236: internal error in R-tree processing: [failed to allocate memory]
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 83
    ORA-06512: at line 1
    This is the query that was ran:
    SELECT DISTANCE FROM DIST_PTS
    WHERE (CLLI = 'CHCGILCL') AND (MDSYS.SDO_NN (GEOLOC,
    MDSYS.SDO_GEOMETRY (2001, NULL,
    MDSYS.SDO_POINT_TYPE (-87.63804626464844, 41.879520416259766, NULL),
    NULL, NULL), 'SDO_NUM_RES=1') = 'TRUE').
    I am using 8.1.6 and the error number ORA-13236 doesn't appear to be documented. I have tried reindexing the spatial indexes but to no avail.
    Thanks
    Bryan
    null

    Hi,
    R-tree indexes were field test in 8.1.6. The error you are seeing doesn't look familiar in terms of fixes that were made for the first production ship in 8.1.7.
    You should try upgrading, and it should be fine.
    dan

  • Max number of characteristics on query result

    Hi Experts,
    I got an error: "maximum number of characteristics(50) reached (BRAIN 696)" on query result because my query has over than 50 characteristics on rows. How can i solve it?
    Best Regards,
    Pablo
    Edited by: Pablo Moraes on Aug 6, 2009 5:42 PM

    Dear Andrew,
    as far as I know there is a limit at 999 characteristics per class. If 999 characteristics are there in a class an error message is raised to inform the user.
    Best regards,
    Christoph

  • What is the maximum number of datasets you can use in a non-global zone.

    I have been trying to assign 8 datasets to a non-global zone. Whilst I can create as many as I like using the zonecfg command, when I boot the zone only the first 7 ever get mounted. Running zfs list in the zone also only displays the first 7 datasets.
    Any assitance will be greatly appreciated.
    I am running
    Solaris 10 8/07 s10s_u4wos_12b SPARC
    Chris

    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions014.htm
    A comma-delimited list of expressions can contain no more than 1000 expressions. A comma-delimited list of sets of expressions can contain any number of sets, but each set can contain no more than 1000 expressions.
    The following are some valid expression lists in conditions:
    (10, 20, 40)
    ('SCOTT', 'BLAKE', 'TAYLOR')
    ( ('Guy', 'Himuro', 'GHIMURO'),('Karen', 'Colmenares', 'KCOLMENA') )

  • Limitting the number of records in query

    I like to limit the number of records retrieved in the query. I set Query All Records block property to NO, Query Array Size to the number I want to retrieve. Before doing that, I set form Preference - Array Processing checked. The result is form always retrieves all records meets the search condition. Could someone tell me what's wrong with it?

    I do not understand why and what exactly you want to do. The query array size defines the number records your form should fetch at a time, i.e. if you have 100 records in the database and you set the array size to 20, forms will perform 5 fetch cycles to retrieve all records. However, this is transparent to the user and he will see all 100 records. This property is used for performance tuning when working with a large volume of records.

  • NUmber of records in query mismatch number of records in file

    Hi  Experts,
    I am running an APD having as source a query and target file.
    The issue is that in my query i have 78 records and in my file 138 any possible solutions??
    Points will be awarded for useful answers.
    Kevin

    hello Kevin,
    The reason for getting more records in file can be due to:
    May be you will having a characteristic due to which the Key Figure values are getting split up into many rows.
    For eg:
    If you have condition type in Rows, and have other characteristics like, Material, Customer etc.. you will get out put as:
    Sales Org Sales Dist AGI Code UC AGi code Bill Qty CondVal(Cond type1) CondVal(Condition type2) CondVal(Cond type3)
    A B C D 122 10.00 0 0
    A B C D 122 0.00 12.00 0
    A B C D 122 0.00 0.00 15.00
    When you will remove the char due to which you are getting the above output, you will get proper result as follows:
    Sales Org Sales Dist AGI Code UC AGi code Bill Qty CondVal(Cond type1) CondVal(Condition type2) CondVal(Cond type3)
    A B C D 122 10.00 12.00 15.00
    Hope it helps
    Regards
    Lavanya

Maybe you are looking for

  • Follow-up Business Transactions

    Hi Experts, I have a problem with follow-up transactions. I created two transactions, a Quotation and a Standard Order. Then I created follow-up for these transactions in the copying control, ZAG --> ZTA. Now, when I create a new Quotation in the Web

  • Data load to DSO takes long time to finish

    Dear All, We have a data load from data source to std  DSO.The data load takes 5 hours to complete  6000 records in single data package which is long time. Process monitor shows yellow status at one of the step for long time "No message :Transformati

  • Unarchiving of Repository gives an error

    Hi SDNers, I am shifting my repository from Oracle  dB to SQL dB on a different server, for this I have archived the repository. While trying to unarchive it in the SQL dB server, it throws an error: "Description: [DBNETLIB][ConnectionOpen (Connect()

  • Use of Information systems

    Hi, What is the use of Missing part information system list and Missing part list? If there are missing parts during availability check for an order, will the system stop processing that order? In such cases, what should we do to overcome this issue?

  • How can I ensure that Adobe Encode will find the files Adobe Premier creates

    I can't export  video audio sequence. I invoke the "Export" function and Adobe Encoder starts. When I click on the "Start Queue" button the Adobe Encoder fails and gives the following message. - Source File: C:\Users\stan\AppData\Local\Temp\road walk