MDX Concat Syntax Error
We have an SAP BW7 BEX Query with 2 characteristics which we want to concatenate together in a new Universe Dimension.
From searching around the syntax should be :
<EXPRESSION>@Select(Financial Item\L03 Financial Item)||@Select(Financial Item\L00 Financial Item GFRM Item Long Text (Key))</EXPRESSION>
Parses OK
Also tried :
<EXPRESSION>[ZS_ITEM 02H2].[LEVEL03].[[2ZS_SBMITM]].[Value]||[ZS_ITEM 02H2].[LEVEL03]</EXPRESSION>
Again Parses OK
When we add this dimension to a Webi report the following MDX error is presented.
Query 1 - Demo Universe - BCS Subset - SubConsolidated BS Report 2
A database error occured.
The database error text is:
The MDX query WITH MEMBER [Measures].[9DB8D426-17C4-4BDB-95,22,9C,9D,3,CF,25,53] AS ' [ZS_ITEM 02H2].[LEVEL03][ZS_ITEM 02H2].[LEVEL03] ' SELECT { [Measures].[9DB8D426-17C4-4BDB-95,22,9C,9D,3,CF,25,53] } ON COLUMNS , NON EMPTY {[ZCONSUNIT].DEFAULTMEMBER} ON ROWS FROM [ZMVBCS_1/BO_FMA_BCS_001_GR_SUBC_BS] SAP VARIABLES [!V000005] INCLUDING [0CS_PLEVEL].[00] : [0CS_PLEVEL].[30] [!V000001] INCLUDING [ZCONSUNIT].[4068] [!V000006] INCLUDING [ZLCGC].[LC] [!V000004] INCLUDING [0FISCPER3].[004] : [0FISCPER3].[004] [!V000003] INCLUDING [0FISCYEAR].[K42008] failed to execute with the error Unknown error. (WIS 10901)
Anyone have any ideas?
Thanks,
Steve
Despite the successful parse, I do not believe @Select works with anything beyond Key Figures. And even with Key Figures you can only do very simple statements without MDX errors occurring on refresh...again despite the OK parsing. The best bet is to do everything you can at the BEx Query level and don't expect too much on Universe customization.
The forums and BOB message boards are loaded with WIS 10901 errors on refresh of reports using customized objects in the Universe. Unfortunately, best practice guides and other documentation provide only limited guidance whether it be account authorizations or comlex MDX syntax or something else unknown. A more comprehensive guide on MDX syntax modifications and complex scenarios from real world customer scenarios would be ideal. Being that there is only so much you can do at the Universe level.
So, for time being we really guide customers if an object is created at the UNV level off of BEx and it does not meet reporting requirements...make the change at the BEx level. This is not always ideal, but you will have less headaches.
Similar Messages
-
MDX query : Syntax error at token 'NONEMPTYMEMBER'
Syntax error when executing this very simplified MDX query :
WITH
MEMBER [ANNEE].[YEAR1] AS
NONEMPTYMEMBER FY10
[FY10]
MEMBER [ANNEE].[YEAR2] AS
NONEMPTYMEMBER [FY10]
[FY10]
SELECT
{[YEAR1],[YEAR2]} ON COLUMNS
FROM [MICOPIGE.COM_MBU]
Syntax error in input MDX query on line 9 at token 'NONEMPTYMEMBER'
Note that line 9 "NONEMPTYMEMBER FY10" is a copy of line 4
No error if I delete line 4
Any help to understand and fix this error would be greatly appreciated.Precision : My goal is to reduce the 30mn duration of a complex MDX query with many calculated members, using the NONEMPTYMEMBER token.
-
I have a simple MDX query is shown in below:
SELECT [Accounts].[pv] ON ROWS,
[Reporting].Members ON COLUMNS
FROM RoggeBSO.Db
(please note that Accounts, pv and Reporting words are in square brackets)
When I execute this query on the MDX Script Editor (in EAS), I get the following syntax error:
Statement Executed with warnings.
Syntax error in input MDX Query on line 1 at token 'ON'
Unexpected Essbase error 1260052
I tried this on both ASO & BSO cubes but didn't work. Could anyone help please?
Regards
Chandra
Edited by: user2695091 on 22-Apr-2009 03:27SELECT {[Accounts].[pv]} ON ROWS,
{[Reporting].Members} ON COLUMNS
FROM RoggeBSO.Db -
"Syntax error in the MDX statement " in Process chain failure??Urgent pls
Hi Experts,
could any one suggest me the procedure to rectify the below problems in process chain?
1."Syntax error in the MDX statement "
2."Error when getting data (Error when getting data (AXI))"
Rgds,
BHIn which case it'll be that Access has a different date format to MySQL, and you're trying to push the string "'25-Apr-12 10:55 PM" into Access, which it's not understanding. To get around this, you need to treat your variable as a true date/time object, rather than a formatted string.
CFQueryParams should be used on absolutely every database platform, they'll stop your website being vulnerable to SQL Injection attacks for one, which at the moment you're wide open to. Replace your query with something like this:
<cfquery name="input_comments" datasource="#DSN#" username="#DSNUSER#" password="#DSNPASS#">
INSERT INTO comments(
commenter,
comment,
datetime,
post_id
VALUES(
<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.commenter#" />,
<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.comment#" />,
now(),
<cfqueryparam cfsqltype="cf_sql_numeric" value="#form.post_id#" /> )
</cfquery>
The QueryParams will handle the data types for you, and should pass values around more safely and with fewer issues. Assuming you just want to store the current date and time you don't even need to get ColdFusion involved, as databases have their own functions for this. I believe Access' version is simply NOW(), so I've put that in your query.
Give the above a go. -
Unexpected syntax error executing MDX sentence with a "LIKE" predicate
Hello,
I am executing the next MDX sentence correctly on a SAPBW server
SELECT NON EMPTY
FILTER (
[0VENDOR].[LEVEL01].MEMBERS ,
[0VENDOR].CURRENTMEMBER.PROPERTIES("MEMBER_CAPTION") LIKE "V01*"
DIMENSION PROPERTIES [0VENDOR].[20ADDR_NUMBR], [0VENDOR].[20CITY_2] ON ROWS,
{[Measures].[0NUMDAY], [Measures].[0RSPL_FCPER]} ON COLUMNS
FROM [$MY_CUBE]
The MDX is working OK and returning all members that their caption start by "V01".
The problem appears when I execute the query in another SAP server. This new server is returning the next syntax error.
Syntax error: Syntax Error : ....CURRENTMEMBER.PROPERTIES("MEMBE, row 113, item: 113
I was searching about SAP and MDX, LIKE operator, the syntax error... but I did not find any interesting.
Why this query could fail in a certain SAP server but work OK in another?
I tried to change the FILTER condition with a "=" operator and it works OK, but I need the "LIKE" one.
Thanks in advanced.Thanks for your response.
The MDX query works OK at SAP 7.0SP1, but it does not work at SAP 7.3.1SPS5.
Yes, all attributes are the same and exists, and query was tested also with MDXTEST transaction. At this transaction, the error was the same "Syntax error: Syntax Error : ....CURRENTMEMBER.PROPERTIES("MEMBE, row 11" ...
Note that is a parsing error and it happens parsing the left part of the "LIKE" predicate, so I do not think that attributes were important on this, no? -
Instr function syntax error in MDX quary
Hi all
Wen Iam excuting this MDX quary its giving error;syntax error line at 3 ','
SELECT
Filter( [PERIOD].Generations(5).Members,
InStr( [PERIOD].currentmember.[2010], "Cola" ) >0 )
ON COLUMNS
FROM REP.Rep;
but wen iam excuting this below example
SELECT
Filter( [PERIOD].Generations(4).Members,
InStr( "cocaCola", "Cola" ) >0 )
ON COLUMNS
FROM REP.Rep;
its fine
Plz can any help would be appriciated
Edited by: user8815661 on 13 avr. 2010 04:17Hi gary,
plz help on this , i already posted in forum but iam confident on u ,
Ihave one scenario like calculate the ytd values using cross join like
IIF(is ([Flow].CurrentMember,[YTD]),
(case
when
is ([PERIOD].CurrentMember,[2008.01])
Then (Sum (crossjoin({[DI-3]},CrossJoin({[FLOW].[MtD]},{[PERIOD].[2008.01],[PERIOD].[2008.01] })))/2)
when
is ([PERIOD].CurrentMember,[2008.02])
Then (Sum (crossjoin({[DI-3]},crossjoin({[FLOW].[MtD]},{[PERIOD].[2008.01],[PERIOD].[2008.02]}))))
when
is ([PERIOD].CurrentMember,[2008.03])
Then (Sum (crossjoin({[DI-3]},CrossJoin({[FLOW].[MtD]},{[PERIOD].[2008.01],[PERIOD].[2008.02],[PERIOD].[2008.03]))))
etc,othercase)
but I am trying other oneto decrese the size of formula
IIF(is ([Flow].CurrentMember,[YTD]),
(Sum (crossjoin({[DI-3]},CrossJoin({[FLOW].[MtD]},
{filter([PERIOD].Generations(5).members,StrToNum(Right([PERIOD].CurrentMember.MEMBER_NAME,2)) <= StrToNum(Right([PERIOD].CurrentMember.MEMBER_NAME,2)) AND StrToNum(Left([PERIOD].CurrentMember.MEMBER_NAME,4))=StrToNum(left([PERIOD].CurrentMember.MEMBER_NAME,4)) ) }))))
, othercase )
but its result is same value for all the YTDs for every month, something is going wrong some where
plz any help would be appriociated -
I am getting syntax error [nQSError: 27002] Near <)>: Syntax error [nQSError: 26012] . Please help me to identify for below code
CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = cast(concat(cast(day(current_date) as char) ||’-’|| month(current_date) ||’-’|| cast(year(Core."Dim - Date"."Year") as char)) as date)) Else 0 End
Many thanks.WHEN Core."Dim - Date"."Year" 'year(current_date)' THEN You are missed condtion
try to use as WHEN Core."Dim - Date"."Year" ='year(current_date)'
or
CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year"= 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = cast(concat(cast(day(current_date) as char) ||’-’|| month(current_date) ||’-’|| cast(year(Core."Dim - Date"."Year") as char)) as date)) Else 0 End
Mark as correct
Edited by: Srini VEERAVALLI on May 3, 2013 6:02 AM
Based on given OP what was said is correct. when you are getting cast issues then you need to share values too.
Thanks
Edited by: Srini VEERAVALLI on May 3, 2013 2:03 PM -
Query getting /crystal/ Program SYNTAX ERROR.
Hi All,
I connected to SAP BEX Query using MDX driver. when i execute query getting /crystal/ Program SYNTAX ERROR.
I imported these crystal transports R21900741,786,695,754,780 .
but got error for R71K900087 .
MY SAP BW system version is SAP BW701 SP10 , Please suggest.
Thanks,
JosephThanks Mohammed. But our application is trying to pass a parameter which contains user data like section numbers....
So when we pass the value 123.1(a) , here what is happening behind the scene of CR viewer
webSource0.AddParameter "promptex-NAMEOFPARAMETER", "123.1%28a%29"
and it throws up the error
"The syntax of the value for prompt 'NAMEOFPARAMETER' is incorrect. Please correct the syntax and try again"
I have no idea why it is throwing up this errror.... -
Cast and Concat functions error
Hi
I am getting below errors while doing cast and concat
The error message is nQSError: 22020] Function Concat does not support non-text types.
and my concat code is
CAST (cast(day(current_date) as char)||'-'||month(current_date)||'-'||cast(year(Core."Dim - Date"."Date") as char) AS DATE )
Error when tried it differently [nQSError: 27002] Near <)>: Syntax error [nQSError: 26012] .
CAST (concat(cast(day(current_date) as char)||'-'||month(current_date)||'-'||cast(year(Core."Dim - Date"."Date") as char)) AS DATE )
Please suggest.Hi,
CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1)
USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend
and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM
CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
Here I have taken this part of the code from above code and started testing from answers
CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM
CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
what I could make out is when I was casting it to date I was getting the error
ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtExecute:
So When I have casted it to char and removed the year function from concatenation it worked out.
With the same idea I have used this part of the code in my main code above but here char was not working out, so I need to use date and there were no compilation
errors as it used to be before.
CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1)
USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend
and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' '
FROM CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
Now when I check results in reports. I get the error ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtExecute
The problem here happening is
Core."Dim - Date"."Date" data type is DATETIME
and the concat string whole date type is DATE.
Its like datetime=date
Since becuase of this mismatch I assume I am getting this error.
So I thought of changing the data type of Core."Dim - Date"."Date" data type in rpd. Even though I checked out to do the changes I am unable to do though I login with
Admin account.
Secondly I thought of changing the concat string whole date type to DATETIME then I get the syntax error.
Any help on this would be much appreciated.
Thanks.
Edited by: 949675 on May 7, 2013 5:33 AM -
The following syntax error occurred during parsing: Invalid token, Line 1,
Hello Experts,
I hope someone could help me. I am trying to create a MDX formula in Account dimension (Cuenta).
When formula created use "Iif" syntax, system give the following error:
- [CUENTA].[H1].[#X000] Parser: The following syntax error occurred during parsing: Invalid token, Line 1, Offset 15, [.
My Account dimension (Cuenta) has 3 parent, and the formula introduces is:
'Iif([Cuenta].[H1].[BLOQ_FASEC]<0.5 and [Cuenta].[H1].[BLOQ_FASEC]>-0.5,0,[Cuenta].[H1].[BLOQ_FASEC])
We try another syntax
'Iif([Cuenta].[BLOQ_FASEC]<0.5 and [Cuenta].[BLOQ_FASEC]>-0.5,0,[Cuenta].[BLOQ_FASEC])
But same error persist.
Could you have any idea?
ThanksCan you check into dimension properties what is the size of FORMULA propertiy?
Make sure is bigger than number of chars from your formula.
Do you have multiple hierarchies for CUENTA?
The formula which you mentioned it has to be into column: FORMULAH1.
Also make sure that your formula doesn't have an end of line at the end. That can cause again problems.
Regards
Sorin Radulescu
Edited by: Sorin Radulescu on Apr 22, 2010 11:03 AM -
Syntax error, unrecognized expression: [@rel=lkj2] anyone
I go to this web site http://www.nashbar.com/bikes/Product10053_10052_169804_-1_201485_10000200478 and click on the picture to zoom . a pop up box appears with this message Syntax error, unrecognized expression: [@rel=lkj2 ... this happens with firefox and safari but no problems with this site and my windows computers. why doesn't apple like this site?
Instead of
name='."'".'"+tmp+"'."'".'"
why not
echo concat(name=" +tmp+"'."'".'"
Else: [https://support.mozilla.org/en-US/kb/where-go-developer-support Where to go for developer support] -
Hi all
i got a problem in the concat syntax
CONCATENATE it_vbak-admino it_vbak-fname it_vbak-lname into val
SEPARATED BY space.
This is working fine
I receive a error for this syntax
CONCATENATE it_vbak<b>-field1</b> it_vbak<b>-field2</b> it_vbak-<b>field3</b> into val
SEPARATED BY space.
field1, field2, field3 are the paramater value.
it_vbak is the table
How to make the it_vbak<b>-field1</b> it_vbak<b>-field2</b> it_vbak-<b>field3</b> be recognize in the table?
code----
SELECT (it_fldtab)
INTO CORRESPONDING FIELDS OF TABLE it_vbak
FROM ZSTUDGARY.
IF SY-SUBRC = 0.
LOOP AT it_vbak.
*Concat the data as 1 field----
CONCATENATE it_vbak-admino it_vbak-fname it_vbak-lname into val
SEPARATED BY space.
*write:/ it_vbak.
*CONCATENATE it_vbak-field1 it_vbak-field2 it_vbak-field3 into val
*SEPARATED BY space.
write:/ test1.
write:/ val.
ENDLOOP.SELECT (it_fldtab)
INTO CORRESPONDING FIELDS OF TABLE it_vbak
FROM ZSTUDGARY.
IF SY-SUBRC = 0.
LOOP AT it_vbak.
*Concat the data as 1 field----
<b>CONCATENATE admino fname name into val.</b>
SEPARATED BY space.
*write:/ it_vbak.
write:/ val.
<b>clear val.</b>
ENDLOOP.
reward if useful
Amit Singla
Message was edited by:
Amit Singla -
Syntax error while writing a select query.
Hi all,
I have a requirement where I have to pick a value if the text for that value is
MYCARu2019S Lovliest Car.
And so I wrote a query that
SELECT RUECK INTO XRUECK FROM AFVC WHERE ltxa1 = ' MYCARu2019S Lovliest Car'.
ENDSELECT.
But it gives me a syntax error saying
u201CLiterals taking up more than one line not permittedu201D.
Can some one tell me what is wrong. I need to select RUECK value from AFVC table if
ltxa1 value is ' MYCARu2019S Lovliest Car'.
Kindly help what is going wrong...
Regards,
Jessica SamHi,
Narendran is right use two single quotes.
also careful wile comparing string. i think as you write ltxa1 value is ' MYCARu2019S Lovliest Car'.
so while comparing you must not use space just before staring use the following
SELECT rueck INTO xrueck FROM afvc WHERE ltxa1 = 'MYCAR''S Lovliest Car'. " Not use Space before M
ENDSELECT.
Hope will help you.
Kind Regards,
Faisal -
Syntax error while running a driver program
Hi experts,
I have developed a smartforms,in which i have declared the following,
ITAB TYPE TABLE OF MARA, in import tab of form interface...
and in se38 i have declared...
data: itab like mara occurs 0.
bujt when i am running this program, i am getting syntax error "ITAB" is neither specified under "TABLES" nor defined as internal tabels..
plz tell me why this probleming is occuring?and how can i solve this....
thnks n regards,
Ashmita.in form interface try to declare in tables tab
or
global data > types tab and declare global table using that type. -
Select-options in SELECT query - syntax error
Hi all,
I get the error below when I try to use the select options in a SELECT query . Please help me.
"The IN operator with "SO_AWART" is followed neither by an internal
table nor by a value list."
The code i have used(Logical database PNP is used):
TABLES: pernr,
catsdb.
INCLUDE ztime_cwtr_top. " global Data
INCLUDE ztime_cwtr_f01.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
SELECT-OPTIONS SO_AWART FOR CATSDB-AWART.
PARAMETERS P_THRES TYPE I.
SELECTION-SCREEN END OF BLOCK B1.
Get data from CATSDB table. Workdates within the date interval are considered.
SELECT pernr workdate awart catsquantity beguz enduz status
FROM catsdb
INTO TABLE it_catsdb
WHERE pernr = pernr-pernr AND
workdate GE pn-begda AND
workdate LE pn-endda AND
status IN ('20', '30') AND
awart IN so_awart .
awart IN ('1100', '1137', '1138', '1139', '1140',
'1147', '1148', '1149', '1157', '2003' ).
when I give the values directly i do not get any syntax error, but when I use select options in the where condition I get the syntax error.
I have tried different options like using only the select-options in the where condition.
Thanks in advance.....
MadhuSolved.
Code with syntax error:
include z...top .
include z...fo1.
select-options: xxxxxxx
Code with no syntax error:
select-options: xxxxxxx
include z...top .
include z...fo1.
Thanks for all your help,
Madhu
Maybe you are looking for
-
EXCISE DUTY REDUCED FROM 14% TO 10 %.What are the areas where settings has to be changed in SD/MM/FICO.Kindly advise me. Regards A.Prasad
-
How to include a .class file in a jsp page
hi everyone, i know the syntax as: <%@ include file = "filename.class" %> then at run time the server could not find the class file if i use, <%@ page import = "FileName.class" %> then also the same problem persists & if i use <jsp:include page = "Re
-
SAP Query-for Reporting how to create and use it
Hi SAP Gurus, i need your help. in my project, client is asking to create queries to generate reports, i am not familiar with queries, so would appreciate it if any one can guide me and tell me the procedure for writing and creating queries soon. als
-
HT4352 how can i change the apps on Apple TV??
Does anyone knoww how to change, deletes or replace Apps on APPLE TV?
-
Distorted sound in videos/music through speaker?
After about 5 minutes of watching an iTunes TV Show or listening to the iPod through the speaker, the sound becomes garbled. If I exit to Home and go back in, it fixes itself, for another few minutes, then it happens again.