Count Rows before Excecution of BEx Query

Hi all,
I would appreciate it if someone could help me in the following matter:
I have a BEx query with a large number of rows / records  (sometime about more than 100.000 rows) depending on the selection in the selection screen. I would like to count the number of rows of the selection before excedcuting this query in order to send an error message, so that the user needs to make a new selection with less rows due to the fact that we get short dumps. The problem I have, I cannot find a function module or something else to get the number of the selected rows.
Can anyone help me to solve this????
Best Regards
Abdel

Hi all,
I have solved the problem. I have modeled a DSO with all data of all my Cubes and wrote a programm in the User-Exit for reporting variables that counts the selected rows before excecuting the query. A warning message is also programed, when the user choses too much rows.
But thank you for triying to help me.
Best Regards
Abdel

Similar Messages

  • Doubt on Rows and Coloums in BEx Query Designer.

    Hello, Experts.
    I have a Doubt in BEx Query Designer.
    In the Rows I have a Fiscal year Period,  if the user enters the Fiscal year period for e.g. : 001/2006  .  
    in the columns i have  forecast for the Fiscal year period which user entered ( 001/2006 ),   and we have another column pervious ( Prior )fiscal year period ( 001/2005 ). 
    My Questions is ,  as we are Restricting with 001/2006 will the query retrieve the values of 2005 or not?
    Thanks in Advance .
    Sharp

    yes i am  Doing Offest.
    I moved this Fiscal year Period to Free char,   and i Restricted with Pervious Fical Year period and Fical year period .  it worked.  but
    when i kept this in Rows and deleted Previous Fiscal Year period .  it is displaying blanks.   in prior years forecast.
    is it because i am Ristricting it to only fical year period  which user entered
             Colums-->  Forcast ( User Entered year )          Prior year
    Rows
    Fiscal year period
      Fiscal year period( user enterd )
    Thanks

  • Before modifying a BEx query in Dev, how to verify that it is the same as the one in Prod?

    I am asked to modify a BObj report that is based on a BEx query. I need to add new restricted key figures to the BEx query to do the mods needed. I found that the BEx in prod is different than the one in Dev. It seems that, over time, some changes are made in Dev but never transported to Prod.
    My dilemma is, how do I revert the BEx in Dev to the same version as in Prod? Can I transport the BEx from Prod to Dev? Someone told me that transports should NEVER go from Prod to Dev - I am new to SAP.
    Thanks for your help.

    Hi,
    we can do Reverse Transport Mechanization transport form PRD to DEV
    but this scenario some times will go wrong.
    directly your are doing changes in PRD system ? don't do
    what ever changes you can do only in DEV system only then do transport to PRD.
    collect one more TR form DEV including changes do transport form dev to prd.
    Thanks,
    Phani.

  • Result row display in a Bex query in BW

    Hi ,
      I have a problem where the result rows are not getting displayed for row where only one line is getting displayed.
    Basically, in column i have a 2 columns one is a normal characteristic for customer and another is a hierarchy field (Product Hierarchy) against some key figures.
    But , for a given customer and product hierarchy their is only one line occuring .
    Here, the result line is not appearing .
    This condition is appearing only where their is a single line comming up.But,  where multiple lines are appearing , the result line is getting displayed.
    The results are not visible at the level 1 when there is only one occurrence and even if the option in Query Designer is :- results rows is  u201Calways displayu201D.
    Is their any other setting i need to do in order to correct this.
    Thanks in advance,
    Balaji Raj

    hello Balaji,
    i had a similar problem with a query.
    in this query a resultline was never shown for a characteristic - even when i choose the option "ever show result line" for this characterstic.
    which sap note did you apply?
    regards
    philipp

  • Rows ino Columns using BEX query

    I got DSO with declaration records. Every declaration can have several versions, say:
    DECLR_ID  VERSION   AMNT
    1111                 01         1000
    1111                 02         1100
    1111                 03         1500 
    1112                 01         5000
    1112                 02         4999
    I need a query to compare final version with corrections (previuos to last versions). The result table must look like this:
    DECLR_ID  VERSION   CORR_AMNT      FINAL_AMNT        DIFF
    1111                 01         1000                     1500                 500
    1111                 02         1100                     1500                 400
    1112                 01         5000                     4999                   -1 
    is it possible by query designer to get results like this by not using any InfoSet?

    Hi,
    There is one possible provided if the version are less,
    Create the restricted KF, for each version where in keep amount as common in all RKF. Then create the calculated KF again for getting the difference of Last version Restricted KF and starting Restricted KF and continue the same for remaining keeping the Last version Restricted KF as common.
    Hope this may work. Try it.
    Regards,
    Vishwa.

  • Count and Percentile calculations for various Lines in BEx Query.

    Dear Experts
    I working on a BEx Query at the moment and the output is required in the format below:
    This and another report (which will be displayed above this report) will go into a WAD eventually.
    I have Key Figure for 'Document Count' but not sure how to get the percentage displayed in the second line and also for the Top 3 Reason Codes (not having anything displayed across 'Top 3 Reason Codes' though). I have tried Selection and other ways but nothing worked so far.
    Do I have to use Cell Editing by any chance or is there a way to work-around this.
    Thanks in advance for your help.
    Kind regards,
    Chandu

    You can achieve your report format by creating a Structure in rows with Cell definitions. Define each cell in COunt Document KF according to the row logic.

  • Report on BEx query with 2 structures (one in rows and one in columns)

    Hi, experts! I have to make Crystall report on BEx query with 2 structures, one in columns (with KF's), and one in rows. Is it possible to create such report? Because when I create such report, I cant see fields in structures, only characteristics fields.
    Ok, I found samr problem in another thread. Sorry.
    Edited by: Mikhail Sychev on Dec 5, 2009 9:53 PM

    Hey Flora,
    Happy to hear that its working now.
    Answering your question, again its upto the connection and report format you are using. Based on your question i hope you your report output should be like this.
    You cannot map to two labels for the series, again this report format is possible only in cross tab through Webi. I would suggest you to concatenate the material and month in a dimension in webi like below.
    I have done the concatenation in excel level, i would suggest you to do that in webi. Try to reduce the formula as much in excel.
    or
    If you are using Query browser connection, then i would suggest you to create a separate report which will display the actual vs plan material wise, here you need to pass the material as a prompt.
    Hope this helps in clear, please revert me for any clarification.

  • 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

  • How to increase the row and Column length of Bex query in EP Portal 7.3

    Dear All,
    Please let me know the process  to Increase the Rows and Columns  Size of Bex Query in Enterprise Portal  of SAP  7.3 .
    Please  let settings to increase rows up 10000 and column 100 in one page.
    Thanks
    Regards,
    Sai

    Dear All,
    Please find the attached screen shot.
    The report be open with 4 or 5 columns and 5 or 6 rows.
    So, please  let me know how to increase the length of the table.
    Do the needful for me to over come this issue.
    Thanks
    Regards,
    Sai.

  • Hierarchy: How to suppress duplicated/repeated rows in a BEx query

    Hi Gurus.
    I have a BEx query which displays data based on a Cost Element hierarchy.  When the hierarchy is expanded to leaf level (or any level), all key figures and characteristics are displayed for the leaf level but are also repeated throughout all the levels above.
    Is it possible to suppress the repeated rows in higher levels of the hierarchy and display a summary result only?
    The issue we have is that if the user wishes to export or save a workbook, they will have to filter and manipulate the report a great deal which is impractical.
    I'm hoping it's a simple setting that I've missed.  I look forward to receiving the magic answer!! :o)
    Thanks,
    Angela

    Hi All,
    I've been playing around a bit more and found a setting which I hope my users will find acceptable:
    From the query - Query properties -> Data Formatting tab - Multidimensional View -> select Display Rows hierarchically and expand to (chosen characteristic)
    Can anyone tell me if I can set this as a default setting in the query designer, or will I need to create a view to save the setting?
    Thanks all,
    Angela

  • How to Increase the Rows and Columns Size of Bex Query in Enterprise Portal  of SAP  7.3

    Dear All,
    Please let me know the process how to Increase the Rows and Columns  Size of Bex Query in Enterprise Portal  of SAP  7.3 .
    Currently I am getting Only  4 columns and 10 rows in One Page .And I am getting 1,2 etc tabs for both row and column. So i want to increase the column length more than 100  and row length more than 10000.
    Please suggest me a suitable solution to over come this issue.
    Please find the Below screen shot.
    Thanks
    Regards,
    Sai

    Dear All,
    Please find the attached screen shot.
    The report be open with 4 or 5 columns and 5 or 6 rows.
    So, please  let me know how to increase the length of the table.
    Do the needful for me to over come this issue.
    Thanks
    Regards,
    Sai.

  • Bex Query - Display Rows, even when no database record exists?

    Hi everybody,
    im creating a Query with Bex Query designer and have a requirement which i cant cope with atm, so i hope you can help me.
    I made a small screenshot with excel to explain how the query should be:
    [http://yfrog.com/ncqueryj]
    So, the requirement now is, even when for example there are no records for company A at all, the rows A-A1 to A-A4 should still be displayed in the query simply with no values.
    The Accounts are already in an row structure, but it isnt an option to take the company into the row structure, as this would mean we have to do several thousands selections for one query and there is more then one query to do, with each time different accounts, so the row structure wouldnt be reusable too.
    Do you know any way to achieve this without adding the company to the row structure?
    I hope my explanation was comprehensible, if you still have any question just ask.
    Thanks in advance
    Noody

    Hi Harry,
    thanks for the answer, it was already very helpful, but my problem still isnt completely solved because actually they dont want to get all companies that exists, but only certain companies which then should always be displayed, even without records.
    So for example they have company A, B, C and D, they always want to have A, B and C, even without values, but never D, even when D has values.
    The companies they want to see in the Query are in an Hierarchy which is selected through filter, so actually they dont want all existing companies from master data but all existing companies from an hierarchy.
    Regards
    Noody

  • BEx query with keyfigure rank in row, chars and other keyfigures in columns

    Hi All,
        I have a BEx query with Plant and Region in rows and two keyfigures(% and rank calculation) in the column. Now my requirement is to display rank in the first column, plant and % cal. in the next columns in query output.
    Query ouput should look like :
    rank plant  %
    1     XYZ    63.00
      2    ABC   76.94 and soon.
    Is any way possible to achieve this and if yes can anyone explain in detail with steps, I apprecaite your help with points.
    Thanks
    Eric.

    Hi  Jerome,
       Thanks for quick response, is there any alternate way like customer exits or etc. This is my requirement and I need to provide the users the solution. I appreciate your valuable time.
    Regards
    Eric

  • BEx query needs to count unique characteristic values

    Is there any way to build a query using BEx query designer to count the number of unique values of a characteristic.  For instance, my cube has detailed transactions for claim information.  Each claim number can have multiple products.  My query need to show the number of claims that exist for each product.  I don't want the detail of the claim number, just how many claims exist.
    Product          Gross Paid Loss        Claim Count
    Total Auto                $ 43,865.01              ?
    Total Property  $ 4,068,321.57              ?
    Not assigned                19,426

    Hi,
    Creat calculated  keyfigure with data functions Count value and save with technical name.
    Right click on that go to propertes, select count with exception aggregation - Claim Number,
    also use after aggregation and decimal places '0'.
    Regards
    Malyadri

  • Drill down ( Collapsible Row ) Report in BEx query designer ?

    Dear Friends!
       I am supoosed to create a report drill down report for Purchasing History to be precise,  I know that we can have drill down feature using heirarchy but is it possible for Us to have PO & PO item heirarachy ? or any other way to do drill down reporting in SAP BEx Query designer ?
    like my current report is : -
    | Vendor | Purchasing Organisation | Purchasing Group | Plant | PO Number | Item | Material / Service | Description | .... ( keyfigures) |
    Now I am supposed to create a report  in which
    normal view
    | Vendor | Purchasing Organisation | Purchasing Group | Plant | |> PO Number| .... ( keyfigures) | Payment |
    drill down or collapsible view ( please consider the heading as data I am not talking about dynamically change of  headings ).
    | Vendor | Purchasing Organisation | Purchasing Group | Plant | V PO Number | Item | Material / Service | Description | .... ( keyfigures) |
    is there anyway to design the report in above mention manner ? you any input will be appreciated greatly.
    Thank you so much!
    Regards
    Naim

    Hi Naim,
    usually we don't do the transactional data as hierarchy.  not sure the reason behind your requirement.
    we can do one of the below :-
    1. To have the default view as
    | Vendor | Purchasing Organisation | Purchasing Group | Plant | | PO Number| .( keyfigures) | Payment |
    and then user can drill down on rest of the characteristics for detailed view later on.
    2. or if they don't want to drill down on characteristics;-
    we can build 2 reports , one for header level information and then jump to second query for detailed information(item level) using RRI.
    first query:
    | Vendor | Purchasing Organisation | Purchasing Group | Plant | | PO Number| .( keyfigures) | Payment |
    second query:
    | Vendor | Purchasing Organisation | Purchasing Group | Plant |  PO Number | Item | Material / Service | Description | .... ( keyfigures) |
    Let us know if this works out?
    Regards,
    Sakthi.

Maybe you are looking for