Order of bex query

Hi experts,
I have a requirement to make the format of report as under.
Date 1.................. Date 2............. Result
A... B... C ............A... B... C....... .30
Whereas result is area1.a+area2.a. I am putting following fields to column of query designer and in same way.
Date
.. Key Figures
......A
......B
......C
......Result
But the outcome is as under.
Date 1........................... Date 2
A... B... C... Result....... A... B... C.... Result.....Overall Result
I tried to supress the result of date but it wont work. Any idea on how to sort it in right order.
Thanks
Ray

So are you looking for both master data and transactional data in the report? If it is just the transactional data you could build a dummy key figure EG: number of rows in the bex and pull into the webi report.

Similar Messages

  • Count of Number of Orders in BEX query

    Hi,
    for Count number of Orders, have created a KF calculated on Order Quantity and then, in property, have inserted in Exception Aggregation the counting of All values of characteristic Sales Document and then on the KF calculated I do an KF restricted on the orders rejected. For order cancelled (Recordmode = R) the calculation it is different if I make a FULL or a FULL and then a delta, according to if the order has more items and only one item annulled or if the order has only one item and then it comes cancelled.
    How can I count the orders in these cases?
    Many thanks.
    Charly

    Hi Parth,
    following the example of the query:
    1) Only document 220062675 with Reverse (cancelled) without drilldown Document
    Calendar Year/Month----# Orders AVG--Counter for Orders-----# Orders
    05.2011--00--
    0
    Overall Result--00--
    0
    2) Only document 220062675 with Reverse (cancelled) with drilldown Document
    Calendar Year/Month-----Sales document# Orders AVG--Counter for Orders-----# Orders
    05.2011--22006267500--
    0
    Overall Result--00--
    0
    With only this document the calculated is good.
    3) Two document:  220062675 with Reverse (cancelled) and 220062675 (Normal) without drilldown Document
    Calendar Year/Month----# Orders AVG--Counter for Orders-----# Orders
    05.2011--11--
    2
    Overall Result--11--
    2
    The problem here is that # Orders (Counter for Orders / # Orders AVG) is 2 and not 1.
    4) Two document:  220062675 with Reverse (cancelled) and 220062675 (Normal) with drilldown Document
    Calendar Year/Month-----Sales document# Orders AVG--Counter for Orders-----# Orders
    05.2011--22006267500--
    0
    05.2011--22006267611--
    1
    Overall Result--11--
    1
    In this case, the count of orders is different if drilldown or not.
    Charly
    Edited by: Charly1 on Jun 2, 2011 4:56 AM

  • Order query by empty position - BEX query

    Hi,
    We need to order a BEX query by Invoice and Ascending Position (we need to see first the empty position #).
    The type of the infoObject "Position" is NUMC (6).
    We tried to convert it to char, but it didn't work.
    We also ordered the query by position ascending, but the result we obtained is:
    Invoice
    Position
    Material
    Quantity
    1
    1
    930100
    20
    1
    2
    930200
    30
    1
    50
    2
    1
    930200
    70
    2
    70
    3
    1
    930200
    35
    3
    2
    930100
    25
    3
    60
    We need to obtain this result:
    Invoice
    Position
    Material
    Quantity
    1
    50
    1
    1
    930100
    20
    1
    2
    930200
    30
    2
    70
    2
    1
    930200
    70
    3
    60
    3
    1
    930200
    35
    3
    2
    930100
    25
    Any ideas?
    Thanks in advance,
    Florencia

    Hi Kodanda, we've already tried the ascending order, but we're gettting this order:
    nvoice
    Position
    Material
    Quantity
    1
    1
    930100
    20
    1
    2
    930200
    30
    1
    50
    2
    1
    930200
    70
    2
    70
    3
    1
    930200
    35
    3
    2
    930100
    25
    3
    60
    We need to obtain this result:
    Invoice
    Position
    Material
    Quantity
    1
    50
    1
    1
    930100
    20
    1
    2
    930200
    30
    2
    70
    2
    1
    930200
    70
    3
    60
    3
    1
    930200
    35
    3
    2
    930100
    25

  • Unable to sequence the prompts as mentioned in Bex Query

    Hi,
    We are unable to sequence the prompt order in web i report which is build up on Bex query.
    We have follwed the prompts order in Bex query,
    When we build a web i report the sequence of prompts is not coming as expected, rather its taking in alphabetical order.
    Please help us in ordering the sequence of the prompts in Web i.
    Thanks in Advance,
    Swaraj.

    Hi,
    Part of this other post I just answered, so I'll leave the same info here...
    This is a known behavior, but I know it is bugging more people, because the same is true for (normal) universe based prompts.
    They also cannot be 'arranged'. Since the Bex query is the 'universe', ordering that has been set in the 'universe' is the only chance you have.
    Like with the universe you could use prefixes to separate them from the query defined prompts (based on an alphabetic sort of the prompt message). I'd say this is a good one for the idea place...
    (actually it is there, part of this one... [https://cw.sdn.sap.com/cw/ideas/2377])
    Vote for it if you want this happening.
    Good luck,
    Marianne

  • BEx Query Columns come back in different Order after drill?

    I have a strange effect when I work with BEx Queries in Xcelsius.
    On default, I open and display the Bex Query "A". Columns are in order like defined in BEx Designer (Column1, Column2, Column3.....)
    I want to do a drill, and so in Xcelsius BEx Connection settings I set the Filter on Field "X" in the XLS and in "Query Usage" I addionally apply the setting "Refresh when Trigger Cell "X" changes".
    Starting the report works fine. But when I do the drill and the Query refreshes, the BEx Query Columns come back in different order?!?
    It looks as if Column 2 and Column 3 are exchanged.
    How can I fix that?
    Thx,
    B. Wegner

    After some testing....
    This issue is independent from the filter value. But it only seems to occure when a second BEx Query connection is defined.
    The BEx Query Data Columns come back in different order after
    - Refresh on Trigger
    - Refresh after XY Seconds
    Any Ideas?
    Edited by: B.Wegner on Nov 16, 2010 3:42 PM

  • 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,

  • Two problmes between  Crystal Reports 2008 and Bex Query

    Hi Gurus.
    I have two problems with Crystal Reports 2008 when It obtains data from a Bex Query (SAP MDX query connection).
    1)     I have defined some Parameters Fields using the follow options:
    Type: String
    List of Values: Dynamic
    Value Options Level1:
                         Show on (Viewer) Panel :Editable
                          Prompt text: <text>
                          Sort Order: Ascending by value
                          Prompt With description Only : False
                          Optional Prompt: True
                          Allow multiple values: True
                          Allow discrete values: True
                          Allow range values: False
    When I execute the report with the client of Crystal Reports 2008 (the developer tool), in the initial screen shows a list box where I can select the values from the left box and add it to the left box (as a usually filter). When the number of options (LOV) is more than  the maximum of the system, I have a input box bellow the list box, where I can insert any value (manually) and a button to insert it into the left box. When I publish the Report in the infoview, this filter is modified and the input box where I can introduce manually values is not showed and I can insert only the values showed in the list box, it causes that I can`t select a lot of values that is in the master data of SAP BW, because they arenu2019t listed in the list box.
    There is any option to ability this option in the infoview.
    2)     My Bex query, have a date filter with variable in the restricted key figures, when I execute a Crystal Reports, the infoview (and the Crystal Reports 2008 designer) ask me 2 times the same date, first only the date and second the date and the rest of parameters (introduced in the report of Crystal Reports).
    Why I need insert the date 2 times? How can I modify the Crystal Report for ask me only one time all the parameters?.
    Thanks.

    Hi Abhilash.
    Thank you for your information.
    1) Yes, the parameters are created in the Crystal Reports designer. I have created the parameters in the Crystal Report because I use the same Bex Query to create some Crystal Report, in other case, I will need create some Bex Query.
    2)The Bex query has the date filters and I have created some filters in Crystal Reports designer, the date filter from the Bex query is created automatically in the Crystal Report Designer but I don't use it, I haven't created it anytime. I use my filters only in the record selection. The date filters from the Bex query is showed as Static, and I can`t delete it, if I modify the parameter to dynamic or static with values, at first step ask me again static without values and the second step of the report execution ask me the parameter as I have defined in Crystal Reports Designer, my parameters fields are dynamic. A lot of reports have subreport, but I have created one of them without subreport (to trial) and the Crystal Reports ask me the date filters at first execution, and when I insert the date filters, in the second step, ask me the date filters again and my parameters fields again.
    Thank you again.

  • New ratio doesn't appear in Bex Query designer

    Hello Experts,
    I added 2 ratios to my infocube. It activated without any problem. I then added these 2 ratios to my multiprovider and activated it after affecting them to the previous infocube.
    Then I connected to the Bex query designer and loaded a report in order to add these ratios, but there are not available for selection in the Ratio menu of the multiprovider.
    Has anyone faced this problem?
    Thanks

    Try reactivating the Multiprovider again and see if that works !
    I had this issue earlier, where I couldn't see two of the newly added characteristics in the multiprovider. But simply reactivating the multiprovider solved my issue.
    - Danny

  • Problem with Queries Structures in Bex Query Designer and Universe Designer

    Hi everyone,
    I have a problem when i try to do a Universe from a Bex Query Designer.
    When I use a Characteristic Restrictions in a Structure, the universe only show me the structure without the objects inside it.
    EJ:
    1) Bex Query Designer
    Colunms
    (Structure) ZSRT_123
                          - (Characteristic Restrictions) Reg Guayana
    >          (InfoObject)     0Product = 'XXX'
    >          (InfoObject)     0Country = 'YYY'
         - (Characteristic Restrictions) Reg Caracas
    >          (InfoObject)     0Product = 'AAA'
    >          (InfoObject)     0Country = 'BBB'
    Rows
    (Structure) ZSRT_456
                   (Key Figure)     Net Sales
    2) Universe designer
    (Class) ZSRT_456
    >(Measure)      Net Sale
    (Class)     ZSRT_123
    >(Dimension)      ZSRT_123
    The universe dont translate the two Characteristic Restrictions in the structure ZSRT_123.
    Any information would be much appreciated. Thank you.

    Hi,
    I assume that you are using BOE XI 3.1 SP2.
    We have added an option in SP2 to generate or not the L00 level.
    Unfortunately this option applies not only on characteristics but also on hierarchies, hierarchies variables and structures: that's the reason why you have no elements belonging to the structure generated.
    I recommend to always generate L00 in order to have your structure generated correctly.
    This issue will be fixed in SP3.
    Regards,
    Didier

  • 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

  • No data in Crystal report created on SAP BW BEx Query

    Hi Experts,
    I am trying to create a Crystal report on top of a BW query. I am able to login to the BW system and open the BEx query and the objects are coming into the crystal report.
    But when I drag and drop some objects into the details area and try to preview sample - it does not show any data (it shows accessing database but doesnt bring any data)
    I copied the generated SQL query in to the section in the BW system in transaction code 'MDXTEST' and it runs correctly and shows me the result below there.
    Just to try - I unchecked 'Use MDX..' check box by following the path SAP->Settings to check if that could bring back data ... and YES that worked which means data is not coming from the BW query with MDX connection but when MDX seems to be fine and retrieve result when I run the sql statement in tcode MDXTEST.
    Also when I do preview samples - I can see in SM50 in BW system that it is trying to run the report just that I am not able to see any data in my crystal report.
    Any help in this regards would be greatly appreciated.
    Thanks in advance.
    Regards,
    Sunny

    Hello
    The order of display of attributes in Webi and Crystal report would be different.
    Collapse the infoobject and skim through the attributes, you should be able to find them.
    Vishal

  • Best practice for multiple instances of the same BEX query

    Hi there,
    I'm wondering what's the best way to use multiple instances of the same BEX query. Let me explain what I mean:
    I have a dashboard with different queries feeding different period of time such as: week to date, month to date and so on. One query for each since it is based on a user exit.
    For each query I want to show different data in different sections of my dashboard. Per example: sales per directors or sales per customer group, sales per day, sales per week and the like.I tried to connect a simple bar chart via a direct connection but with no success due to the multiple lines generated by the addition of the sales director, customer group, week number and so on.
    My question is about the way to connect the different queries efficiently in order to show the different data while avoiding multiple useless lines.
    The image above shows the query browser where, per example, for a Month to date query there will be mutiple line for each week as well as one line for each director. If, for two different components, I want to show data per week and data per director or other representation what is the best practice:
    Add another instance of the same query and only put the week information and another one will only the director info?
    Should I bind those to the excel file and use formulas to make final calculations?
    Will there be a performance issues for adding different instances of the same query
    I have 6 different queries (read 6 user exit that filters time via user exit).
    Depending on the best practices there might be 4 instances for each for a total of 24 instances in the query browser.
    I hope my question is clear enough, if not please do not hesitate I'll clarify as much as possible.
    Regards,
    Steve

    Hi Steve,
    Might be trying for solution for a long time, If i understood your question clear let me clarify you few points.
    You are trying to access the bex query which is designed with the exit's in the background based on the logic and trying to call the entire dimensions and key-figures in a single connection. Then you are trying to map those data in the charts.
    Steve, try to make more connections based upon the logic and split them. use the same query but split them by sales per customer group, sales per day, sales per week by making three different connections and try. You can merge the prompts from all connections.
    Hope this Helps!!!
    Sorry if i misunderstood your question.
    --SumanT

  • How to refresh report data from bex query (BW) with parameters

    Hello,
    i hope someone can help me with my problem. I developed an desktop application, which loads (actual state) a report from the local file system. After setting the parameters, the report should be saved as a pdf file. Loading the report into the ReportDocument object and exporting the report to a pdf works fine. Setting parameters (without) a data source too. But now i can't refresh the data in the reports given by a parameter (e.g. time).
    I know there are two methods to do this. Push and pull. I want to use the pull method, cause my program should exports different reports and i think it should be easier to handle this with this method.
    On my development environment is installed:
    Crystal Reports SP 4
    MS Visual Studio 2010 (coding with C# .NET)
    .NET Framework 4
    SAP Integration Kit
    Crystal Reports for Visual Studio 2010 SP1 - SDK libraries
    Crystal Reports for Visual Studio 2010 SP1 - Runtime 32 bit
    SAP GUI 7.20 (Compilation 3)
    The bex query is enabled for external use from ole db for olap. Do i have forget something else?
    Here is a part of my code:
            public ReportDocument doPullMethod(ReportDocument crReportDocument)
                TableLogOnInfo crTableLogOnInfo = crReportDocument.Database.Tables[0].LogOnInfo;
                ConnectionInfo crConnectionInfo = crTableLogOnInfo.ConnectionInfo;
                crConnectionInfo.Password = "*******";
                crReportDocument.SetDatabaseLogon(crConnectionInfo.UserID, crConnectionInfo.Password, crConnectionInfo.ServerName, crConnectionInfo.DatabaseName);
                MessageBox.Show(crConnectionInfo.UserID + " _ " + crConnectionInfo.Password + " _ " + crConnectionInfo.ServerName + " _ " + crConnectionInfo.DatabaseName);
                for (int i = 0; i < crReportDocument.Database.Tables.Count; i++)
                //    crReportDocument.Database.Tables<i>.ApplyLogOnInfo(crTableLogOnInfo);
                    MessageBox.Show("TestConnectivity: " + crReportDocument.Database.Tables<i>.TestConnectivity());
                return crReportDocument;
    Cause i'm using only one bex query, i know that the SetDatabaseLogon()-method should bring me the same result as the ApplyLogOnInfo()-method SAP Crystal Reports .NET API Guide
    Exists an order which i have to follow? First setting parameter and then set the login informations or backwards? Cause i also get the "Failed to load database information" exception, when i set a parameter and TestConnectivity() returns false.
    Do i have to activate the data refresh manually or will be the data refreshed automatically on export?
    I searched in this forum (.NET - SAP Crystal Reports) and found only this thread which according to my problem:
    [Re: Crystal report connects to BW RFC by .NET;
    The question is assumed answered.

    Hi Robin,
    There is a SAP Integration Kit you need to allow CR to connect to SAP data sources. There isn't one for CR for VS 2010 and I don't believe there are the various extra options available in the SDK, no SDK access to the DB driver.
    Possibly, Check the other post, download and run the app Ludek suggested, it will get the connection info for your report using RAS and then plug the output code into your code and see if that works. It should show the crdb_olap dll is the database driver, assuming that is the connection method you used when designing the report.
    Pay attention to the database dll in the output from that app and verify it is on your PC in: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86
    If that doesn't work then.....
    The problem is, CR for VS 2010 ( version 13 ) is the runtime for BOE 4.0  ( version 14 ) which includes the Integration kit drivers on install. There is no standalone install of the database drivers. They are installed with CR 2011, which doesn't have a SDK included, CR for VS 2010 is also the Developer version for CR 2011.
    Because of the "custom" connection requirements there is no SDK or access to the BW datasource extra options....
    Also note that CR 2008 is not supported in VS 2010, it should work though as long as you stick to 2.0 -> 3.5 framework, no 4.0 Framework support in CR 2008 or BOE 4.0
    You may want to try the SAP Integration Kit forum to see if anyone has been able to make this work or contact your account manager to verify if there are any plans to do what you are doing....
    Don

  • WebI Prompts using BEx Query Variables

    Hello,
    I have the following issues with WebI report selection input paramaters (prompts) that use BW BEx Query variables. Could anyone please assist?
    Issue 1:
    The WebI report has one mandatory and two optional input paramaters (all paramaters from BW BEx Query). When I execute the report via WebI rich client directly, enter the value for mandatory input parameter and leave blanks for both optional input parameters, the report ran OK and has no issue. However, when I ran it through CMC a strange thing happen: I could not select the value for mandatory input paramater as it requires to have values for both optional input paramaters first (which I wish to have them blank and optional). When I refersh values for the mandatory paramater, it says "List of Values for current prompt requires values for following prompts:...(ie. the two optional parameters).
    Anyone has any idea - it seems like it is a CMC issue for the WebI...
    Issue 2:
    Take the same WebI report above, the issue here is the order sequence of the prompts (ie. the selection input parameters). How can we change/control the sequence of the prompts? Whatever sequence of the varaiables (input paramters) in BW BEx Query, the WebI ignores it. Please advise.
    Thanks & Regards,
    Andy

    I did not see separate thread for issue #1, therefore I'll us this thread.
    I am running into similar issue when I get an error message ''List of Values for current prompt requires values for following prompts: <Name of the prompt>".
    We are using BO V4, SP2, Patch 10 with SAP BW as DB via BEx queries.
    I opened support ticket for this issue since obviousely it's still an issue after applying patch 10.
    It's not an issue when 'Rich Internet Application' option is selected to view report in 'Reading' mode (via Launchpad Preferences then Web Inteligence; defautl value for viewing is 'Web').
    I have not tried to use Client tools but even if it works with Client tools - it is not a solution for us. Our company does not plan to install client tools on end user computers.
    Bigger issue us is that report scheduling invokes Web version (not Rich Internet Application). Therefore we cannot schedule report that is giving us problem described. I tried scheduling report from Launchpad and from CMC and both game me error highlighted.

  • Oracle Hints - Bex Query

    Hi experts,
    can I add a particular hints when I execute at run time a query bex ?
    My main scope is that when I run a bex query, the corresponding query may use an oracle parallel hint in order to increase the performance.
    Do you think that I can do it ?
    Thank'you in advance !

    > can I add a particular hints when I execute at run time a query bex ?
    No, you can't.
    > My main scope is that when I run a bex query, the corresponding query may use an oracle parallel hint in order to increase the performance.
    Usually there's a good reason for BEX queries not to use the parallel query feature.
    That reason is: parallel query turns your multi-user database into a single-user query machine.
    This single sql session will aquire way more resources than a standard query - eventually blocking other activities.
    In order to speed up your BEX query better check the execution plan and figure out what makes the query too slow.
    Open a support message for it if you cannot do this yourself - there are quite some bugs around (even with Oracle 10.2.0.4) that lead to bad quey performance.
    Of course - the first things to check would be to install the current Oracle patchset, patches and setup the parameters correctly. More than 90% of all performance support messages are solved just by that!
    regards,
    Lars

Maybe you are looking for

  • Unable to install itunes 10.4.1 on my dell laptop windows 7 64 bit

    Hello I am unable to install itunes 10.4.1 on my dell laptop windows 7 64 bit: i have tried to install itunes on my windows 7 64 bit dell laptop, and everytime it says installation successfully installed, but i can't find the files anywhere in the co

  • ITunes is freezing and crashing my iBook

    Hi I need help Got an iPod video for xmas and have just started to use iTunes- it has been on my system since I bought it. Transferred a lot of music into iTunes to load it onto the iPod. System froze (OS 10.3), tried to restart, it could not find th

  • Airplay Unknown error message (-15008)

    Hi, I'm using an airplay speaker Philips_Fidelio 049A2C but getting the error message when trying to connect through Itunes on macbook pro. Does anyoneknow the solution for this please?

  • [SOLVED] Gnome 3.8 apps crash with X Window System Error

    So far this applications are affected: - gnome-terminal (when clicking on menu) - gnome-control-center (when choosing Users or Date & Time and some other tiles, choosing account in GOA) - epiphany (when clicking on new tab button) They crash with fol

  • Default Illustrator CC color swatch?

    Is it possible to make changes to the default color swatch and have those changes appear as the default color swatch whenever you open Illustrator CC?