TREX - ECC 6.0 searches in different tables
Hi, have some search related questions:
- Is it possible to use TREX for combined searches from non-indexed tables in ECC 6.0 (where data is stored in different areas such as material, classification, BOM, customers, vendors, address data and so on)?
- Is it possible to mirror tables in ECC 6.0 to TREX via change pointers so the search data is "fresh" (the returned search result will be used in combination with other data and then stored back to ECC 6.0 from the NW portal)?
- Is it possible to have cross related search attributes (fields from material master, classification, bom, dms, address and so on) on the same tab in the sap standard search help (sap search help will be called from ABAP WebDynpro's)?
The main issue is to do combined searches with different combinations (number of input fields (10-20) related to different modules/areas) in ABAP WebDynpro. To do searches with outer table joins in tables without
keys and indexes seems not be doable.
/Brg Patrick Olsson
Hi lorenzo,
I have successfully installed ECC6.0 IDES SR2, i have found ECC-DIMP 6.0 LEVEL 6 in Support packs, please could you tell me that how can i activate IS-MILL in my server and what are the preconditions.
Thanks and Regards
ChandraB.
Similar Messages
-
SES, TREX ... and search in indexed table
Hi
I have a task, to use SES to create intarface (in ABAP) for search in one specyfic table. This table contains field with long description text and I would like to use SES to search over it. I read some documents and i checked SAP Help ... but i still don't know how to start. Is there any step by step tutorial for using SES? Do I have to create Business Object Type for this table? If i have to ... how to create it for to enable SES for it?
Regards
MarcinHi Marcin
I think you should create this message in the Enterprise Search forum, if you haven't done already.
Kind regards,
Martin Søgaard -
Searching multiple mysql tables, Joins?
I'm creating a mysql keyword search on my website and I know how to search a single mysql table, my problem is I need to search 15 different tables simultaneously, they also all have the same column names. I was told I have to you JOINS but i've never used them before. How is this done?
MY SQL SELECT:
SELECT *
FROM mytable1
WHERE keyword LIKE %colname% OR id LIKE %colname%OK, that really doesn't answer my question. Just because they are in different categories is not a valid reason. Why can't they be mixed?
In any case, you could probably use a UNION query to solve the current problem, but I would have to know more about the complete query. You don't want to use a JOIN. -
Problem with a stored procedure to search in a table
h5.
Hi,
h5.
As many people on the forum, I'm new on PL/SQL programming.
h5.
I'm trying to program a stored procedure that allow to search on my table fields with different parameters.
h5.
All this parameters doesn't need to be set, at least one.
h5.
I'm looking for the solution from 2 weeks ago.
h5.
I have looked everywhere
h5.
Could someone help me, please??
h5.
Here is my code:
* HERE WE CREATE PACKAGE FOR THE CURSOR
create or replace
PACKAGE HOTEL_DEST_PKG
IS
/* Define the REF CURSOR type. */
TYPE HOTEL_DEST_TYPE IS REF CURSOR;
END HOTEL_DEST_PKG;
* HERE WE CREATE OUR STORE PROCEDURE TO SEARCH
create or replace
PROCEDURE Search_Hotel (
IdDocument IN number,
MyFilter IN VARCHAR2,
IdCountry IN number,
DepartureDateFirst IN DATE,
DepartureDateSecond IN DATE,
HD_Cursor OUT HOTEL_DEST_PKG.HOTEL_DEST_TYPE)
IS
SQL_REQ VARCHAR2(5000);
BEGIN
/* all columns were entered */
IF ((IdDocument > 0) OR
((MyFilter IS NOT NULL) AND (length(MyFilter) > 0)) OR
(IdCountry > 0) OR
(DepartureDateFirst IS NOT NULL) OR
(DepartureDateSecond IS NOT NULL))
THEN
SQL_REQ := 'SELECT HOTEL_DESTINATION.*
FROM HOTEL_DESTINATION
WHERE 1=1';
/* Search on the hotel id*/
IF IdDocument > 0 THEN
SQL_REQ := SQL_REQ || ' AND HOTEL_DESTINATION.HD_ID = :IdDocument';
ELSE
SQL_REQ := SQL_REQ || ' AND :IdDocument IS NULL';
END IF;
/*Search on different indexed fields*/
IF MyFilter IS NOT NULL AND LENGTH(MyFilter)>0 THEN
SQL_REQ := SQL_REQ || ' AND CONTAINS(HOTEL_DESTINATION.HD_FILTER, :MyFilter)';
ELSE
SQL_REQ := SQL_REQ || ' AND :MyFilter IS NULL';
END IF;
/* Search on the hotel country id*/
IF IdCountry > 0 THEN
SQL_REQ := SQL_REQ || ' AND HOTEL_DESTINATION.HD_CN_ID = :IdCountry';
ELSE
SQL_REQ := SQL_REQ || ' AND :IdCountry IS NULL';
END IF;
/* Search on the dates*/
IF DepartureDateFirst IS NOT NULL THEN
SQL_REQ := SQL_REQ || ' AND HOTEL_DESTINATION.HD_DEPARTURE_DATE >= :DepartureDateFirst';
ELSE
SQL_REQ := SQL_REQ || ' AND :DepartureDateFirst IS NULL' ;
END IF;
IF DepartureDateSecond IS NOT NULL THEN
SQL_REQ := SQL_REQ || ' AND HOTEL_DESTINATION.HD_DEPARTURE_DATE <= :DepartureDateSecond';
ELSE
SQL_REQ := SQL_REQ || ' AND :DepartureDateSecond IS NULL';
END IF;
OPEN HD_CURSOR FOR SQL_REQ USING IdDocument,
MyFilter,
IdCountry,
DepartureDateFirst,
DepartureDateSecond;
END IF;
END;
* HERE WE CALL AND EXECUTE OUR STORE PROCEDURE TO SEARCH
* ON WORD
set serveroutput on
DECLARE
IDDOCUMENT NUMBER;
MYFILTER VARCHAR2(200);
IDCOUNTRY NUMBER;
DEPARTUREDATEFIRST IN DATE;
DEPARTUREDATESECOND IN DATE;
HD_CURSOR OUT HOTEL_DEST_PKG.HOTEL_DEST_TYPE);
BEGIN
IDDOCUMENT := 0;
MYFILTER := 'test';
IDCOUNTRY := 0;
DEPARTUREDATEFIRST := NULL;
DEPARTUREDATESECOND := NULL;
SEARCH_HOTEL(
IDDOCUMENT => IDDOCUMENT,
MYFILTER => MYFILTER,
IDCOUNTRY => IDCOUNTRY,
DEPARTUREDATEFIRST => DEPARTUREDATEFIRST,
DEPARTUREDATESECOND => DEPARTUREDATESECOND,
HD_Cursor => HD_Cursor
-- Modify the code to output the variable
--DBMS_OUTPUT.PUT_LINE('HD_Cursor = ' || HD_Cursor);
END;You need to grant right on the table to the owner of the stored procedure directly (not via Role).
When there are only rights via role everything is fine in sql, but it will not work in stored procedures, functions or packages.
So as Table-Owner do:
grant select on <table> to <procedure, package or function-owner>;Edited by: hm on 22.10.2010 08:49 -
Search Help on Table Control - Fill more than one field in the table?
Hey everyone,
I have built a screen with a Table Control on it... the fields of the table control are linked to an internal table... The internal table has the line type of a structure I've defined in the data dictionary. Within that structure in the data dictionary, I've linked some fields to search helps (For example, a MATNR and CUSTOMER search help)... I've defined in the structure definition which fields from the search help are to be returned to which fields in the structure.
The problem is, even though I have the search help set to export both the customer number and location when using the search help on the customer field, it still does not fill the location field within the table. Is this a limitation of using search helps within table controls?
I'm also finding that by defining the search help through the structure, instead of directly within the screen, the search help round button does not show up on the field, yet I can still press F4 to bring up the search help. Is there a reason why it's not showing the search help clickable button even though it works fine using F4?
For doing search helps in Table Controls, is it better to just build the search help, attach it directly to the field in the table, and then after the user picks the single field, use the PAI to run a select and fill the rest of the fields required?
Thanks,
DallasHi Dallas,
(1)
What i understood is that you added a search help by defining it in the internal table type for a field customer number..in the search help you have 2 fields customer number and location...user press the search help ..then you need to fill 2 different fields or 1 field?
if you need to fill the customer location or location (only one) then you need to set the "import" in the search help for whichever is required.....
if you need to fill 2 or more different fields..then you can use the technique you have mentioned last , to do a select in PAI and fill the fields....but this you can use if the combination for the fields is unique...eg: u have customer number and location..if customer X can be mapped to location X and location Y..when a select statement is done there are 2 options..so in such cases it is better to leave the option to the user otherwise if there is a clear mapping like customer X can be mapped only to location X then you can use the select..
(2)
usually when you define it as a type in the internal table the icon doesn't show up..but you can do alternative like mentioned..go to the table,find the search help for the required field if present or create a new one if required and place the search help mentioned in the screen itself..so as to see the icon...sometimes users are adamant that they need the search help icon to be seen..so it depends on if your user
(3)
as in the example of customer number and location mentioned we can provide them different search helps and do the needful processing in PAI to fill the fields
Table controls may be used for different purposes and requirements....even a checkbox,push button can be placed as a field in table control and used,but yes most of the time requirements are like what is mentioned in your case...
Regards
Byju -
Select from different tables based on value
Hi Forum,
I'm stuggling with a problem:
In a table, I have two columns, pref_type and pref_value. Column pref_type stores a number value that is linked to a preference type, whereas column pref_value stores the value of that preference.
Unfortunately, the data model is such that per preference type a different tables needs to be used, so for example, if
pref_type = 1, table to query is A, whereas if
pref_type = 2, table to query is B.
I now want to write a query that resolves the preferences, ie it should branch to the respective table based on pref_type and search for pref_value and deliver back a different column of that respective table.
My first approach was like that:
select decode (pref_value, 1, (select result from A where pref_value = ???),
2, (select result from B where pref_value = ???)
where the three ??? depict the problem I'm having, as Oracle doesn't allow me to have a harmonized subquery here.
How do I achieve this?
Thanks for any help,
J. SiebenI believe this is what you are trying to get at:
SELECT DECODE(m.pref_type, 1, (SELECT result FROM a
WHERE a.pref_value = m.pref_value),
2, (SELECT result FROM b
WHERE b.pref_value = m.pref_value)
FROM my_table mAlthough, if the tables are large, that might be pretty slow. Better than an outer join, but one of those correlated queries is going to be run for each row in my_table. You could lso try something like:
SELECT m.pref_type, r.result
FROM my_table m,
(SELECT 'A' tbl, pref_value, result
FROM a
UNION ALL
SELECT 'B', pref_value, result
FROM b) r
WHERE DECODE(m.pref_type, 1, 'A', 'B') = r.tbl and
m.pref_value = r.pref_valueHTH
John -
Need help :: how to search in nested table/varray data type
I have the following structure...
CREATE TYPE lang_con AS VARRAY(15) OF VARCHAR2(50);
CREATE TYPE rel_con AS VARRAY(15) OF VARCHAR2(50);
CREATE TABLE Country_n(
"NAME" VARCHAR2(40 BYTE) CONSTRAINT "COUNTRY_NAME_NOTNULL_N" NOT NULL ENABLE,
"CODE" CHAR(2 BYTE),
"CAPITAL" VARCHAR2(40 BYTE),
"PROVINCE" VARCHAR2(40 BYTE),
"POPULATION" NUMBER,
"AREA" NUMBER,
"LANGUAGES" lang_con,
"RELIGIONS" rel_con
after inserting data from 3 different table (country, language, religion) the table looks like this....
Cyprus cy Nicosia Government controlled area 775927 9250 VARCHAR(English,Greek,Turkish) VARCHAR(Greek Orthodox,Muslim)
Czech Republic cz Prague Prague 10246178 78866 VARCHAR(Czech) VARCHAR(Orthodox,Protestant,Roman Catholic)
Germany de Berlin Berlin 82424609 357021 VARCHAR(German) VARCHAR(Muslim,Protestant,Roman Catholic)
Djibouti dj Jibuti Jibuti 466900 23000 VARCHAR(Afar,Arabic,French,Somali) VARCHAR(Christian,Muslim)
Denmark dk Copenhagen Frederiksberg Kommune 5413392 43094 VARCHAR(Danish,Faroese,German,Greenlandic) VARCHAR(Evangelical Lutheran,Muslim)
now I want to get the countries in which german language is being spoken. Actually I need to know how to search in this custom data type of mine....I also need to perform other operation further so really need to know how can I search in this custom data type...
when I execute the following query....
select * from country_n cn where cn.languages like '%German%' order by name
I got the following error....
Error starting at line 1 in command:
select * from country_n cn where cn.languages like '%German%' order by name
Error at Command Line:1 Column:33
Error report:
SQL Error: ORA-00932: inconsistent datatypes: expected NUMBER got AHMADM.LANG_CON
00932. 00000 - "inconsistent datatypes: expected %s got %s"
*Cause:
*Action:
let me know please...looking forward to your replies....
Thanks,Hi,
Try this:
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL>
SQL> SELECT t1.*
2 FROM country_n t1,
3 TABLE(t1.languages) t2
4 WHERE column_value LIKE '%German%';
NAME CODE CAPITAL PROVINCE POPULATION AREA LANGUAGES RELIGIONS
Germany de Berlin Berlin 82424609 357021 <Object> <Object>
SQL> Regards, -
Getting Data from 2 different table and saving it in the third table
Hi,
My question is i have 2 different table where the data is stored. And Nothing is at Level0 and i don't need it.
Table A will be at Level1, this is a scroll and depending on this value the level2 grid will be populated with the values.
Say for example Table A is groups; data e.g., Cars, MotorBike etc
Table B will have the data for Group Cars: Holden, Toyota, Honda etc., MotorBike: Honda, Suzuki, Yamaha etc.,
Now lets say there are 3 divisions in the company AA , BB
Division AA has been allocated group Cars only
Division BB has been Allocated Both Cars and MotorBikes.
To do this i have used a query view where depending on the Division i choose the group and then i get the required fileds.
Now my Problem is that i need to save this data in table C but on the ad-hoc basis can't write a query with in the code to do that.
tried using work record on the scroll but i cant do that as well. Any Suggestions?
One more thing when the Page open this data should be pre-populated on the page depending on the division, the user will not be able to select anything from the prompt.
Edited by: 952330 on Aug 12, 2012 8:32 PMI hope I can clarify:
For our purposes here:
Table 1 = "Step 2 - Product Sizes"
Table 2 = "Option id Master"
Table 3 = "Export - Product Info"
Table 1:
The user would enter values for "productcode," "Horz," and "Vert"
"Size" would auto fill based on values in Horiz and Vert (I have this taken care of already).
Table 2: This is a completely static table that I want to search against. - Data from other tables in the doc does not alter or change the data in this doc.
We just want to look at table 2. Find the existing value in "table 2 : size" column that matches the "table 1 : size" column and then pull the "optionids" and "productprice" from that row.
Can the value from "Table 1 : Size" be used as a search term in "Table 2 : Size?"
Table 3: The user does not enter any values on this table.
"productcode" is pulled from table 1 - "Table 1 :: A5" = "Table 3 :: A5"
"optionids" and "productprice" are pulled from Table 2 columns "D" and "E" - however we do not know which Table 2 row it is pulling from until we enter data in Table 1.
As I'm writing this I'm realizing that
A. this is probably really confusing to you.
B. this may be impossible inside of numbers.
If you have some other method that would facilitate the same out come but be structured differently please let me know.
--- maybe to help you understand further what I am doing here is my current workflow:
I record the size of a piece of art.
Then I manually go to my "Option id Master" and find the same size.
I then copy the corresponding "optionids" and "productprice" cells. (these options control the prices displayed on my website)
I got to my "Export - Product Info" table and paste the values in the corresponding cells.
I was hoping to automate this as it takes a long time when you have hundreds of products.
Thanks for the help! -
Creating LOV from 2 different tables
I tried doing some searches on this, but haven't been able to find an answer. Can I create an LOV (to populate a select list) from two different tables? Both tables have the exact same column names/datatypes, just different data.
Or if this isn't possible, should I just create a new table, and then do a union query to populate it with the values from both of these tables? Just wondering if anyone's had experience with this situation. Thanks!Hmm. That is weird. Wonder why it's not working for me.
The SORT_ORDER column appears in both tables. I was hoping to be able to sort by the number value that appears in this column in both tables (could duplicate values in this table be causing an issue?).
I even tried changing it to:
SELECT DISPLAY_AS d1, CONTENT_KEY v1
FROM SER_LISTS_JOB_TYPE
WHERE ACTIVE = 'YES'
UNION
SELECT DISPLAY_AS d2, CONTENT_KEY v2
FROM SER_LISTS_COMPANY_TYPE
WHERE ACTIVE = 'YES'
ORDER BY SORT_ORDERBut still get the same error message.
Message was edited by:
taneal
OK. It appears the ORDER BY SORT_ORDER was causing the issue. I took it out and it worked. The only problem is that I have 1 duplicate entry, called "Other" that now appears twice in my LOV. Any thoughts on this? The value of CONTENT_KEY is different, but the value for DISPLAY_AS is the same. Is there anyway to pull out one of these? -
Loading Multiple excel sheets in to different tables in a DB
Hi All,
I have problem in loading multiple excel sheets data in to according to that excelsheets tables in a DB.
All the excel sheets are in a folder,from that folder i have to acces all excel sheets.
For this i am unsing script task and one dataflow task.
But the error is coming in script task i am not able to put the path in the script..
Is this the correct way to do like this? Or any other way?
Can u please tell me the solution for this..Thanks in advance who are responding to this mail...
Maruthi..Hi Vipin,
Here you go with this requirement
How to Load Multiple Sheets From Multiple Excel Files to Different Tables in SSIS Package?
ttps://www.youtube.com/watch?v=1WXKpkwjhX8&feature=youtu.be
I have other videos as well where you want to load all the sheets from file/s to same table
https://www.youtube.com/watch?v=F3sYO-S9icc&feature=youtu.be
Check out the last links on below links all related to Excel
http://sqlage.blogspot.com/search/label/SSIS%20Videos
How to Create Excel file with Date-time on Each Package Execution in SSIS Package?
How to Load Multiple Sheets to a SQL Server Table in SSIS Package?
How to Load Data Excel File to SQL Server Table and Solve Data Conversion Issues?
How to Load Multiple Sheets From Multiple Excel Files to Different Tables in SSIS Package?
How to Load Data to Pre-Formatted Excel Sheet (Excel Report) in SSIS Package?
All the best!
http://sqlage.blogspot.com/ -
Comparing values in different tables
Hi,
I am trying to compare values in two different table fields, can someone advise me of the ABAP to do it.
I need to find IHPA-PARNR(partner number) in table T527X-ORGEH(org unit number)
Thanks,
AlecOK now I'm confused:
I put a breakpoint as follows:
SELECT * FROM t527x INTO TABLE it_t527x.
LOOP AT it_ihpa INTO wa_ihpa.
READ TABLE it_t527x INTO wa_t527x WITH KEY orgeh = wa_ihpa-parnr
BINARY SEARCH.
IF sy-subrc EQ 0.
BREAK-POINT.
WRITE: wa_t527X-ORGTX TO ZORGUNITTEXT.
ELSE.
WRITE: 'Damn it' TO ZORGUNITTEXT.
ENDIF.
ENDLOOP.
I have the correct values in the correct fields but still SUBRC does not = 0
WA_T527X-ORGTX Stockton - Front of House
ZORGUNITTEXT Damn it
WA_t527X-ORGEH 20008855
WA_IHPA-parnr 20008855
Whats Wrong?
Edited by: Alec Fletcher on Dec 19, 2008 1:50 PM -
Hello All,
Portal version = EP7 SP14
Our Portal server resides on dual (ABAP+Java) stack.
Have integrated Portal and ECC with one TREX server.
Requirement - Should be able to search SAP ECC data from Portal. So how should this be done.
Please guide.
Thanks,
RituI think the same is done when SAP CRM is implemented.
Portal users can search for products in Product Catalog in SAP CRM.
But again, I did not find no document on how this Portal <-> TREX <-> ECC search is done.
Sandeep,
If you re-collect any part of that conference, please share.
Thanks,
Ritu -
Best practice for a same query against 2 different tables
Hello all,
I want to extract info about tablespaces storage, both permanent and temporary. For that I use 2 different cursors that do exactly the same query but against a different table (dba_data_files and dba_temp_files).
CURSOR permanentTBSStorageInfo (tablespaceName VARCHAR2) IS
SELECT file_name, bytes, autoextensible, maxbytes, increment_by
FROM dba_data_files
WHERE tablespace_name = tablespaceName;
CURSOR temporaryTBSStorageInfo (tablespaceName VARCHAR2) IS
SELECT file_name, bytes, autoextensible, maxbytes, increment_by
FROM dba_temp_files
WHERE tablespace_name = tablespaceName;
First I'm bothered that I have to use 2 cursors to execute the same query against 2 different tables. Is there no another way around?
Then I fetch the results of this cursors in 2 different loops because I didn't find a way to dynamically call the cursors. I am looking for best practice here, knowing that I will do the same parsing against the results of the 2 cursors.
Thank you,Hi
Check whether the below query is helpful or not
select fs.tablespace_name "Tablespace",
fs.tempspace "Temp MB",
df.totalspace "Total MB"
from
(select
tablespace_name,
round(sum(bytes) / 1048576) TotalSpace
from
dba_data_files
group by
tablespace_name
) df,
(select
tablespace_name,
round(sum(bytes) / 1048576) tempSpace
from
dba_temp_files
group by
tablespace_name
) fs
where
df.tablespace_name = fs.tablespace_name;
Thanks -
How to create a foreign key for the table from two different tables?
Hi All,
I have a three table like below. In the below table SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK will be having the primary key for NAME column. The same SAMPLE_CONS3_CHECK table also having the primary key for NAME column and forieign key for SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK tables. See the below code 2
code 1:
CREATE TABLE SAMPLE_CONS_CHECK
(NAME VARCHAR2(10),
SERIES VARCHAR2(5)
CREATE TABLE SAMPLE_CONS2_CHECK
(NAME VARCHAR2(5),
MODEL NUMBER
CREATE TABLE SAMPLE_CONS3_CHECK
(NAME VARCHAR2(5),
MODEL_NO NUMBER
)code 2
alter table SAMPLE_CONS_CHECK
add constraint SAMPLE_CONS_CHECK_pk primary key (NAME)
alter table SAMPLE_CONS2_CHECK
add constraint SAMPLE_CONS2_CHECK_pk primary key (NAME)
alter table SAMPLE_CONS3_CHECK
add constraint SAMPLE_CONS3_CHECK_pk primary key (NAME)
ALTER TABLE SAMPLE_CONS3_CHECK ADD
CONSTRAINT SAMPLE_CONS3_CHECK_FK1 FOREIGN KEY
NAME
) REFERENCES SAMPLE_CONS_CHECK
NAME
) ON DELETE CASCADE;
ALTER TABLE SAMPLE_CONS3_CHECK ADD
CONSTRAINT SAMPLE_CONS3_CHECK_FK2 FOREIGN KEY
NAME
) REFERENCES SAMPLE_CONS2_CHECK
NAME
) ON DELETE CASCADE;From the above schenario i am able to insert the data to SAMPLE_CONS3_CHECK table. But the parent data is already available in the parent table. The problem is here two different constarints from two different tables. While inserting, it is checking from both the tables whether the parent is exist or not.
How can i solve this problem? Can anyone halp me about this?
Thanks
Edited by: orasuriya on Aug 8, 2009 2:02 AMActually the design is completely incorrect.
What you say is
I have
'foo', 'foo series'
'foo','foo model'
'foo',666
By virtue of table3 referring to both table1 and table2.
This means you actually need to have 1 (one) table:
'foo','foo series','foo model', 666
And the 'problem' disappears.
Sybrand Bakker
Senior Oracle DBA -
Report using Data from different tables
Hello,
I am trying to convert a Cobol batch program to Oracle 6i tabular report.
The data is fetched from many different tables and there are lots of processing(i.e, based on the value of a column from one table need additional processing from different tables) required to generate the desired columns in the final report.
I would like to know what is the best strategy to follow in Oracle Reports 6i. I heard that CREATE GLOBAL TEMPORARY TABLE is an option. ( or REF CURSOR ?) I do not know much about its usage. Can somebody guide me about this or any other better way to achieve the result.
Thank you in advance
PriyaHello,
There are many, many options available to you, each of which has advantages and disadvantages. This is why it is difficult to answer "what is best?" without alot more details about your specific circumstances.
In general, you're going to be writing PL/SQL to do any conditional logic that cannot be expressed as pure SQL. It can executed in the database, or it can executed within Reports itself. And most reports developers do some of both.
As a general rule, you want to send only the data you need from the database to the report. This means you want to do as much filtering and aggregating of the data as is readily possible within the database. If this cannot be expressed as plain SQL queries, then you'll want to create a stored procedures to help do this work.
Generally, the PL/SQL you create for executing within the report should be focused on control of the formatting, such as controlling whether a field is visible, or controlling display attributes for conditional formatting.
But these are not hard and fast rules. In some cases, it is difficult to get all the stored procedures you might like installed into the database. Perhaps the dba is reluctant to let you install that many stored procedures. Perhaps there are restrictions when and how often updates can be made to stored procedures in a production database, which makes it difficult to incrementally adjust your reports based on user feedback. Or perhaps there are restrictions for how long queries are allowed to run.
So, Reports offers lots of options and features to let you do data manipulation operations from within the report data model.
In any case, Oracle does offer temporary table capabilities. You can populate a temp table by running stored procedures that do queries, calculations and aggregations. And you can define and initiate a dynamic query statement within the database and pass a handle to this query off to the report to execute (ref cursor).
From the reports side, you can have as many queries as you want in the data model, arranged in any hierarchy via links. You can parameterize and change the queries dynamically using bind variables and lexicals. And you can add calculations, aggregations, and filters.
Again, most people do data manipulation both in the database and in Reports, using the database for what it excels at, and Reports for what it excels at.
Hope this helps.
Regards,
The Oracle Reports Team --skw
Maybe you are looking for
-
How to Update the Subject of Email Notification in GRC 10 PC
Hi All, I am trying to update the subject of email Notification GRC 10 PC ,But it not happening,Please provide me your inputs.. i followed as per below steps. Step 1 -->Go to transaction SE91. Step 2 -->Enter "SWU_NOTIF" for the Message class and cli
-
HT1386 itunes isnt showing my iphone and so i cant sync anything help???
itunes isnt showing my iphone and so i cant sync anything help???
-
How can I make picture fit into screen
There's a picture on the Internet that I want to print, but it's slightly too tall to fit into my screen. I've tried changing the resolution. I've also gone to Apple>System Preferences>Displays>Geometry, but nothing there does the job. If I could rot
-
Problem to access my count in adobe Digital Editions
Dear, I`ve problem to access my count in Adobe Digital Edition, I bought an eBook in pdf format and when try read it, ask me to get in for my ID and password ind Adobe Digital Editions, report that there is another user use my licence. Thus, I know
-
Icbaccountsd: Excessive number of unncessary syncs - Denying request for sync!
From time to time, my console gets flooded with hundreds of icbaccountsd messages until, finally, this "icbaccountsd: __17-[ICBServer sync]_block_invoke: Excessive number of unncessary syncs - Denying request for sync!" appears (interestingly, the me