Query probelm
Query is input-ready; Currency[ZCURRENCY] will be added as a free characteristic
Message no. BRAIN224
Diagnosis
The query contains input-ready cells without disaggregation. Data can only therefore be entered at the most detailed level. For cell ',' to be input-ready in the query, all characteristics that cannot be derived from other characteristics must either be set to a unique characteristic value (on the structure element corresponding to ',' or in the fixed or dynamic filter) or they must be drilled down in the list.
Note that the restrictions made using variables are only taken into account if the variable is a mandatory parameter variable.
System Response
Characteristic Currency[ZCURRENCY] is added to the query as a free characteristic.
hello,
are you preparing a aplanning query?
By the error message, it looks like in the query there are KF which have planning possible set for them.
If you want to do planning, then you must ensure that u maintain the full granularity of the aggregation level in the query deisgn..meaning place all the chars in rows and Kfs in columns.
Then only it will allow you to plan
if you do not want to do planning, please uncheck the setting in the KFs
Reagrds,
Dhanya
Similar Messages
-
Hi, I am trying to do a pivot report, first I did a simple pivot hard-coding the columns that I was about to use but, it is not convenient so I was asked to do a dynamic report where the columns were selected by a sub-query so I followed the solution from this post
Pivot query using XML option in APEX , but I get this error ORA-00932: inconsistent datatypes: expected - got CLOB, now I know that by default that query is set to return CLOB, but the thing is that when I specify the return value to varchar2 my browser freezes and I cannot go any further than that I need to reboot my browser, I'm using Oracle 11g and APEX 3.2.1 here is my query
SELECT
xmlserialize(CONTENT DEPARTMENT_XML as varchar2(4000)) XML
FROM
SELECT
DEPARTMENT,
S_GROUP AS "S GROUP",
S_GROUP
FROM MYTABLE where PER = 'BNA' and department not like 'SI%'
PIVOT XML(
COUNT(S_GROUP)
FOR DEPARTMENT
IN (select distinct department from MYTABLE ) )
ORDER BY 1
Thank you.Because execuitng the query without the
ROW_NUMBER gives the results in milliseconds
but the row_number takes it 7+ min.I think you mean that executing the query without ROW_NUMBER gives the first rows in milliseconds. However, if you wait until the last row, you may find that it takes several minutes as well. If this is not the case, please post some more details.
And, as BluShadow already said, an additional ordering takes some time, so it will be a little slower, but probably not this much. If you really want to know where time is being spent, then I suggest to take a look at [url http://forums.oracle.com/forums/thread.jspa?threadID=501834&tstart=0]this thread, and start measuring.
Regards,
Rob. -
Infoset Query probelm for Custom Subtypes
Hi Experts.....
I am new to Infoset Queries...
The problem is an Infoset query is generated for PA infotypes. It is generating output for all the infotypes except for Communication infotype which contains custom Subtypes. Could you plz help me how to get the data from these custom subtypes.(For these subtypes a select query is written).
Thanking you in advance.
Regards,
Sreehi
Thanks for the reply.......
We had already created custom fields in the query..... The problem is for some fields it is getting the data. but the select query for all the fields is same(i.e., the where condition is based on pernr & usrty fileds in IT 0105).
I can't understand why it is taking for some fields & why not for some....
Could you plz help me.
Regards,
Sree. -
Hi Specialists,
I have a requirement in my report where I need to fetch database entries for 2 different billing types using different logic but querying the same database table i.e vbrk. Has anyone handled this before.
Specification:
1)
For Billing Type 'ZFTV' I need to get all VBELN entries from VBRK and populate into my internal table where billing date = selection screen i/p.
Based on VBELN I need to fetch entries from VBRP where VBELN = VBRK-VBELN.
2)
For Billing Type 'ZFCG' I need to get all VBELN entries from VBRK and populate into my internal table where billing date = selection screen i/p.
based on VBELN I need to fetch entries from VBRP where VBELN = VBRK-XBLNR.
Assumptions : The same VBELN will not exist for both billing types & Billing Type is a select-options.
Problem encountered so far: I am trying to use following code:
SELECT vbeln
posnr
netwr
mwsbp
j_1aregio
vgbel
FROM vbrp
INTO TABLE gt_item
FOR ALL ENTRIES IN gt_header2
WHERE vbeln EQ gt_header2-vbeln.
ELSEIF s_fkart-low EQ 'ZFCG' .
SELECT vbeln
posnr
netwr
mwsbp
j_1aregio
vgbel
FROM vbrp
APPENDING TABLE gt_item
FOR ALL ENTRIES IN gt_header2
WHERE vbeln EQ gt_header2-xblnr.
But it gives me error saying the While using FOR ALL Entries the fields VBELN & XBLNR must have same type & Length.
Any help would be highly appreciated.
Thanks,
Abhinav.Hi,
Beyond the "FOR ALL ENTRIES" issue, your logic looks strange to me...
Based on the assuption:
Assumptions : The same VBELN will not exist for both billing types & Billing Type is a select-options.
I don't think it's a good idea to use the same table gt_header2 in both select...
A better way to get what you want would be to use two different header tables (one for billing type ZFTV and another one for type ZFCG)... Also, are those the only billing types to consider? what should be the process for other values?
Another thing, avoid using FOR ALL ENTRIES, use a JOIN statement instead...
Kr,
m.
Edited by: Manu D'Haeyer on Sep 30, 2011 12:36 PM -
Probelm regarding function ( can not perform dml openration inside a query
hi all,
i have created on function which is used for delete rows and insert new rows ( records) but when i run i got
ora-14551 -can not perform a DML operation inside a query
0ra-06512 - fn_brok_upfdate_dtltbl , line no 21
this error
following are my code please help me
CREATE OR REPLACE FUNCTION Fn_Brok_Update_Dtltbl
(fnBROK_TYPE VARCHAR2,fnSLAB_ID VARCHAR2, fnINV_TYPE_CODE VARCHAR2)
RETURN NUMBER
AS
fnCOUNT PLS_INTEGER;
fnTBLNAME VARCHAR2(40);
fnTMPINV_TYPE_CODE VARCHAR2(1000);
fnTMPINVCODE VARCHAR2(50);
fnMYQUERY VARCHAR2(4000);
BEGIN
IF UPPER(fnBROK_TYPE) = 'UPFRONT' THEN
fnTBLNAME :='UPFRONT_RECD_DTL';
END IF ;
IF fnSLAB_ID IS NOT NULL AND fnINV_TYPE_CODE IS NOT NULL THEN
fnTMPINV_TYPE_CODE := fnINV_TYPE_CODE ;
fnMYQUERY := 'SELECT COUNT(*) FROM '||fnTBLNAME||' WHERE SLAB_ID = '''||fnSLAB_ID||'''' ;
EXECUTE IMMEDIATE fnMYQUERY INTO fnCOUNT ;
IF fnCOUNT > 0 THEN
DELETE FROM UPFRONT_RECD_DTL WHERE slab_id = fnslab_id ;
END IF ;
WHILE fnTMPINV_TYPE_CODE IS NOT NULL
LOOP
SELECT CASE WHEN INSTR(fnTMPINV_TYPE_CODE,',')= 0 THEN fnTMPINV_TYPE_CODE
ELSE Strsplit(fnTMPINV_TYPE_CODE,1,INSTR(fnTMPINV_TYPE_CODE,',') - 1 ) END INTO fnTMPINVCODE FROM DUAL ;
fnMYQUERY := 'INSERT INTO '||fnTBLNAME||'(SLAB_ID, INV_TYPE_CODE)
VALUES ('''||fnSLAB_ID||''','||fnTMPINVCODE||') ' ;
EXECUTE IMMEDIATE fnMYQUERY ;
SELECT CASE WHEN INSTR(fnTMPINV_TYPE_CODE,',')= 0 THEN NULL
ELSE Strsplit(fnTMPINV_TYPE_CODE,INSTR(fnTMPINV_TYPE_CODE,',')+ 1 , LENGTH(fnTMPINV_TYPE_CODE)) END
INTO fnTMPINV_TYPE_CODE FROM DUAL ;
END LOOP ;
fnCOUNT := 1 ;
RETURN fnCOUNT ;
END IF ;
END ;
[\pre]How did you call this function ? from SQL Statement ? Then No way .. . .
ORA-14551: cannot perform a DML operation inside a query
Cause: DML operation like insert, update, delete or select-for-update cannot be performed inside a query or under a PDML slave.
Action: Ensure that the offending DML operation is not performed or use an autonomous transaction to perform the DML operation within the query or PDML slave -
Probelm with query that contains parameter and reportviewer
Hi,
I writing a windows application with oracle database.
I have a query like that
select * from table1 where table1.Field1 In (:param)
I create my parameter like that
Dim param as string = " 'value1', value2, 'value3' "
When i run the query it returns nothing. I think the problem is because of the double quote (") arround the param.
Does someone have an idea?
ThanksThis error is typical. Parameter is approapriate anyplace where you could use Oracle literal, e.g. instead of
select * from table1 where table1.Field1 In (1, 2, 3) you might use
select * from table1 where table1.Field1 In (:a1, :a2, :a3),
but SQL like
select * from table1 where table1.Field1 In ('1, 2, 3')
is most likely sensless
Generally speaking you should not use parameterized IN expression when parameters are elements of the list that is defined interactively. Better approach is to dynamically generate IN list and concatenate it to SQL string:
stSQL = 'select * from table1 where table1.Field1 In (' || v1 || ',' || 'v2' || ')'
and that's it.
Usually number of variants is limited and you do not make your Oracle server to over-parse. -
Error while Opening any Query from Query Monitor and Query Designer.
Hill All,
I was trying activate activate the Web templates for SRM, all the templates are activated and i am landed in a new problem. when ever i am trying to open a qery thru query Monitor(RSRT), i am popped with the Short dump.
Short Dump Description:
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_RS_PERS_PHK================CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
The following syntax error occurred in program "GP48WGGNR675NB9JBTAGV72K4CT "
in include "GP48WGGNR675NB9JBTAGV72K4CT " in
line 29:
"The type "/BI0/APERS_BOD00" is unknown."
The include has been created and last changed by:
Created by: "CBI_BALAJID "
Last changed by: "CBI_BALAJID "
and when i try to debug the program "GP48WGGNR675NB9JBTAGV72K4CT"
the error is shown at the code level:
form pers_read
tables e_t_data structure RSPER_S_RETSTRU_BOD
using i_maxrows type i
i_t_sel type rsper_t_select
changing e_subrc type sy-subrc.
data: l_t_data type /BI0/APERS_BOD00 occurs 0.
data: l_s_ft like /BI0/APERS_BOD00.
data: l_s_sel type rsper_s_select.
field-symbols: <l_s_data> type /BI0/APERS_BOD00.
i am unable to find the info object APERS_BOD00. where as the error is pointing to sid table of the object.
that's urgent,Some one Plese resolve the issue.Points will be rewarded for the usefull answers.
Thanks in advance
Balaji Donepudi.
098266-89888Hi,
Check for the consistency of the info object in RSRV.
Check the info object status in cube like any data is available or not for that info object.
Also check any parralel load is taking place in that particular cube.
Please let me know if u face probelm
Thanks
Kind Regards,
Shanbagavalli.S -
Some help required with logic for a dynamic sql query
i have below code but not sure how to resolve this problem - what i need is to be able to dynamically
the problem:
i have a rabbge of paratmeters coming in from a form and need to be able to create a dynamic query string to go into a prepared statement object.
the problem i have is there are 2 fields year range and year.
if year range is none i need to create the query string as such :
where the value of year can be serached on exactly
str.append("VOLUME_YEAR = ? ");the probelm is if the year range is 5 or year range is 10 i dont know how to maipulate the query string to be able to set the string such that i can then place the year value in the place holder in preparedStatement.setInt(1, year)
how can i create the intial query string ie.- what are the possible things that i can do. - i'm thinking of things like putting some type of between or such type query statement - but not at all sure how the syntax would go - ie. how would i use the year value and how would i create this dynamic part of the query string so that the JDBC regonises it?
thanks for any help.
public String setVolumeYearQuerySt(String year, String yearRange, StringBuffer str){
String volumeYearQueryString = null;
Sring doAction= null;
if (yearRange.equals("None")){str.append("VOLUME_YEAR = ? ");}
else if(yearRange.equals("5 Years")){doAction = "Nothing";}
else if (yearRange.equals("10 Years")){doAction = "Nothing";}
return volumeYearQueryString;
}Saish - thanks a lot for the code example.
Although, i think its far too advanced for me to understand and try to manipulate it and fit my problem. I'm pretty new to programming as you can probably see from my simple if else type statements. But i'm going to give it a try and see how it goes.
could you please be kind enough to demonstrate how i could use the above syntax to do the following. --
i have a year being entered in form . in the database there is a column year volume which contains year in single year value format and also in a year range value format - thus as in below - how could i do this -
eg.
user can enter a value in the year field a single value or a range value - then he can select +/-5 or 10 yrs range on that value - the DB holds the values as single values and ranges as below -
one suggested apporach is as follows if a single user is alloweed to enter only a single value in the filed and select a query range +/- 5 etc..
volume year of �1926-1928� and the user enters �1927�, the query has to find all records where
look for records that are �less than or equal to� 1927. It then has to check to see if it contains a range. For those that it finds containing a range, it has to work out what the �upper� year is and check to see if that is �greater than or equal� to 1927. If it is, then that is a possible matchanother approach that is suggested is to have a drop down with all years from databse and user is only llowed to select value from drop down and following logic is suggested :
Because volumes can be received as ranges (e.g. 1964-1966), some extra coding is required where the user asks for a Year Range (such as + or � 5).
Using the Year selected from the dropdown list, split it into 2 values, a low year and a high year. For example, if �1965-1968� is selected from the year dropdown, split it into �1965� and �1968� for the low year and high year respectively. If �1964� is selected from the year dropdown, split it into �1964� and �1964�. Now take the Year Range that the user has entered into account. For example, if the user has entered 5, subtract 5 from the low year and add 5 to the high year. Using these values, include the following search criteria in the query to the database:-
(<low year> BETWEEN
left (VOLUME_YEAR, charindex ('-',VOLUME_YEAR + '-') - 1)
AND right (VOLUME_YEAR, charindex ('-',VOLUME_YEAR + '-') - 1))
OR (<high year> BETWEEN
left (VOLUME_YEAR, charindex ('-',VOLUME_YEAR + '-') - 1)
AND right (VOLUME_YEAR, charindex ('-',VOLUME_YEAR + '-') - 1))regards - i think if i could solve the first approach that would be something good as its most user freindly
thanks -
Select query based on userinput
Hi Folks...
I posted this in another forum, but no reply,so I am posting it here too. I am trying to make a select query based on a user input. Earlier I was having probelms making a select query and printing out the result in the stack trace,with the advice given, I managed to solve that. I am now modifying that code to make a query based on user input, however it's not working, following is the code:
String userId = request.getRemoteUser(); String sql = "SELECT hoursused FROM sysuser WHERE iduser = ?"; try { Connection connection = dataSource.getConnection(); PreparedStatement preparedStatement = connection.prepareStatement(sql); preparedStatement.setString(1, userId); ResultSet srs = preparedStatement.executeQuery(sql); while(srs.next()) { String hoursused = srs.getString("hoursused"); System.out.println("The hours used are " + hoursused); } } catch (SQLException e) { e.printStackTrace(); } }
stack trace seems to suggest I may have a probelm with this statement:
"SELECT hoursused FROM sysuser WHERE iduser = ?";
I am not sure how to rectify this, I hope someone can advise, thanks.Hi jschell..
Thanks for responding, I appreciate it. The problem has been solved. No 'sysuser' is not a reserved word in Mysql. Based on the advice given in another forum and also from this site, I managed to solve the problem. I only made one change. This:
ResultSet srs = preparedStatement.executeQuery(sql); was changed to this:
ResultSet srs = preparedStatement.executeQuery(); Thanks. -
Hi all,
I have a sap query. When query is called using T.code its working fine and if i execute the query through SQ01 then its giving me dump.
Message is Error when attempting to IMPORT object "PARVW".
It says the object in the dataset had a different type from the target object in the program
So, I thought the problem may be with the Query Variant. I tried to change the query variant through Sq01->goto->maintain variant
provided the Variant name(only 1 variant is available). selected radio button VALUES and click on Display or Change button here also its giving the same dump.
Then I tried to remove the PARVW from selection field in SQ01 in change mode ->Basic list, on the left hand side displays the field and 2 check boxes are there one for LIst field and other of Selection. But the check box for Selection is input disabled.
Can anyone please let me know how can i avoid the dump.
I gave a search in SCN and google, but couldn't find any appropriate solution.Query area is Global Area (Cross Client).
I'm able to solve the dump probelm. Now i want to design a selection screen for my query. suppose the selection is as follows in one block
program selections.
field1
field2
field3
I want it to be displayed in 2 different blocks block 1 and block2
General Data selection
field1
Program Specific
field2
field3
how can we do this one?
thanks in advance
Edited by: Mr A on Mar 5, 2010 8:37 PM
Edited by: Mr A on Mar 5, 2010 8:40 PM -
BEx Query Designer - Url openining problem
Dear All,
While running a BI query through BEx Query Designer, it is generating portal URL as:
http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZTEST_Q0001&VARIABLE_SCREEN=X&DUMMY=20
have created source system and all RFCs required as running properly.
Any ideas further please ??
my usage type is as below
Active Usage Types
Product Name UT Code Short Name Description Activation Date Configured
SAP NetWeaver 2004s BI BI Java BI Java Mon Aug 11 00:00:00 IST 2008 YES
SAP NetWeaver 2004s AS AS Java Application Server Java Mon Aug 11 00:00:00 IST 2008 YES
SAP NetWeaver 2004s EPC EP Core Enterprise Portal Core Components Mon Aug 11 00:00:00 IST 2008 YES
SAP NetWeaver 2004s EP EP Enterprise Portal Mon Aug 11 00:00:00 IST 2008 NO
SAP NetWeaver 2004s AAS AS ABAP Application Server ABAP Mon Aug 11 00:00:00 IST 2008 YES
Please correct me where to configure default host name
Regards,
Ravi ghangurdeDear all.
Below are the details probelm .
i want to open the portal nwa using url "http://10.2.202.154:50000/nwa" but it's ask me username and password screen , when entering J2EE_ADMIN user and correct password next screen is not appears
and same user name and password screen shows again.
when putting worng password it's show authontication fail message.
Below are url details after providig the correct password.
http://10.2.202.154:50000/logon/logonServlet?redirectURL=%2Fwebdynpro%
2Fdispatcher%2Fsap.com%2Ftc%7Elm%7Ewebadmin%7Emainframe%7Ewd%
2FWebAdminApp
in morning it was showing the nwa screen when loginig with path
http://10.2.202.154:50000/nwa and j2ee_admin and password
but we are only change sso tiket parameters in default profile and create tiket in visual administrator.
after than i am not able to open the portal NWA
i want to run post installation wizard for BI post installation please suggest to open the NWA.
is any other way for BI post installation wizard
Regards,
Ravi Ghangurde -
Hi ,
I crated a query based on a Infoset.I am trying to run that in RSRT and it gives me this erroe.Can anyone tell me how to resolve this probelm??
Error : Query could not be opne! GENUNID is INVALID , Message no.BRAIN665Hello,
open the query IN QUERY DESIGNER n check whether its correct.
Save it and provide right technical name and execute it.
Also amke sure you are running the query in the right system.
Generally this error occurs when we do not provide the right name of the query.
You can use the F4 help at the RSRT to reach the right query.
Regards,
shashank
Edited by: Shashank Dighe on Aug 11, 2009 11:45 PM -
Information message in infoset query.
hi all,
i have added a field into the infoset query adn im using s_pho_48000513 . my probelm is when ever im opennig the query im getting information message as some selection fields are not available.does any have idea why im getting this message ..where i went wrong in ading the field to infoset.what check should i do.please suggest.and another thing when im doing switch off object selection from extras im not getting this information message but this field is comming in selection fields from infoset with default selected with enable mode and all other fields selected with disable mode.
any inputs is apreciated..
regards,
suhaRemove those fields/Infotypes from the infoset with the help of SQ02 from that infogroup
Thanks
Jaydeep jadhav -
Dear All ,
This is regarding Query Creation.
I want to create Query by Joinging Two tables.
I have created User Group, Created Infoset,
Now am creating Query by SQ01.
Going Step by step correctly.
I have Tick mark on Field group and selected .
Then By next screen i have marked for option for Parameter.
Then Clicked on "BasicList" Button.
Now after clicking Basic list button i am not getting screen of Basic list Line Structure
i.e Scrren with detais like with heading of type Field , Line ,Sequence, Sort Total etc. i am not getting.
Instead, After Pressing BasicList button i am getting screen like Query ...... layout Design.
So where /How cani get Scrren of Basic List Line struecture.
In which menu / option i have to check.
For Information we have SAP ECC 6. 0 with Application support Package no. 14.
PL help me for my probelm
Regards
SwatiHello,
I got solution of my probelm.
Removed Tick Marked from Menu option Settings --> Setting -
> Here removed tick mark from Graphical Query Painter.
Thanks to all.
Regards
Swati -
Transport standard variant of SAP Query
Hey,
I made a SAP Query with SQO1. Within the attributes of the query, I defined a standard variant.
How can I transport this variant.
When I go to maintain variant, I can click to program RSTRANSP.
When I try to execute, I get the following message "Function not possible for local/private objects". In the help it says that I have to create a transport for my program.
But my query is in a transport. I already transported the query to QAS and it works fine.
Do I have to put the program also in a transport? The program is SAP generated code with the following name "AQZZZISU========CP_METERS=====". I haven't transported the program but it is available in QAS. So I think I don't need to transport it.
Does anyone how I can transport my variant?
Thanks
StevenI have attached the sap Query based on your idea. But I geting small probelm. Please help me on this.
The varient is created as Protected by default. I can't able to create the varient unprotected. Can you tell me how to create unprotected varient for SAP Query? becuase other user can't able to change the varient it is giving the error message with my user name as " No authorization to change the varient <varient name> Protected by <my user name>".
Please could you help me how to fix it. this issue?
Maybe you are looking for
-
How do I create a new folder/library type for language learning mp3 files?
Is It possible? Because I don't want to mix those language learning files with songs in my music library...
-
Maintenance of serial number profile for a material
Hi, We need to maintain serial number profile for a material. Presently there exists stock for this material. Could you please let us know the prerequisites for maintaining the serial number profile for a material where stock exists. System should no
-
I have an application "stuck" in edit mode. How do I get it out?
I have a form stuck in edit mode. I am the one who edited it last and now it says it is in edit. how do I release it so I can go back in?
-
Small window keeps comming up saying adobe flash 11.6 stoped working and was closed.
Why does small window keep comming up saying adobe flash 11.6 update service r602 stopped working and was closed. I close it and it comes back again later.
-
Numbers 09: Beginner with Advanced expectations
Hello, I'm trying to develop several spreadsheets in Numbers, so I have many questions. The first is: can anybody recommend a book that has an in-depth explanation of using formulas in Numbers? I'll take anything in English or German; but prefer Germ