Using results of different reports into another
Hi,
I have two reports which two different subject areas
SA1 and SA2
I have a report R1 in SA1 which gives productid and stocklevel based on some conditions
I have a report R2 in SA2 which gives productid and stocklevel based on different conditions for the same productid which is used in R1
Now i need to subtract the stocklevel for the products
that is i have to match the R1.productid with the R2.productid and find R1.stocklevel- R2.stocklevel.
Is there any way of finding them in the answers...
Thanks,
Akila Manikandan.
hi Akila,
I guess u need to go with Direct Database Request
http://gerardnico.com/wiki/dat/obiee/direct_database_request
http://108obiee.blogspot.com/2009/11/variables-in-direct-database-requests.html
else filter based on other request in advanced properties use that on R1.productid filter try it out
Thanks,
Saichand.v
Similar Messages
-
Using results of other reports of a Dashboard
Hi there,
i've created a Dashboard with some requests on it.
Now i want to use the result of a report to do calculation on a further report.
Is it possible to save the result of a report in a variable or is there any other way to use the result of a report in another Report?
Thanks,
FrankThanks wildmight for your suggestion,
the thing is that I can't create calculated columns on BMM because the results are calculated with subqueries.
I need to do a calculation like
z = x * y
x := count of Customers who have bought Product1 and not Product2 (calculated with subqueries)
y := average Revenue of Product2
Product1 and Product2 are prompted
I dont know how I could calculate this two statements in one report.
Regards,
Frank -
Import AWR Html report into another database
Hello,
Im in 11gR2, is it possible to import the AWR Html report from database 1 into another database 2?
I would like to use ADDM from another database 2 to analyze the AWR Html report of database 1.
Thanks,AWR report importing on another database
i dont think so -
Inserting results from select query into another table
Hi: Is there a way to insert results returned from a SQL query into another table within the same SQL statement.
For example
SELECT a.SRCID,
SUM(DECODE(a.CLASS_ID,91147,1,0)) BLOCK,
SUM(DECODE(a.CLASS_ID,91126,1,0)) ALLOW,
FROM EVENT_DATA a
where
a.class_id in (91147,91126)
GROUP BY SRCID
order by TOTAL DESC;The columns returned SRCID, BLOCK and ALLOW need to go into another table called AGGREGATE_COUNT. This table has fields SRCID, BLOCK and ALLOW. Or is the only way this can be done from outside of SQL like using perl or C.
Thanks
RayINSERT INTO aggregate_count
( chart_id
, srcid
, block
, allow
SELECT 2234 chart_id
, srcid
, SUM(DECODE(class_id, 91147, 1, 0))
, SUM(DECODE(class_id, 91126, 1, 0))
FROM event_data
WHERE class_id IN (91147, 91126)
GROUP BY chart_id, srcid
ORDER BY total DESC; -
How can i use calculation from one sheet into another sheet in discoverer
I have a function which has to be used for several calcualtions in discoverer report.For each row the function is called 8 times, Is there any way that i can create a caculation based on the function in one tab and use this value returned by the function in the other tabs in the discoverer so that i can eliminte the function being called 8 times for each row.
Please help.Hi Lloyd ,
Thanks for the reply. See below for the detail explanation of what i am Talking about.
I am Developing a Operational Expense Report based on a Custom Table.
I get the following columns from the custom Table - Account, Amount Manual, Amount Local, Amount Overseas.
Then I have two Functions which Calculates two different Ratios Based on the other Custom Table.
1st function - Qualifying Sales Ratio
CREATE OR REPLACE FUNCTION xxwfs_avi_q_sales_ratio (p_period VARCHAR2)
RETURN NUMBER
IS
v_q_ratio NUMBER := NULL;
BEGIN
SELECT ROUND ((a.nonqualified_ar_amount / b.nq_nq_ar_amount), 4) qualifying_sales_ratio
INTO v_q_ratio
FROM (SELECT SUM(NVL(gp.total,0)) qualified_ar_amount
FROM xxwfs_gp_table gp
WHERE gp.company = 24101
AND gp.gtp_qualified = 'Q'
AND gp.org_id = 126
AND gp.gl_date >= p_from_date
ANDgp.gl_date <= p_to_period) a,
(SELECT SUM(NVL(gp.total,0)) nq_nq_ar_amount
FROM xxwfs_gp_table gp
WHERE gp.company = 24101
AND gp.gtp_qualified in( 'Q','NQ')
AND gp.org_id = 126
AND gp.gl_date >= p_from_date
ANDgp.gl_date <= p_to_period) b;
RETURN v_q_ratio;
EXCEPTION
WHEN OTHERS
THEN
v_q_ratio := 0;
RETURN v_q_ratio;
END xxwfs_avi_q_sales_ratio;
2nd Function - Nonqualifying Sales Ratio
CREATE OR REPLACE FUNCTION xxwfs_avi_nq_sales_ratio (p_period VARCHAR2)
RETURN NUMBER
IS
v_q_ratio NUMBER := NULL;
BEGIN
SELECT ROUND ((a.nonqualified_ar_amount / b.nq_nq_ar_amount), 4) nonqualifying_sales_ratio
INTO v_q_ratio
FROM (SELECT SUM(NVL(gp.total,0)) nonqualified_ar_amount
FROM xxwfs_gp_table gp
WHERE gp.company = 24101
AND gp.gtp_qualified = 'NQ'
AND gp.org_id = 126
AND gp.gl_date >= p_from_date
ANDgp.gl_date <= p_to_period) a,
(SELECT SUM(NVL(gp.total,0)) nq_nq_ar_amount
FROM xxwfs_gp_table gp
WHERE gp.company = 24101
AND gp.gtp_qualified is not null
AND gp.org_id = 126
AND gp.gl_date >= p_from_date
AND gp.gl_date <= p_to_date) b;
RETURN v_q_ratio;
EXCEPTION
WHEN OTHERS
THEN
v_q_ratio := 0;
RETURN v_q_ratio;
END xxwfs_avi_nq_sales_ratio;
The report is Run based on the parameter for the Range of gl_date.
I registered these functions in discoverer and passing the parameter values to calculate the ratios. The 2 ratios are just one time calculations for the range of gl_date the report is run.
The i mulitiply Qualifying Sales Ratio with the columns Amount Manual, Amount Local and Amount Overseas to get Qualifyied Amount Manual, Qualified Amount Local , Qualifyied Amount Overseas and the Nonqualifing Sales Ratio with the same Amount Manual, Amount Local and Amount Overseas columns to get NonQualifyied Amount Manual, NonQualified Amount Local , NonQualifyied Amount Overseas.
This is the design i am approching now. For each record the function is called 8 times to calculates the qualifying and Non qualifying Sales ratios Ato caculate the other 6 columns based on these Ratio Calculations.
So i was thinking if there is any way that i can get the Ratios for a specific date range in the First tab and usethe Value of the ratios in the other tab so that the function call is minimized.
Waiting for your replies. -
Need help to open a blob from a report into another tab or browser window.
Hello everyone.
I'm looking for a bit of guidance on something I'm trying to do in Apex.
I have a report that contains a blob. Users can click on the link to open it in same browser. I also know how to make it download if they click the link. But what I really want to do is to click the link and open the blob in another tab or browser window.
Thank you in advance for your help.
Dw
I should have noted I'm using version 3.2
Edited by: DW Brown on Feb 22, 2012 3:13 PMDW Brown wrote:
It becomes a link from the column format section..
DOWNLOAD:<tablename>:<column>:ID::MIMETYPE:FILENAME:LAST_UPDATE_DATE::inline:Click Here
So far I haven't found a way to use something link "target=_blank"One way would be to use a Dynamic Action to apply the <tt>target="_blank"</tt> attribute to each link, or convert them to use APEX pop-ups or a jQuery lightbox like fancyBox.
Create an example on apex.oracle.com if you need more assistance. -
Formula using results of 2 reports
Hello,
New to Crystal Reports... I have 2 existing reports, and I want to create a report that calculates a metric, using the results of the 2 reports, linked by the grouping that I used in each.
e.g.
- Report A from table 1 counts all shipments by date, grouped by month
- Report B from table 2 sums hours of network outage, grouped by month
I want to calculate (sum of hours outage)/(running total of shipments), and display graphically by month
Working with subreports, I have only been able to pass one single value to the main report, not all values by month to do the math
I would imagine this is a pretty simple task, I have done this using other tools, but have not found a simple way in Crystal Reports yet. Any help would be appreciated
Thanks,Asha,
Thanks, this is helpful. But when I create the shared variables, I am still only passing a single value to the main report (the most recent value of the variable). Each subreport contains formulas to calculate values I need and lists them against a date/time. e.g.
Subreport A calcuates outage hours, and shows what datetime the outage started:
Hrs DateTime
Subreport B shows total shipments by datetime:
CountShipments DateTime
Hrs and CountShipments are the shared variables.
I want to divide Sum(Hrs)/(CountShipments) and graph for each month.
Any method of doing this that you are familiar with? -
Excluding result of one report in another report.
Hell Experts,
We have two DSOs as below:
DSO1 - Contains Master list of customers
DSO2 - Transactions of all customer.
I want a report to show all customers who do not have any transactions.
So thought of come up with all unique set of customers from DSO2 then read the DSO1 exclude this list (using replacement path), but raised that exclusion is not possible in replacement path.
Is there a way I can do this in BEx.
Any thoughts in this regard of great help.
Regards,Hi,
The soultion for this is using variable with processing type replacement path to be replaced with query results.
See this link:
http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
HTH,
Marek -
Integrating Dashboard / Publisher report into another application
Hi,
We do have a requirement in one of our applications, which is on Tomcat server. Where in we need to integrate an existing Dashboard and Publisher report to this application.
And it should not be through GO URL, where i need to specify the username & password and presentation services tries to create new session each time the page is called.
Hope some one helps in guiding us to achieve this.
Thanks in Advance
Message was edited by:
Rajendra PVVaidya,
Let me rephrase what you are looking for...
1. You dont want to embed the Webdynpro link into the template but would rather embed it as an object
2. You want to run the web dynpro when the WAD page is launched...
This is for 7.0 right..?
As for embedding the web dynpro as an object as opposed to a link ...? any reasons why - is it because you dont want users to see the link in the HTML source ...?
Even if they do - I am not sure how web dynpros work ( rusty on that front ) but then you should get a session ID when you launch the web dynpro right ..? which would obviate any reasons for the users to see the link
Possibly have it included as a button using Javascript ..?
If you want the webdynpro to launch when the WAD runs - then you could have an onload function in javascript that can do the same.... -
Can i use output of one report in another report?? Pls help!
Hi Gurus,
I have a requirement where in i execute Report_1, inside that report_1, there is a pushbutton,
when i click on that, it executes Report_2.
My Report_2 creates some output xml and displays it too.
What i want is, i want to keep this output (xml) coming from report_2 and use it in my report_1
for further processing. Is it possible???
I donot know how it may work:
Approach1: Is it possible to take this output from report_2, place it in some sap directory server
as some file which is accessible for that session or client and then call it from report_1
Approach2: a tedious approach, to download this file using function modules, and then in report_1,
i can upload that file using the file path.???
Is there any other way? Is approach_1 possible. Coz i think that would be easier.
Pls help.
Thanks a lot,
RashmiHi Rashmi,
to best of my knowledge you are getting the data in to an internal table.
if this is right you can save this data either in ABAP or SAP memory
using EXPORT IMPORT or
SPA/GPA
this way you can use one program data in another.
hope this will serve your purpse.
Regards
Ramchander Rao.K -
Calling a report into another report
Hi,
I want to call report2(ALV) containg output table ITAB into report 1. How to write SUBMIT statement for this and how to bring ITAB into report1 from report2.Please help.
Thanks
VenkatHi,
Let..
Program A : ZAM_TEMP00
Program B : ZAM_Temp0
Program A will call B (In B we will get the contents of ITAB present in program A)
ZAM_TEMP00
report abc.
data : itab like table of t001 with header line.
select * from t001 into table itab.
export itab to memory id 'ITAB'.
submit zam_temp0 and return.
ZAM_TEMP0
report abc.
data : itab like table of t001 with header line.
import itab from memory id 'ITAB'.
Regards.
Nitesh -
Users , Fileservers and DFS root with DFS links in Domain A all work fine.
each users from Domain A have also credentials and passwords from Domain B
There is NO trust between Domain A and Domain B, both Domains are in different site connected with VPN-tunnel.
Projectdata is stored at fileservers in both Domains. Now DFS links are added in the Domain A to a fileserver from Domain B
When users from Domain A connects to fileserver in Domain B first he/she gets a prompt to authenticated, then DFS link to the fileserver in Domain B work.
When users just use DFS link they get a prompt "not accessible" + "Logon failure unknown user or bad password"
No prompt is given to users from Domain A to enter the credential for Domain B.
We cannot created a trust between these 2 Domains due other policy'sHi,
According to your description, there is no trust between domain A and domain B, right?
Based on my research, if there is no trust between domains/forests, then it is not possible
to share information across domain boundaries, because without trust, no authentication traffic can be passed across domain/forest.
That is why the user cannot access the file he has rights to access across domain.
Here is an article below for your references:
Trust Technologies
http://technet.microsoft.com/en-us/library/cc759554(v=WS.10).aspx
I hope this helps.
Amy Wang -
How to use one Web Dynpro DC into another Web Dynpro Dc
Hi All,
I am trying to learn the usage of DC but I am unable to find a basic tutorial on this topic. I found a few tutorial and few blogs too, but none of them explains topics like:
How to call child component methods from parent component and vice versa too if possible?
Can somebody please provide me with a basic tutorial on this topic.
Regards
SidHi,
Go through the Componentization tutorials
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/bd0e0401-0801-0010-aaab-d0e1742da383 [original link is broken]
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/751d003a-0b01-0010-8996-afbaa3fd5339 [original link is broken]
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#comp
Regards,Anilkumar -
Hello experts,
I found a expired user with SOD conflicts in "management summary" report format, but it doesn't exist in "Summary" report. You can find the screenshot in attached file. The user name is "YINPENG2_BK".
What happened? The result of different report formats are from different data source?
Sincerely yours,
LynnHi Lynn,
that's not an issue from the system. It's more a handling issue as the results are splitted into several result sets. In management summary view you have only one result set as it's grouped by user and risk, whereas you have more than one in summary view (as you have multple entries for each user and risk).
Change to the second, third, etc. result set and you will see the user in the list:
Regards,
Alessandro -
Download report into a flat file format
Hi Friends,
I would like to know your thoughts on what is the best practice most of you using to download a report into a flat file(NOT csv).
In my application business users want a report to be downloaded into their local desktop (just like a .csv) but into a flat file and they have their byte specific format.
My concerns :
1) Is there any straight method to download a report into a flatfile (like it is now for CSV) from Apex 3.1.2 ?
2) If I write my own code using UTL_FILE, can I let the user to save them to their desired directory on their desktop ?
Your thoughts would definitely help me in delivering a right solution to the users in this regard.
Thanks a lot.
Raj.Raj:
You could create a 'Before Header' page process to create this 'flat file'. The code for the page process will be something similar to declare
v_file_name VARCHAR2 (2000) := 'fixedFieldsFile.txt';
--- Client Record Format
f1 char(20);
f2 char(20);
f3 char(20);
---- End format
begin
OWA_UTIL.mime_header ('application/txt', FALSE);
htp.p('Content-Disposition:attachment;filename="'|| v_file_name|| '"');
OWA_UTIL.http_header_close;
for c1 in (select * from emp) loop ----- The report query
f1:= c1.empno;f2:=c1.ename;f3:=c1.sal;
htp.p(f1||f2||f3);
end loop;
apex_application.g_unrecoverable_error:=true;
exception when others then
null;
end; Varad
Maybe you are looking for
-
How to keep entire photo library on ext drive and only slideshows on laptop
I recently did an erase/install upgrade to Tiger on my g4 powerbook laptop. My previous iPhoto 4 library is safely backed up on an external drive. I would like to keep the entire library on that drive and import new photos only to that drive and edit
-
Java.awt.Toolkit.getScreenSize()
Hello again world. I'm a little confused here. I have these two lines in a program: Toolkit tKit = Toolkit.getDefaultToolkit(); Dimension size = tKit.getScreenSize(); Reading the API, I notice that "getScreenSize()" is declared abstract. I was under
-
What the hecks wrong with my click wheel
O.K. so every time i turn my ipod off i can hear the click wheel. For example I just randomly spin my click wheel (whene the ipods off) and i hear the clicking noise. Whats wrong with it
-
Address book : provide contact list import/export from other software
There should be an easy way to import contact information from Gmail accounts, Hotmail, and so forth. They're providing efficient ways to export their database, so it shouldn't be too hard for developers to add this usual feature. I would agree that
-
Can't download the mavericks in app store what should i do?
Hi! I've downloaded mavericks in app store twice now. But looks like it's not downloading or not reflecting or showing in purchases or in my downloads. What should I do? I've tried downloading it with safari and chrome. Please help. Julie