Bex Query Calculate Result as Ranked

Hi
i have a Bex Query that i am using to design crystal report....
Data output of query is
Country...$....Rank
US.......100...2
UK........200...1
CA........50....3
Rank is copy of "$" and used option "Calculate Result as " Ranked list in Property of Bex Query Designer.
so when i run the Bex Analyzer the rank shows up as 1,2,3
i am using the same bex query in Crystal report, and when i run crystal reports
the rank shows up as 50, 100,200 etc.
why does the rank 1,2,3 doesnot show up in crystal report
what is the other approach to use ranking in Crystal report

Hi;
We can use the sort order function in ascending format on Rank object in the crytsal. Please try thgis option
Thanks
Afzal

Similar Messages

  • Can we call a bex query from result of another bex query?

    we have a requirement wherein client has asked us for bex reports
    in a BEX report
    multiple queries needs to be executed and the querues are dependent on their parent query
    i.e.
    result of query 1 works as input for query 2 and result of query 2 works as input for query 3..
    is it possible??
    kindly help.

    Hi,
    (If RRI is not exactly what you need)
    Eg. for a scenario where we want to display all positions of documents where at least one position in a document fits given cretaria. You can try it using query/prequery construction.
    In short:
    Create two querries:
    In the first query you set the criteria (the output will be a list of document nos that fits that criteria). For peformance reasons keep this query small.
    In the second query give restriction on document number (replacement path with the first query as a parameter).
    Regards, Leszek

  • BEX - Query Designer - Query Execution - IE "The page cannot be displayed'

    Hi ALL,
    Trying to execute a query from BEx Query Designer, result needs to be displayed on Internet Explorer.
    However, when IE pops up to show the result, it says 'The page cannot be displayed'.
    It seems the PORT Number is wrong.
    When I execute the RSPLAN the port number is 52300 (23 ASCS)  (and it works!!).
    For this web query the port in URL is 55300 (53 SCS).
    Could you help to configure the right port?
    Something needs to be done on Basis side configurations?
    Thank you,
    Nivia

    Hi,
    This especific problem was solved na SM30 programa RSPOR_T_PORTAL.
    But I still have problem:
    The PORTAL logon is displayed and after input the user and pass shows the 500 Internal Error.
    Caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed
    Connect_PM  TYPE=B MSHOST=calsaps011.net.bradesco.com.br GROUP=PUBLIC R3NAME=BWH MSSERV=sapmsBWH PCS=1
    ERROR       partner 'calsaps011.net.bradesco.com.br:sapmsBWH' not reached
    I have looked the services and hosts and the files has the sapgw<> and sapms<> right configured.
    The important detail is that The PORTAL works if it doesn't come from BEx.
    COULD SOMEONE HELP ME?
    Tks,
    Nivia

  • Column chart from Bex query with 2 characteristics in rows and column

    Hi,
    We're trying to represent the following column chart in Dashboard Design:
    Material/Month
    January
    February
    March
    Material 1
    100
    200
    300
    Material 2
    400
    500
    600
    Material 3
    700
    800
    900
    The BEX query has:
    Result objects: Material, Month/year; amount
    The problem is when i paste the Material dimension in the Excel, i'm getting the following result:
    Material/Month
    January
    February
    March
    Material 1
    100
    200
    300
    Material 1
    400
    500
    600
    Material 1
    700
    800
    900
    So, when i display the column chart, the material tag is incorrect:
    as the image attached shows.

    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.

  • IF ELSE Statement in BEx Query based on the results

    Hi experts,
    I want to realize the following IF/ELSE statement in a BEx Query in respect to the result values
    If the result of KF1 equals 0, than set the KF2 to 0, Else (KF1 NE 0) show the value of KF2
    Background: I want to report the order backlog. In the example above we have an incoming order value of 23.700,80 EUR in periode 12.2013 and an turnover of 22.370,80 EUR in periode 01.2014. The order backlog in ST (KF1) is 1 ST (12.2013) - 1 ST (01.2014) = 0 ST. The order backlog in EUR (KF2) is 23.700,80 EUR (12.2013) - 22.370,80 EUR (01.2014) = 1.330 EUR. The Order and Invoice is finished, but we have an positive order backlog in EUR (reason: less turnover as incoming order).
    For this case I want to realize the IF/Else statement to check if the oder backlog in ST = 0, if yes, than set the order backlog in EUR also to 0.
    Any best practices?
    Many thanks and best regards,
    Michael

    Hi Suman,
    thanks aigain for your reply!
    I have tried your proposal before you have posted it.
    In my special case the following if/else statement works successfully:
    CKF = calculated key figure
    Formula1 = (CKF1 == 0) * 0 + (CKF1 <> 0) * CKF2
    In my case the CKF2 is the result value from "Incoming Order value" - "Turnover"
    So I had to define a separate Formula (1:1 equals to CKF2) and then I was able to set "*CKF2" in the statement.
    The statement CKF2 = (CKF1 == 0) * 0 + CKF2 is not possible (because it´s not possible to calculate from CKF2 itself).
    Now it works
    Best regards,
    Michael

  • Results based on From and To value in Bex query designer.

    Dear all,
    We are using BI7.00. In one of our report which pertains to PM user wants to get the details of number of breakdowns which falls in the value range 0 to 1 hours.
    I created a condition which has 2 variables, one is From value and the other is for the To value (since user wants to enter both the limits). I have written a condition that if the breakdown hour is greater than or equal to variable1 and less than or equal to variable2.
    Using the above condition if the query is run, i am not getting the desired output. The values avaialble in the report are 0.65,0.78,1.30,7.38,0 etc., when i give 0 to 1 i should get the values 0.65,0.78 and 0 but instead report displays "No valid results".
    I changed the condition and selected "Between" variable 1 and variable 2 - yet no change in the query.
    To my knowledge i foresee that system is not able to recognize the decimal and hence provides details only based on the whole numbers.
    How to get my requirement achieved in the Bex query designer.
    Experts suggestion with steps will be very useful to solve my problem.
    Regards,
    M.M
    Edited by: Magesh Magesh on Dec 26, 2008 11:28 AM

    Hi Magesh,
    I think you could try one more way.
    Create a formula inserting your two formula variables for limits .(FV -  are ready for input ) .
    The formula would return the result as 1 or 0 because it would have boolean condition in it.
    You could then place a condition in the query designer to only show all records where the value of the formula key fig is 1.
    You formula A would look like
    ( KF > FV1) AND (KF < FV2) * 1.
    And in the condition put A EQ 1.
    You could scale the key figures as well and multiply the limits mentioned by the users in FV1 and FV2 if decimals are still not recognized by SAP.(scaling)
    Regards,
    Sunmit.

  • BEx-Query results in error in SAPLRRI2 and KFB_FUELLEN_CONST

    Hello,
    I hope anyone has a solution for the following problem.
    When applying the "Calculate with Attributes"-how-to, I got the following error message
    in a BEx-Query. It is reproducable and only occurs if I have a formula A minus B
    (key figure A alone and B alone work and A minus 123 also works; plus or multiply also do not work).
    It occurs before the parameter call, although the parameter is only a global filter.
    Unfortunaltely I had to translate the essential content of the error messages,
    for I only have the German ones.
    In the web I get (The proposal for characteristic ... does not fit to the filter.):
    Es wurde eine Abbruchmeldung gesendet.
    WARNING BRAIN (459): Die Vorschlagswerte für Merkmal ZMLST_USE stimmen mit dem Filter überein
    MSGV1: ZMLST_USE
    ABEND RSBOLAP (000): Programmfehler in Klasse SAPMSSY1 Methode : UNCAUGHT_EXCEPTION
    MSGV1: SAPMSSY1
    MSGV3: UNCAUGHT_EXCEPTION----
    In the query designer I get (Systemerror in program SAPLRRI2 and form KFB_FUELLEN_CONST):
    Abbruch: Systemfehler in Programm SAPLRRI2 und Form KFB_FUELLEN_CONST -01- (Langtext beachten)
    Diagnose
    Dieser interne Fehler ist ein gezielter Abbruch, da ein Programmzustand vorliegt, der nicht vorkommen darf.
    Vorgehen
    Analysieren Sie die Situation, und verständigen Sie SAP.
    Wenn der Abbruch bei der Ausführung einer Query, eines Web Templates oder bei der Interaktion im Planning Modeler aufgetreten und dies reproduzierbar ist, nehmen Sie ein Trace auf (Transaktion RSTT).
    Weitere Informationen zur Aufzeichnung eines Trace finden Sie in der Dokumentation zur Trace-Tool-Umgebung sowie im SAP-Hinweis 899572.
    Has anyone a clue? I use SAP BW 7.0 with a version from last summer.
    Best regards
    Thomas
    P.S. I think the following old note "UNCAUGHT_EXCEPTION and filter of items or input help" (SAP Note Number: 950992) does not apply.
    P.P.S.
    See also thread "Error while executing query on portal-SAPMSSY1 method : UNCAUGHT_EXCEPTION"
    Recommended help are:
    - "rebuilding the query and adding 0FISCVAR last"
    - "standard variable (filter on company code). I change it with another"
    - "reducing the BW OLAP Cache from 5 GB to 1 GB" (we have only 200 MB)
    - "Query Properties in the Variable Sequence Tab and remove any variable that is not being used"
    - At least till Spring 2008 seemed to be a problem in the SAP software, may be still be a problem.
    P.P.P.S.
    Found a workaround to design my query. But I still wonder why this does not work.
    Error message seems not appropriate for the problem, if any.
    Edited by: Thomas Köpp on Mar 10, 2009 3:36 PM

    Hi Thomas,
    I am experiencing exactly the same issue and after debugging my report on RSRT TCODE I get exactly the same exception error message: "KFB_FUELLEN_CONST-01-" on Program: "SAPLRRI2".
    Can you share please how you corrected the issue and/or what was the workarround you performed?
    Thanks in advance

  • Bex Query - Specific calculation in query result

    Hi experts!
    I've received a requirement and I cannot find any way to delivery it using the stantard operation or configuration into Bex Query.
    We have a query which have three KF with summarization in result. The new requirement is based in the KF "POND" to change the calculation in the result. Below are the actual result and the expected result.
    The actual query result.
    Line
    OP
    QTD
    TMP
    POND
    A1
    1614073
    702
    19
    13338
    Total A
    702
    19
    13338
    B1
    1587949
    840
    235
    197400
    B2
    1610938
    4.240
    28
    118720
    Total B
    5.080
    263
    316120
    Total A + B
    5.782
    282
    329458
    The expect result based on the new requerment
    Linha
    Ordem de Produção
    QTD
    TMP
    POND
    A1
    1614073
    702
    19
    13338
    Total A
    702
    19
    19
    B1
    1587949
    840
    235
    197400
    B2
    1610938
    4.240
    28
    118720
    Total B
    5.080
    263
    62
    TOTAL A + B
    5.782
    282
    57
    Check out the "Total A" result for KF "POND", the new calculation is the sum of KF "POND" divided by the sum of KF "QTD" (13338 / 702 = 19)
    The same to "Total B" result for KF "POND", the calculation is the sum of "POND" divided by sum of KF "QTD" ( (197400 + 118720) / (840 + 4240) = 62).
    I've been using all recourses into Bex query, but I've haven't found any way to deliver this requirement, though.
    I'd really appreciate if anyone could give me some suggestion to deliver this requirement.
    Thank you.
    César Sevilha.

    Hi Suman!
    Thanks for your replay.
    The collision options wont help me because I have calculation on the same structure.
    I need to keep the division POND by QTD in the result. Check out the table below.
    The Formula Bex Query (POND / QTD) is a simple division between  KF POND by KF QTD, the result
    is a totalization of lines A and B.
    The requirement is to keep this division on the result. Check out the column Requirement, this is the result expected.
      Line
      OP
      QTD
      POND
    Formula
    Bex Query (POND / QTD)
    Requirement
    A1
    1614073
    702 KG
    13.338 KG
    19 KG
    19 KG
    Total A
    Result
    702 KG
    13.338 KG
    19 KG
    19 KG
    result (POND) divided by result (QTD)
    B1
    1587949
    848 KG
    197.400 KG
    233 KG
    233 KG
    B2
    1610938
    4.318 KG
    118.720 KG
    27 KG
    27 KG
    Total B
    Result
    5.167 KG
    316.120 KG
    260 KG
    61 KG
    result (POND) divided by result (QTD)
    Total A + B
    Result
    5.869 KG
    329.458 KG
    279 KG
    56 KG
    result (POND) divided by result (QTD)
    I'd like to know how to keep the division in the result.
    Example:
    The result of Total B should be 61 kg which is the result of division between the result of KF POND (316.120) by the result of QTD (5167).The currently formula has as result the totalization  of B1 and B2.
    Thank you in advance.
    César Sevilha.

  • Bex Query getting Freezed while formatting results

    Hi Friends,
    I am running a BEx Query with one year data selection but it's getting freezes while formatting results. But when i deselect the 'Format after refresh' option  in the query properties..then query is running fine.
    Could you please let me know if there is any reason for this?
    Regards,
    Mahesh

    Hi,
    Just generate your query once with program RSR_GEN_DIRECT_ALL_QUERIES.
    By selecting your multiprovider .
    Thanks,
    Ranjan

  • Exporting BEx Query results to CSV or other files.

    Hi All,
    We have a report designed in WAD, which uses a BEx query to display department’s information. Because of amount of data in the results it crashes when u get all the Free Characters into ROWS(Error is : Result set too large(552244 cells); data retrieval restricted by configuration (maximum =500000 cells).  It is a requirement from the user to have all the free characteristics in the rows( which I can understand is not the right way to go ahead). As it is crashing when you add last characteristic(WBS Purpose)  into the rows, they aren’t able to export data into spread sheet from the results. (as there are no results)
    Now my question is…..is there any way we can export the results from BEX query into any format for example text or csv? If yes, can we schedule that process? Please note that this characteristics are displayed as hierarchies.
    Am new to SAP BW and its been only six months since I have been in this role. Any help would be much appreciated???
    I looked online and some where in the forum it was mentioned of using program RSCRM_BAPI, but looks like it needs some sort of downloads from SAP.
    Is there any other way to export the BEx query results?
    Cheers
    Sandeep

    Hello Sandeep,
    You can use the Item "Context Menu" in your WAD and in the properties by default you can see the Options:
    Export to Excel & Export to CSV will be there and also there are many options which you wanted to see.
    It works for you!!!
    With Regards,
    PJ.

  • 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 results not getting updated

    Hi,
    I am using a BEx Query based on a multiprovider which is fetching data from a multiple remote cubes and multiple regular cubes.
    Now when data in the source system is getting changed the corresponding remote cubes are getting update but query result are not getting re-fresh for at least 2 hours.
    We have already tried doing logging out and and logging into the bex system.
    Is there some cache setting which is required?
    Default cache mode in query is  'Main memory cache without swapping'.
    Kindly advice.
    Regards
    Vivek

    Hi,
    Just generate your query once with program RSR_GEN_DIRECT_ALL_QUERIES.
    By selecting your multiprovider .
    Thanks,
    Ranjan

  • BEX Query not dispaying results

    Hi All,
    I think this week am hit with number of issues....as mentioned in my earlier posts am new to SAP BW and having issues.
    Issue:
    We have a BEx query and it is not displaying results(in Web report). Error is "could not find any records for the given selection......... "
    I have checked the Infocube for the given selection in Query and I can display the records where as it is not displaying at all in BEx query results.
    I have reactivated the cube to see whether the data flows through but it didn't work.
    I tried executing query using RSRT and it is not displaying any results.
    I have deleted data in the infocube and loaded it again and it didn't work
    Any help would be much appreciated.
    Cheers
    Sandeep

    Hi Akshay,
    No errors while executing query under RSRT.
    Yes we are using time variants and we have included fical variant under characteristic restrictions.
    Cheers
    sandeep

  • Bex Query to calculate canceled order value

    Hi experts,
    I am using the 0SD_C03 infoCube to stock the SD data, I want to calculate the net value of canceled orders.
    In the 2LIS_11_VAHDR, there is a field "AUGRU", when it is filled, it means that the order is canceled.
    In the 2LIS_11_VAITM, I have the net value of different order items.
    The two above extractors load data to the InfoCube, the first one, 2LIS_11_VAHDR fill the 0ORD_REASON that is mapped to AUGRU. The second one, 2LIS_11_VAITM, fills the 0NET_VAL that is mapped to NETWR.
    The query in SQL looks like:
    Select 0NET_VAL from 0SD_C03 where VBELN in (Select VBELN from 0SD_C03 where 0ORD_REASON <> "")
    How can I do this with Bex query?
    Thank's a lot.
    Abdess,

    Hi Sunil,
    Like I explained above,
    The 0Ord_Reason is filled only by the extractor  2LIS_11_VAHDR which dosen't give any value for the orders value, the 2LIS_11_VAITM dosen't fill the 0Ord_Reason InfoCube but it fills the orders value InfoObject.
    So if I  restrict with 0ord_reason by excluding blank values, I will get 0 in the measure 0NET_VAL.
    Abdess,

  • Bex Query how to add two results fields to give a new total

    Hello gurus,
    I am using the Bex query designer to develop a report for invoice payments for different document types. One of the requirements of the report is to add a total column to give a total of the results for the document types added together.
    For example, how do I add the results for document x and document y to give me a total of the two? Any help will be much appreciated.
    Thanks
    Forhad
        document X  document Y     total
    A       15                20
             10                30
    result  25               50                (25+50) 75?? (how do i get this total)
    Edited by: Forhad Hussain on Oct 24, 2008 10:32 AM

    Dear Reddy,
    Order
    Resource 
    Actual Time
    Planned Time
    Variance
    782
    A
    7.05
    48
    40.95 (I Kept in Hide)
    B
    7.15
    48.85 (I Kept in Hide)
    Results
    14.20
    48
    33.8
    I tried with CKF's in above way but iam not getting the Results Calculations 14.20 - 48 = 33.8
    Can you help me in this...
    Thanks in advance

Maybe you are looking for