How to make a precalculated query
Hi guys!,
my problem is this: i have a query, but it last too much to execute, i heard about do it precalculated throught a job after the load of the infocube, i dont know how to make a query precalculated, 1- please can you tell me how to do it step by step? , 2- the query has one variable of input (You have to write Month/year ), how can i do to the precalculated query take this variable automatic of the actual month/year, thanks
Hi Jorge,
This link has step by step Procedure....
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a101b894-0b01-0010-6c90-e70766b33256
Hope it answers your query,
Thanks
Similar Messages
-
How to make & edit multiple query report
hi,
how to make multiple query report & i have an existing multiple query report when i edit it all the structure gets disturbed whenever i want to add or delete any column from an query.
how to do this ?
txsPerhaps you have "Flex Mode" selected in the Layout Editor? It's the button next to the padlock button.
Message was edited by:
Dave Hemming
Also PS: Vaguest. Question. Ever. -
How to Make DFF in Query Mode only ...
Hi Gurus,
I have some Doubts in DFF, Say I have Two Segments
Segment A: Driving Liciense
Segment B: Passport Information
My Requirment is how to make Segment B as Query mode only ..
Any one pls help me on this ...
with regards
User600722Hi
Can't remember if there's an option in the flex definition form, as enable check box will cause the segment to not show if unchecked. If that's not the solutions, there's the flex definition call that may enable You to modify the flex definition on form launch, but You'll have to look on the flexfield's user guide as I'm not sure if read only can be applied to an individual segment or it's for all of them. -
How to make reifications and query to obtain them
Hello;
If the option expressed in the previous thread is unavailable the other option is make reifications over the triple.
There is no documentation about how to make reifications and how is expressed in a SDO_RDF_MATCH query
Can you help me ?
Regards
IsidroExample: if you want to express the fact that :John :fatherOf :Matt is recorded in the document :birthCertificate, it could be done using reification as follows:
INSERT INTO family_rdf_data values(100,
SDO_RDF_TRIPLE_S('family',
'http://www.example.org/family/stmt1',
'http://www.w3.org/1999/02/22-rdf-syntax-ns#type',
'http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement'));
INSERT INTO family_rdf_data values(101,
SDO_RDF_TRIPLE_S('family',
'http://www.example.org/family/stmt1',
'http://www.w3.org/1999/02/22-rdf-syntax-ns#subject',
'http://www.example.org/family/John'));
INSERT INTO family_rdf_data values(102,
SDO_RDF_TRIPLE_S('family',
'http://www.example.org/family/stmt1',
'http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate',
'http://www.example.org/family/fatherOf'));
INSERT INTO family_rdf_data values(103,
SDO_RDF_TRIPLE_S('family',
'http://www.example.org/family/stmt1',
'http://www.w3.org/1999/02/22-rdf-syntax-ns#object',
'http:/www.example.org/family/Matt'));
INSERT INTO family_rdf_data values(104,
SDO_RDF_TRIPLE_S('family',
'http://www.example.org/family/stmt1',
'http://www.example.org/family/recordedIn',
'http://www.example.org/family/document/birthCertificate'));
A sample query involving such reified statements:
SELECT s, p, o
FROM TABLE(SDO_RDF_MATCH(
'(?stmt rdf:subject ?p) (?stmt rdf:predicate :fatherOf)
(?stmt rdf:object ?o)(?stmt :recordedIn ?s)',
SDO_RDF_Models('family'),
null,
.... -
How do make link between query and UDF
How do you link a query to your UDF after you created the query and the UDF?
Also do you have to set the UDF as type "general", and "link"?
Please take me thru step?oh good - a discussion about whether to use "link" or "image" when having an image connected to a product!!!
Billy and Suda - We had fun with this one some time ago in a project collecting additional data and images for the customer's products on the market. As we were ramping up the project, we tried both ways of connecting an image to a product and there was a few drawbacks we found with using the UDF type of "General" and "Image":
1. The image was placed directly on the UDF portion on the Item Master - they were working in large TIFF (?) formats and the picture just looked horrible. The approving manager could not tell if the image should be approved for press or not. When he double-clicked on the image in the UDF portion it brought up another SAP window that wasn't quite crystal clear.
2. The image took up so much room on the UDF portion of the Item Master that the data entry personnel had to constantly scroll down to enter the other data points (color, size, branded promo, mixture, etc - there were about 12 fields). Talk about being ticked!
3. While using the "General" and "Link" it addressed those concerns BUT there was one extra enormous advantage with this General/Link method. When the image was brought up, it opened up the image automatically in a standard picture editor/manager program. If they liked what they saw, they continued foward with the approval of the image for press runs. If they did not like the image, they were able to manipulate the image at the moment and then follow through with approval (time saver for sure!).
I am sure it all boils down to what the customer requirements are, but some other clients I demoed this to wanted to switch immediately after seeing that! But definitely something to think about if you are planning on connecting an image to a product...
Oh and she really is correct, Billy - I have never heard of anyone linking a query to a "link" or "image" type...I don' t know how you would even do that as the "link" or "image" selection leads you directly into the attachment and/or storage path and location...
take care - Zal -
I HAVE TABLE ABC WITH TWO COLUM
ENO NUMBER(3)
ENAME VARCHAR2(10);
SELECT ENO,ENAME FROM ABC
ENO ENAME
123 SMITH
423 ALLEN
332 DAVID
562 AMUL
678 KING
986 GEORGE
621 ANDY
I WILL PASS PARAMETER TO MY SQL
FOR EXAMPLE LIKE 143
I NEED OUTPUT LIKE
ENO ENAME
123 SMITH
423 ALLEN
332 DAVID
621 ANDY
143 NOT EXIST OUTPUT
ENO ENAME
562 AMUL
678 KING
986 GEORGE
I want to check the any digit in the number passed as parameter exists as a digit in the eno number, then that number and ename should be displayed
under exist output . all others not exist
Regards
DevHere's one way:
SQL> VAR input varchar2(3)
/* Input string */
SQL> EXEC :input := '143'
SQL> SELECT empno,
ename
FROM emp,
(SELECT SUBSTR (:input, LEVEL, 1) s
FROM DUAL
CONNECT BY LEVEL <= LENGTH (:input))
WHERE empno LIKE '%' || s || '%'
/* Exists: */
MPNO ENAME
7521 WARD
7499 ALLEN
7654 MARTIN
7844 TURNER
7934 MILLER
7369 SMITH
7839 KING
7934 MILLER
8 rows selected.
SQL> SELECT empno,
ename
FROM emp
MINUS
SELECT empno,
ename
FROM emp,
(SELECT SUBSTR (:input, LEVEL, 1) s
FROM DUAL
CONNECT BY LEVEL <= LENGTH (:input))
WHERE empno LIKE '%' || s || '%'
/* Not exists: */
MPNO ENAME
7566 JONES
7698 BLAKE
7782 CLARK
7788 SCOTT
7876 ADAMS
7900 JAMES
7902 FORD
7 rows selected. -
In HTTP receiver, how to make a dynamic query string in URL
Hi,
I have a scenario where after a map we get an XML output as shown below
<FUNLOC>000010038</FUNLOC>
<SECONDARY_KEY>0000010038</SECONDARY_KEY>
<SOURCE>SAP customer</SOURCE>
<NAME>NAME NAME12 NAME13</NAME>.
Now what i need that my HTTP receiver URL should add these tags as
FUNLOC=000010038&SECONDARY_KEY=0000010038&SOURCE=SAP customer&NAME=NAME NAME12 NAME13.
Can any one help me out in step by step process to archive this.
This will be a great help from you.
Thanks in advance,
SmitaHi Smita,
Check these threads You can find the solution there.
https://forums.sdn.sap.com/click.jspa?searchID=5694804&messageID=3189288
https://forums.sdn.sap.com/click.jspa?searchID=5694804&messageID=3717577
Regards,
Sreenivas -
How To Make Search Query Showing the Result As List of Buttons.
Can some one give me an idea how to start to make a Search Query showing the results as list of buttons.. i have already have my buttons with names. i just dont know how to make a search query.
this is my on screen keyboard i made..
im making a system that the result were a list of buttons.. showing like this
This was supposed to be the output of the query that i need to do..
Please help me.. i just need a idea or tips how to make this one.Here is code I posted recently for another question
Public Class Form1
Const BUTTON_SIZE As Integer = 20
Const SPACE As Integer = 5
Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Dim buttons As New List(Of List(Of MyRadioButton))
For row = 1 To 6
Dim newRow As New List(Of MyRadioButton)
buttons.Add(newRow)
For col = 1 To 6
Dim button As New MyRadioButton()
button.row = row
button.col = col
button.Height = BUTTON_SIZE
button.Width = BUTTON_SIZE
button.Left = col * (BUTTON_SIZE + SPACE)
button.Top = row * (BUTTON_SIZE + SPACE)
button.Name = String.Format("radGr1{0}_{1}", row.ToString(), col.ToString())
Me.Controls.Add(button)
newRow.Add(button)
AddHandler button.CheckedChanged, AddressOf Radio_Change
Next col
Next row
End Sub
Private Sub Radio_Change(ByVal sender As Object, ByVal e As System.EventArgs)
Dim button As MyRadioButton = CType(sender, MyRadioButton)
Dim row As Integer = button.row
Dim col As Integer = button.col
End Sub
End Class
Public Class MyRadioButton
Inherits RadioButton
Public row As Integer
Public col As Integer
End Class
jdweng -
HELP! How to make RRI from BEX query into Workbook with one report???
How to make RRI from query into Workbook???
Hi Alex,
A workbook is a set format of queries, so when you try to jump to another query , you will definitely open another session and hence another excel file. This is the same for web templates also though you have an option of opening the new result in the same window.
You would have to use some macros and open the query on the same page. A RRI is a query jump and not a drill down . A drill down would be getting more of the dimensions into the query.
Regards
CSM Reddy -
Make this select query to Select Insert query
Hi,
How to make this select query to select Insert query..
;WITH DateDim AS
SELECT CAST('1900-01-01' AS DATETIME) StartDate
UNION ALL
SELECT StartDate + 1
FROM DateDim
WHERE StartDate + 1 <= '2099-12-31'
SELECT CAST(CONVERT(CHAR(8),CAST(StartDate AS DATETIME),112) AS INT) AS DateKey
, StartDate
, DATEPART(dw, StartDate) AS DayNumberOfWeek
, DATENAME(dw, StartDate) AS EnglishDayNameOfWeek
, DAY(StartDate) AS DayNumberOfMonth
, (CASE WHEN MONTH(StartDate)>=1 AND MONTH(StartDate) <=6 THEN 1 ELSE 2 END) AS CalendarSemester
FROM DateDim
OPTION (MAXRECURSION 0)
GOThe final solution is
;WITH DateDim AS
SELECT CAST('1900-01-01' AS DATETIME) StartDate
UNION ALL
SELECT StartDate + 1
FROM DateDim
WHERE StartDate + 1 <= '2099-12-31'
SELECT CAST(CONVERT(CHAR(8),CAST(StartDate AS DATETIME),112) AS INT) AS DateKey
, StartDate
, DATEPART(dw, StartDate) AS DayNumberOfWeek
, DATENAME(dw, StartDate) AS EnglishDayNameOfWeek
, DAY(StartDate) AS DayNumberOfMonth
, (CASE WHEN MONTH(StartDate)>=1 AND MONTH(StartDate) <=6 THEN 1 ELSE 2 END) AS CalendarSemester
Into new_tablenameFROM
DateDim
OPTION (MAXRECURSION 0)
GO -
How to make sql to use index/make to query to perform better
Hi,
I have 2 sql query which results the same.
But both has difference in SQL trace.
create table test_table
(u_id number(10),
u_no number(4),
s_id number(10),
s_no number(4),
o_id number(10),
o_no number(4),
constraint pk_test primary key(u_id, u_no));
insert into test_table(u_id, u_no, s_id, s_no, o_id, o_no)
values (2007030301, 1, 1001, 1, 2001, 1);
insert into test_table(u_id, u_no, s_id, s_no, o_id, o_no)
values (2007030302, 1, 1001, 1, 2001, 2);
insert into test_table(u_id, u_no, s_id, s_no, o_id, o_no)
values (2007030303, 1, 1001, 1, 2001, 3);
insert into test_table(u_id, u_no, s_id, s_no, o_id, o_no)
values (2007030304, 1, 1001, 1, 2001, 4);
insert into test_table(u_id, u_no, s_id, s_no, o_id, o_no)
values (2007030305, 1, 1002, 1, 1001, 2);
insert into test_table(u_id, u_no, s_id, s_no, o_id, o_no)
values (2007030306, 1, 1002, 1, 1002, 1);
commit;
CREATE INDEX idx_test_s_id ON test_table(s_id, s_no);
set autotrace on
select s_id, s_no, o_id, o_no
from test_table
where s_id <> o_id
and s_no <> o_no
union all
select o_id, o_no, s_id, s_no
from test_table
where s_id <> o_id
and s_no <> o_no;
Execution Plan
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=6 Card=8 Bytes=416)
1 0 UNION-ALL
2 1 TABLE ACCESS (FULL) OF 'TEST_TABLE' (TABLE) (Cost=3 Card=4 Bytes=208)
3 1 TABLE ACCESS (FULL) OF 'TEST_TABLE' (TABLE) (Cost=3 Card=4 Bytes=208)
Statistics
223 recursive calls
2 db block gets
84 consistent gets
0 physical reads
0 redo size
701 bytes sent via SQL*Net to client
508 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
5 sorts (memory)
0 sorts (disk)
8 rows processed
-- i didnt understand why the above query is not using the index idx_test_s_id.
-- But still it is faster
select s_id, s_no, o_id, o_no
from test_table
where (u_id, u_no) in
(select u_id, u_no from test_table
minus
select u_id, u_no from test_table
where s_id = o_id
or s_no = o_no)
union all
select o_id, o_no, s_id, s_no
from test_table
where (u_id, u_no) in
(select u_id, u_no from test_table
minus
select u_id, u_no from test_table
where s_id = o_id
or s_no = o_no);
Execution Plan
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=16 Card=2 Bytes=156)
1 0 UNION-ALL
2 1 FILTER
3 2 TABLE ACCESS (FULL) OF 'TEST_TABLE' (TABLE) (Cost=3 Card=6 Bytes=468)
4 2 MINUS
5 4 INDEX (UNIQUE SCAN) OF 'PK_TEST' (INDEX (UNIQUE)) (Cost=1 Card=1 Bytes=26)
6 4 TABLE ACCESS (BY INDEX ROWID) OF 'TEST_TABLE' (TABLE) (Cost=2 Card=1 Bytes=78)
7 6 INDEX (UNIQUE SCAN) OF 'PK_TEST' (INDEX (UNIQUE)) (Cost=1 Card=1)
8 1 FILTER
9 8 TABLE ACCESS (FULL) OF 'TEST_TABLE' (TABLE) (Cost=3 Card=6 Bytes=468)
10 8 MINUS
11 10 INDEX (UNIQUE SCAN) OF 'PK_TEST' (INDEX (UNIQUE)) (Cost=1 Card=1 Bytes=26)
12 10 TABLE ACCESS (BY INDEX ROWID) OF 'TEST_TABLE' (TABLE) (Cost=2 Card=1 Bytes=78)
13 12 INDEX (UNIQUE SCAN) OF 'PK_TEST' (INDEX (UNIQUE)) (Cost=1 Card=1)
Statistics
53 recursive calls
8 db block gets
187 consistent gets
0 physical reads
0 redo size
701 bytes sent via SQL*Net to client
508 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
4 sorts (memory)
0 sorts (disk)
8 rows processed
-- The above query is using index PK_TEST. But still it has FULL SCAN to the
-- table two times it has the more cost.
1st query --> SELECT STATEMENT Optimizer=ALL_ROWS (Cost=6 Card=8 Bytes=416)
2nd query --> SELECT STATEMENT Optimizer=ALL_ROWS (Cost=16 Card=2 Bytes=156)
My queries are:
1) performance wise which query is better?
2) how do i make the 1st query to use an index
3) is there any other method to get the same result by using any index
Appreciate your immediate help.
Best regards
MuthuHi William
Nice...it works.. I have added "o_id" and "o_no" are in part of the index
and now the query uses the index
Execution Plan
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=8 Bytes=416)
1 0 UNION-ALL
2 1 INDEX (FULL SCAN) OF 'IDX_TEST_S_ID' (INDEX) (Cost=1 Card=4 Bytes=208)
3 1 INDEX (FULL SCAN) OF 'IDX_TEST_S_ID' (INDEX) (Cost=1 Card=4 Bytes=208)
Statistics
7 recursive calls
0 db block gets
21 consistent gets
0 physical reads
0 redo size
701 bytes sent via SQL*Net to client
507 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
8 rows processed
But my questions are:
1) In a where clause, if "<>" condition is used, then, whether the system will use the index. Because I have observed in several situations even though the column in where clause is indexed, since the where condition is "like" or "is null/is not null"
then the index is not used. Same as like this, i assumed, if we use <> then indexes will not be used. Is it true?
2) Now, after adding "o_id" and "o_no" columns to the index, the Execution plan is:
Execution Plan
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=8 Bytes=416)
1 0 UNION-ALL
2 1 INDEX (FULL SCAN) OF 'IDX_TEST_S_ID' (INDEX) (Cost=1 Card=4 Bytes=208)
3 1 INDEX (FULL SCAN) OF 'IDX_TEST_S_ID' (INDEX) (Cost=1 Card=4 Bytes=208)
Before it was :
Execution Plan
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=6 Card=8 Bytes=416)
1 0 UNION-ALL
2 1 TABLE ACCESS (FULL) OF 'TEST_TABLE' (TABLE) (Cost=3 Card=4 Bytes=208)
3 1 TABLE ACCESS (FULL) OF 'TEST_TABLE' (TABLE) (Cost=3 Card=4 Bytes=208)
Difference only in Cost (reduced), not in Card, Bytes.
Can you explain, how can i decide which makes the performace better (Cost / Card / Bytes). Full Scan / Range Scan?
On statistics also:
Before:
Statistics
52 recursive calls
0 db block gets
43 consistent gets
0 physical reads
0 redo size
701 bytes sent via SQL*Net to client
507 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
8 rows processed
After:
Statistics
7 recursive calls
0 db block gets
21 consistent gets
0 physical reads
0 redo size
701 bytes sent via SQL*Net to client
507 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
8 rows processed
Difference in recursive calls & consistent gets.
Which one shows the query with better performance?
Please explain..
Regards
Muthu -
SQL Query (updateable report) - Can't figure out how to make one
Hi folks,
Can someone tell me how to make a report where the data can be updated? Not an interactive report, a SQL report that selects only one row. The only options in the drop down I see are "SQL Query" and "SQL Query (PL/SQL function body returning SQL query)", but I have a report elsewhere that says it's type is "SQL Query (updateable report)", but I can't remember how to do it :(
Thanks very much,
-AdamHi Adam,
An Updatable Report is a "Tabular Form" - see: http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/frm_tabular.htm#CHDFBHDB
Andy -
How to make changes in infose query in SQ01
Dear experts,
I hv question abt infoset query.
I m not very familiar with infoset query and now i hv to make some changes in already existing query.
I hv found the infoset in use.
from this infoset i can find the query.
Now the question is I just hv to insert one field in selection screen and and same in output list. This field has to come from a table which is already in use in joins. I just have to tick the checkbox to appear the field in selection screen and in outputlist.
But I m not sure, if i make any changes in query, what will be the effects because the query is in production system and i hv to make changes in the production system only.
and before sq01 i hv to drag and drop that field in infoset sq02..
Can any one pls guide me , how i should make changes in query.
Thanks in advance
Jaspal Kumar
Edited by: jaspalkumar on Feb 25, 2011 10:43 AMThank you very much for ur reply.
Actually, there are tjhree table joined in sq02. One is KNVV. i hv to add customer group into selection screen and output list also.
SO i will hv to make changes both in sq02 and then sq01.
how i supposed to do it. I m very sory asking again and its like spoon feeding,
but to be very true report is in production and i m very scared of ripple effects of changes as i hv less idea abt the infoset.
Pl;s guide,
With best regards,
Jaspal Kumar -
How to make use of the presentation variable in SQL result query
I have 2 prompts in my dashboard.
Prompt1 decides the values of Prompt2.
I have set a presentation Variable (selected_comp) in prompt1 which holds the value selected.
To populate the values for Prompt2, I need to execute a query using the presenation variable set by Prompt1.
SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=@{selected_comp}
the query is resulting into
SQL Issued: SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=0
but the value in selected_comp is "ABC".
Can anybody help in how to make use of the presentation variable in query to get the correct value
thanks
ShubhaJust use constrain check box to filter your 2nd prompt values based on the 1st prompt.
Thanks,
Venkat
http://oraclebizint.wordpress.com -
How to make fields in field group as text fields in ABAP query
Hi friends,
I a have a ABAP query 85 corresponding to infoset A205,
there is a field group in the infoset A205 and it contains some fields
but some of the fields are made as text fields ................i want to know how to make these fields in
the field group as text fields.
there is a small icon " T " on the field when it is made as a text field .
Please help me
Thanks & RegardsHi,
IF you can specify which Field Catalog then it will be useful for us to provide appropriate answer.
1. For Customer Master
IMG> Financial Accounting New> Acs Recev and Acs Payable --> Customer Accounts --> Master Data --> Preperation of creating customer master Data --> Define Account Groups with screen layout (customers)
In that you can create your own account group, and click Details Screen.
There will Field Status header within that are listed three main areas
General data
Company code data
Sales data
When you double click these lines it will take you into "Status Group" Overview. Wherein under "Select Group" are listed fields Address, communiucation.... Double click on one group , you will bet aken into the group field wherein you will find 4 colums with indicators assigned to it. ( Suppress, Req. Entry, Opt Entry, Display) you can choose the required option. "Req. Entry" against the field. Click save after you complete your selections.
2. Similarly you can do for Material Master in
IMG --> Logistics General --> Material Master --> Field Selection --> Maintain Field Selection for Data Screens
But be careful when you do it for material master as it is cuts across all the modules...
Regards
Sathya
Maybe you are looking for
-
Ipad can't connect to TV after update 8.1.1
I have an older Ipad (3rd gen. discontinued). I used to use component cables (the 3 heads one) to connect to my older TV (no HDMI) and watch video/apps on TV with no problem. But after the recent update ios 8.1.1. A pop up will say device not suppo
-
How to forward sms messages via email with date and contact received info
Does anyone know how to forward sms messages via email with date and contact received info. Currently when I forward only the body copy of the sms message is sent in the email.
-
XML Publisher 5.6.2
Hello; Can XML Publisher 5.6.2 can be run without installing Database configuration (Quartz Scheduler)? Just want to execute XML publisher thru a web appllication like an JSP application or Apex (HTML DB) ? No need to schedule or send report to mail
-
Want to change Database Character set
I have installed Oracle 10g in my system. But while installing Oracle 10g i have selected the Database Character set as English but now i want it to change it to West European WE8MSWIN1252 can anyboby suggest how to modify it.
-
Hello, I am doing some work in statistics for a science class at my university. Is there some way to tell the spreadsheet program to put a "best-fit line" on a plot of data points? I have looked through the function list and I haven't found anything.