MDX for a BEx query with a characteristic structure
Hi,
I have a BEx query with a characteristic structure in the rows.
Material Structure Measure1
a-Material a-Structure ....
a-Material b-Structure ....
b-Material a-Structure ....
b-Material b-Structure ....
I am looking to run the query via MDX. Is that possible? If yes, how should be the mdx statement.
Thank you in advance for your help.
Regards,
McGreen
Hi,
it will work, so long as you also include the Structure object in the WebI Query panel as a results objects.
the SELECT syntax is much the same as a 'normal' MDX statement.
the quickest way to tell them appart is how the Measures are called. normally, it starts: SELECT [MEASURE.ABC123] NONEMPTY(CROSSJOIN( ... ) )
however, when you have a Structure, all the declarations from the start of the statement looks like : SELECT [ABC123.ABC123] NONEMPTY(CROSSJOIN( ... ) )
i hope this helps.
Regards,
H
Similar Messages
-
Refreshing Hierarchy node variable in BEx query with change in hierarchy
Hi all,
We have used a hierarchy node variable on Characteristic ZECCSAC (user-defined) and used it in a BEx query with default value set to a particular node value. Upto this, it is working fine.
The hierarchy used in the query, with the hierarchy node variable, was later changed ( and in future it can undergo changes ). Since the number of records in the hierarchy are changing, the nodenames of the hierarchy nodes are changing. But the hier node variable default value is still set to the earlier nodename for that node description. So at runtime it is giving an error "ECCS Account Number is invalid"!
Can anyone suggest how to refresh a hierarchy node variable default value each time a query is run so that the latest nodename is always taken ?
Quick reply will be appreciated.
ThanksHi,
You get this with User exits.
Thnaks -
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 PMHey 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. -
Drill Down BeX Query with hierarchy in WEBI
Hi,
I am using a Bex Query with Hierarchy in my WEBI report. Is it possible to drill down ? I am not able to use Scope of Analysis because it is disabled. I am very new to WEBI. Please help me out.
Thanks in Advance.
Lakshmi Mohanhttp://www.google.co.in/url?sa=t&rct=j&q=drill%20down%20bex%20query%20with%20hierarchy%20in%20webi%20%20%20&source=web&cd=2&ved=0CDQQFjAB&url=https%3A%2F%2Fcw.sdn.sap.com%2Fcw%2Fservlet%2FJiveServlet%2FpreviewBody%2F137316-102-1-277519%2FWeb%2520Intelligence%2520on%2520SAP%2520implementation%2520best%2520practices.pdf&ei=xofcTpSgF5DJrAeaxpiIBw&usg=AFQjCNHuwDIpvxciPKJyEdoz3GiVjRKgqA
http://www.scribd.com/doc/62293080/40/Query-Drill-for-hierarchies -
Need transaction code for opening Bex query designer?
Hi ALL,
Can anyone help me with the transaction code for opening Bex query designer?
Like RRMX for Bex Analyzer similarly i want for Bex query designer.
Thanks & Regards
Sameer KhanTHERE IS NO TCODE FOR QUERY DESIGNER. BUT THERE IS AN ALTERNATIVE..
OPEN BEX ANALYSER THROUGH RRMX
OPEN A QUERY
CLICK ON TOOLS-> EDIT QUERY
THIS OPENS QUERY DESIGNER AND YOU CAN USE IT NORMALLY.. -
BEx query with variant from ABAP
Hello,
I'm looking for possibility to start BEx query with variant (variant is created with tx RSRT) from ABAP. There are some funktion modules, which start queries (launch excel), for example RSAH_LAUNCH_EXCEL or RSSEM_QUERY_LAUNCH, but they are ending with short dump, when there are variables in the query. Is there any standard FM, which starts the query with variant or accepts parameters?
regards,
KrzysztofHi,
the short dump was my fault, I've passed query name instead of genuniid to the RSAH_LAUNCH_EXCEL.
What I'm trying to do is to I'll start BEx query with parameters (I don't want to get selection-screen from the query, I need to fill it from ABAP).
Here is my example, which is not working.
DATA:
lv_query(30) TYPE c,
lv_genuniid TYPE rsrrepdir-genuniid,
ls_var TYPE rrx_var,
lt_var TYPE TABLE OF rrx_var.
lv_query = 'YB_MAKLER_DETAIL'.
CALL FUNCTION 'CONVERSION_EXIT_GENID_INPUT'
EXPORTING
input = lv_query
IMPORTING
output = lv_genuniid.
IF lv_genuniid = ''.
WRITE: / 'There is no Query', lv_query.
ELSE.
ls_var-vnam = 'YS_MKLE'.
ls_var-sign = 'I'.
ls_var-opt = 'EQ'.
ls_var-low = '0000005100'.
APPEND ls_var TO lt_var.
ls_var-vnam = 'YS_VTGJ'.
ls_var-sign = 'I'.
ls_var-opt = 'EQ'.
ls_var-low = '1999'.
APPEND ls_var TO lt_var.
CALL FUNCTION 'RSAH_LAUNCH_EXCEL'
EXPORTING
i_genuniid = lv_genuniid
I_OBJVERS = 'A'
i_hide_sapgui = 'X'
TABLES
I_T_VAR = lt_var.
ENDIF.
If parameter 'i_hide_sapgui' is empty, I'm getting empty selection-screen,
If parameter 'i_hide_sapgui' equals 'X' I'm getting selection-screen filled with values, which were used last time manualy, not with values from the internal table 'lt_var'.
Do you have any idea how to pass parameters to the query with this function module?
Regards,
Krzysztof -
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 -
Refresh BEx-Query with variant
Dear all,
i have a question about refreshing Queries with variants.
To refresh a BEx-Query (BW3.5) in a Workbook with VBA is no problem.
For example:
Run "SAPBEX.XLA!SAPBEXrefresh", False, myRange
But is there a possibilty to refresh a BEx-Query with a variant (also with VBA)?
My target is to create a VBA-Tool:
1 which user can select a single Query and the available variant.
2 Then push a VBA-Button
3 After the selection no Variable-Screen will pop-up
and the refreshing is completed.
Thanks allHi Ashok,
refreshing Queries automatically on Workbook open is standard...
What i need is to refresh a Query with variant (saved variable-values for a query e.g. the name of the variant is "ZMYVARIABLES").
The user should not select an existing variant (ZMYVARIABLES)
manually with Shift+F5 (Get Variant) on the Query-Variable POPUP-Screen.
What i need is a codefragment which implement that all.
Pseudo code:
Sub RefreshQuery(QueryID As String, Variantname As String)
End Sub
Thanks,
Erol -
New OLAP connection for each BEx query?
Hi,
I am wondering whether it's really necessary to create for each BEx query a new OLAP connection in BO 4.0.
This is the BICS connection as far as I know. But this would result in a lot of OLAP connections...
Thanks!One OLAP connection is enough for one BW system.
You can also dedicate a OLAP connection to one query if needed. -
Using Bex Query with cell definition with WEBI
Hi,
Currently I am using a Bex query as a datasource for a webi, normally this works ok but I am having trouble with one particular query.
This query has cell definitions defined in the query. When i import the query into WEBI I get an MDX error.
Any suggestions?
Thanks
FlashHi,
We do not see all elements of the BW query in the universe, just those not using cell definitions.
We are currently on Business objects XI 3.1
Using BW 3.5
And the query runs fine using RSRT, it does show some asterix for some of the values but this can be removed by filtering on currency type in BW report
Thank You, -
SAP BO WebI Report on top of BI Bex Query with Authorization Variable
Hi,
We are trying to restrict row level data using BI 7.0 analysis authorization concept. We have an authorization variable in the Bex query and is working perfect in Bex Analyzer as well as in RSRT.
Now we are trying to achieve the same thing in BO webI. We created an Universe using Authentication Mode SSO. We are on BOXI 3.1 and implemented SSO. When we try to run the query in WebI we get the error
"A database error occured. The database error text is: Error in MDDataSetBW.GetCellData..(WS 10901)"
Just for testing purpose, when we use query filter in WebI and use Values from List, it is showing only the authorized value it supposed to show and runs well with that value selected. But we have to achieve this without the query filter in WebI.
So are we missing some thing here or any patch issue? Please share if you have done this type of reports in BO.
Thanks in advance for your help.
Moorthy.Yes I did run MDXTEST and it gives error as 'you do not have sufficient authorization'. The reason it is giving, I guess and we are debugging that to confirm, is first it looks for 0BI_ALL and throws error which is not the case in Bex. See the following trace in RSRT trace.
InfoObject Properties Defined
Reading of Directly Assigned Authorizations
Direct Assignment Does Not Include Universal Authorization 0BI_ALL
Reading the Indirect Assignments with Authorization Object S_RS_AUTH
Does user have OBI_ALL?
No, the User Does Not Have Universal Authorizion 0BI_ALL
Negative Entry in SU53 Result of Failed Check for 0BI_ALL
Indirect assignments found; no universal authorization
Reduction of Authorization Dimensions on Characteristics in InfoProvider
Reduction Successful
Thanks!
Moorthy -
Query browser error for a Bex query
Hello,
I am using Query browser in Dashboards 4.0 to retrieve the data from Bex query. When I select a few dimension measures out of the structure with certain key figures and clicking the preview of the results, I am getting the error message as "Request Processing failed(XLS 000009)[] Error DBMAN(257):SQL Error:58115
Error RS Exception:Arithmetic overflow error converting" kind of error message.
When I remove some dimension members which were selected, I am able to see the preview of the data. What could be the probable reason for the above kinda error?
Thank you.These are generic error, please go through the below link and let us know whether its helpful or not.
Microsoft ODBC data manager not found
Error during "Add Query" in Dashboard 4.0
Happy to help you!
-SumanT -
Error while integrating BEx Query with Cognos
Hi all,
we have made 999 rows and 150 columns..
but we r unable to integrate it with cognos if we remove free characteristics....
and it thows me the following error
1.BAP-ERR-0002 a BAPI error has occured in the function module RFC_READ_TABLE. NOT_AUTHORIZED
2.error when generating data provider
3.Query is too large
Please do reply immediately with the correct solution
Regards
MadhaviHi Vani Reddy
Jus one quick finding are there any new patches upgrade taken place in your system . its in generally occurs because patch issues please refer the following note 1325527.
it may helps you in this reg.
Hope its clear a little..!
Thanks
K M R
***Even if you have nothing, you can get anything.
But your attitude & approach should be positive..!****
>
vani reddy wrote:
> Hi All,
>
> While executing Bex Query user is getting below error message after 20 mins and coming out of BEx.
>
>
>
> Error Group
>
> RFC_ERROR_SYSTEM_FAILURE
>
> Message
>
> An exception that could not be cought occured.
>
> Thanks in advance
> Vani
Edited by: K M R on Aug 12, 2009 2:14 PM -
ABAP class or function for retrieving BEx query properties at runtime
Hello Experts,
I'm working on BADI RSR_OLAP_BADI and for a special calculation I need to know which characteristics are in the drill-down of the BEX query, sol later on I can aggregate some key figures using only these characteristics.
Problem is that structure C_s_DATA in method COMPUTE contains all fields of the query (filters, free chars, chars in the rows, etc) and I need to now which characteristics are currently being showing in the Bex analyzer.
So is there an ABAP class or function module I can use to find out this kind of information at run time?
Any suggestion?
Thank youTank you for the feedback,
I tried to use the class you provided, but I'm stuck now in how to get from within my class that implements RSR_OLAP_BADI interface, a handle, reference, o whatever represent my runtime query (not the query at design time) . As the class you provide must be instantiated before I can use
In pseudo code could be something like this
DATA my_query type query_ref.
my_query = get_rt_query().
my_query->get_state()
regards -
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.
Maybe you are looking for
-
Printing problematic after upgrading to Yosemite
I have an iMac (21.5 inch late 2010) and after upgrading to Yosemite with latest version 10.10.1 my HP Laserjet 1320 does not want to print certain files like .pdf & or screen shots. I am able to print an e-mail from Mac mail but nothing else. I have
-
Broadband went down, now it's like using dial-up
Hi everyone, I'm new here because my connection is so slow I can't even get through all the online help without problems. Yesterday 8-09-10 my broadband went down in the afternoon for a couple of hours. When it came back on it was really slow. I was
-
Hi, I am facing the problem while fetching the data from COEP table.The scenario is as follows: 1) For the projects entered on selection screen,fetch BEDID from AFKO. (PRONR = Project def.) 2) Based on value of BEDID,fetch OBJNR from AFVC. 3) Base
-
Shall v maintain price control for material type with plant specific ?
Hai Guru, In OMS2, we change HALB price control [valuation] as V or S. whether shall v maintain this for plant specific.? Kindly guide With Regards Swetha
-
Best Sony EX-3 XDCAM EX workflow (SxS into FCPro)
Hey I am doing a documentary project shot with the Sony EX-3 tapeless camera and I have the correct plug-ins and have successfully Logged and Transferred some test files into Final Cut Pro 6 My question is that I have over 7 different production days