Multiple db connections for one report
Hi all,
I am using Oracle Reports 10g R2. Could someone tell me if Oracle Reports supports multiple database connections for one rdf file, like this (using servlet)
http://your_web_server:port_num/reports/rwservlet?server=server_name&report=myreport.rdf& userid1=username/password@my_db1&userid2=username/password@my_db2 &desformat=pdf&destype=cache
I am asking this question because my report needs data from two separate Oracle databases.
Edited by: user12239004 on Apr 27, 2010 2:14 AM
No, you can only have one login.
However, this is simple to resolve by creating a database link in one database to the other database.
Similar Messages
-
Multiple output files for one report
I would like to dump out multiple files (PDF and delimited) from one single report refresh.
I'm using rwcli60. How do I do this ?Hi
Thanks for the information. Its nice to know.
However, if I understand it correctly, it is basically for directing the same report output to different targets.
For me, it may be the same report, but the output will be different based on some logic I have in the before report trigger. For me it is like running the report 3 times.
Example - From parameter screen - one parameter with 4 options
1. Top 10 students in IT
2. Top 10 students in Fin
3. Top 10 students in Acc
4. All
The output of these report may come from the same table. But the criteria is set in the lexical parameter in the before report trigger.
If user selects all, I want the output for the all the first 3 options. I am not worried about the output being emailed. This is equivalent to running the report 3 times for the first, second & third option respectively.
Any help helps:). -
Multiple Physical SQL for one report
Hi,
Can someone please explain me why i am seeing multiple physical Queries generated for a single report.
Please find below the physical sql.
select sum(T314772.MONTHLY_BUDGET_AMT) as c1,
T157680.NAME as c2
from
W_PARTY_D T157680,
XXKC_CUSTSITE_SHIPTO_BUDGET_F T314772 / Fact_XXKC_CUSTSITE_SHIPTO_BUDGET_F */*
where ( T157680.ROW_WID = T314772.CUSTOMER_WID )
group by T157680.NAME
and
select sum(case when T97600.W_XACT_TYPE_CODE = 'Chargeback' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE end ) as c1,*
sum(case when T97600.W_XACT_TYPE_CODE = 'Credit Memo' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE end ) as c2,*
sum(case when T97600.W_XACT_TYPE_CODE = 'Debit Memo' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE end ) as c3,*
sum(case when T97600.W_XACT_TYPE_CODE = 'Standard Invoice' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE when T97600.W_XACT_TYPE_CODE = 'Invoice Cancellation' then T93664.NET_AMT * -1 * T93664.GLOBAL1_EXCHANGE_RATE end ) as c4,*
T157680.NAME as c5
from
W_PARTY_D T157680,
W_SALES_INVOICE_LINE_F T93664 / Fact_W_SALES_INVOICE_LINE_F */ ,*
W_XACT_TYPE_D T97600 / Dim_W_XACT_TYPE_D_Sales_Ivclns */*
where ( T93664.CUSTOMER_WID = T157680.ROW_WID and T93664.XACT_TYPE_WID = T97600.ROW_WID and T93664.DELETE_FLG = 'N' )
group by T157680.NAME
please let me know the reason and how to control this kind off behaviorCombined request is like, within a report you can create multiple requests. You can either use it in case of combining different subject area or within the same subject area and in same report when different filters apply.
For example
Fire Marine Motor
State No. Amt. No. Amt. No. Amt.
Andra Pradesh 10 |20000 11 |100000 20 |200000
TamilNadu 11 |40000 10 |120000 20 |200000
The first request is for Andra, so we will apply the filter as 'state is equal to in 'andra pradesh''. We specify filter(No using Product_code in 'Fire') in the column formula. Then there is an option as 'combine' by which u create another request and now the filter is 'state is equal to in 'Tamil Nadu''. So when you execute the report, it will generate you two different queries.
Regards,
Anitha.B -
Multiple (mail) destinations for one report using distribution list
I would like to email a report to multiple destinations using a distribution list.
Environment:
Oracle reports: 10.1.2.3
OS: Windows 7
Database:Oracle 11g(11.2.0.2)
This is the content of the distribution file:
<destinations>
<foreach>
<mail id="a1" from="[email protected]" to="&<mail_to>" subject="Invoice">
<body srcType="text" format="ascii">Invoice attached
</body>
<attach srcType="report" name="invoice.pdf" format="pdf" instance="this">
<include src="report"/>
</attach>
</mail>
<mail id="a2" from="[email protected]" to="[email protected]" subject="Invoice sent to &<mail_to> ">
<body srcType="text" format="ascii">Attached invoice was sent to the customer
</body>
<attach srcType="report" name="invoice.pdf" format="pdf" instance="this">
<include src="report"/>
</attach>
</mail>
</foreach>
</destinations>
When I run this using the following URL:
http://testserver.our_servers.local:7778/reports/rwservlet?server=rep_dev&report=VKR0030.rdf&userid=myuser/test123@ORCL&distribute=yes&destination=VKR0030.xml&onfailure=rollback&onsuccess=commit
I get the following error: REP-34304: Distribution failed to complete, please review the distribution lists
When I remove one mail element, it works fine.
One mail tag with multiple email addresses in the "to" parameter isn't possible because I have to use 2 different mail templates(subject and body differ).
According to the documentation(https://docs.oracle.com/html/B14048_02/pbr_dist.htm#i1005830), it should be possible to use multiple mail elements.
Required/Optional
Optional. You can have as many mail elements as you require.
What am I doing wrong?Found the solution.
When putting each mail element in a foreach, it works. -
Is it possibel to create one connection [pool for one report only
Hi is it possibe to create one connection pool for one report only. Others report are running from the another connection pool under same DB.
Thanks,Hi,
Why do u want seperate connectionpool for that single report?
I dont think its possible.Direct database request will be good solution for this.Try importing those columns which are used to build that report into physical layer and create new subject area.Not sure weather its right way to do.
Regards,
Srikanth -
Exporting to multiple PDF's from one report
I have a requirement to create multiple PDF's from one report.
My thought is that I can I can create a foreach loop that cycles through one of my groups. I would then like to have each file have the name of that group.
If anyone could help me on how to code this in C# that would be great. I need to know where I should be putting this code (program.cs or crystalreport.cs) and how I run it. I am assuming I don't need the viewer for this function, since this is all on my end and no users need to have access to it.
My other requirement is to have each of these reports be put into their own folders at C:\. Thanks for the help in advance!OK. Yup, you should be able to do this. When I was reading the initial post it looked like you might have ben wanting to export only a certain section of a report (which is a no go).
Anyhow, first thing you want to do is apply Service pack 3:
https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
Next, you want to look at a few sample apps and go over some docs. What you want to achieve can be done by using parameters or selection formulas.
A good coding resources is the [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]. Don't worry about the title, it will apply to CR 2008 also.
Next, sample apps can be downloaded from here:
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
[CR 2008 developer library|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm]
[API reference|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
Not sure if you are thinking of this being a web app, but here are some resources for that:
[Interactivity and Reports in Web Applications|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427&overridelayout=true]
Before starting your project, you should have a look at [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7] to make sure you are using the right SDK for your purposes.
Finally, the following are links to 3rd party resources and I'm adding htese just as an FYI:
http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
http://msdn.microsoft.com/en-us/magazine/cc301570.aspx
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
Multiple free goods for one item in standalone CRM
Hi Gurus,
We are trying to implement multiple free goods for one item in standalone CRM.
As per SAP.help.com, it says that we can configure multiple free goods scenario in standalone CRM system.
We tried to set up this in our system. Basically we want to implement the scenario, where a user wants to purchase item A, he should get a prompt for choosing between two free goods B and C.
We did the relevant IMG settings required for Free goods at IMG ->CRM -> Basic Functions -> Free Goods.-> Set up Free Goods
We also did the relevant item category determination where we have made an entry with
Item Usage = " Free Goods" , Main item cat. = "TAN' , Item Category = "TANN".
Now we went to create condition records in the path "SAP Menu -> Master Data -> Prices and Conditions -> SAPCND/GCM - Maintain condition"
We chose Application ="PRT", MaintenanceGrp="PRT_FGOODS", Maintenance context ="GCM"
Then while creating conditon records , when I try to create two condition records where the Main Product is same but free good product is different, the system is not allowing to save these two condition records.
it is giving error "Overlapping validity periods for two condition records".
Please advice, if i am missing something. Thanks in advance for your help.
thanks,
Randhir
Edited by: Randhir Soni on Feb 8, 2010 8:12 AMConstraints in free goods in R3 taken from SAP library
Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: u2018With material 1, material 2 and material 3 are free of chargeu2018 or u2018If material 1 and material 2 are ordered at the same time, then material 3 is free of chargeu2018.
Free goods are not supported in combinations with material structures (for example, product selection, BOM, variants with BOM explosion).
Free goods are only supported for sales orders with document category C (for example, not quotations).
Free goods are not supported for deliveries without reference to a sales order.
Free goods cannot be used in make-to-order production, third-party order processing and scheduling agreements.
If you defined a free goods for variants in a generic article (only SAP Retail), you can only process the variants in the purchase order and goods receipt individually (as single articles). In other words, you cannot process them using the generic article matrix.
This answers your qn Not possible in R3
If you are on Retail scenario this is possible thro bonus buy schemes
But a lot of customizations needs to be done and you need a retail server to do that
Regards
Raja -
Multiple free goods for one main material
Hello SAP Gurus,
we have a business requirement that to issue multiple free products for one main product, if the upliftment is beyond the specified quantity.
Using free goods functionality, is it possible to achive the above requirement.
e.g Quantity
main product 123456 10
free goods xxxxx 2
free goods yyyyy 1
is it possible to maintain such data thru free goods or any development needs to be done.
regards
CasimerConstraints in free goods in R3 taken from SAP library
Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: u2018With material 1, material 2 and material 3 are free of chargeu2018 or u2018If material 1 and material 2 are ordered at the same time, then material 3 is free of chargeu2018.
Free goods are not supported in combinations with material structures (for example, product selection, BOM, variants with BOM explosion).
Free goods are only supported for sales orders with document category C (for example, not quotations).
Free goods are not supported for deliveries without reference to a sales order.
Free goods cannot be used in make-to-order production, third-party order processing and scheduling agreements.
If you defined a free goods for variants in a generic article (only SAP Retail), you can only process the variants in the purchase order and goods receipt individually (as single articles). In other words, you cannot process them using the generic article matrix.
This answers your qn Not possible in R3
If you are on Retail scenario this is possible thro bonus buy schemes
But a lot of customizations needs to be done and you need a retail server to do that
Regards
Raja -
Creation of multiple cost center for one emplyee
HI All,
I have requirement . one emplyee is working two projects so need create two cost centers for one employee.
please tell me how create multiple cost center for one employee.
Thanks&Regards
rameshhai.
if he works half the time... u can give 50%.. or just get it confirmed from core team member..
manu -
Manual bypass to view all history entries of all user for one report
Test have been performed on standealone BIP 10.1.3.4.1 (Patch 11931697). May be it can be reproduced with previous versions and/or other J2EE container.
Problem is now described in Oracle Support with bug ID : 12412334
Bypass solution may be helpful for people who use work directly in BIP web interface or who integrate this web interface using HTTP URLs or HTTP/REST like custom app (and may be other cases...)
When logged with an admin username, you can view OR filter "ALL" history of one all users for one report by typing an url like :
http://BIP/xmlpserver/servlet/reporthistory?report_url=/REPORT_DIR_PATH/XDO_NAME/XDO_NAME.xdo&tfilter=all
Where :
BIP is BIP Server DNS
REPORT_DIR_PATH is report directory path in BIP web interface
XDO_NAME is report's nameI don't think there is a way. There should be, but I've never seen it.
-
Show or view multiple album art for one song on iPhone 4?
Is it possible to show or view multiple album artwork for one song on an iPhone 4, especially on the now playing screen? I figured since iTunes has this feature then the iPhone should too. Can I download an app that does this? I've searched but couldn't find any, maybe I'm using other keywords. Could anyone point me in the right direction with this?
Darn. I hope an app is designed to be able to do this soon. From what I've seen this feature isn't really in demand so it could take a while. Thanks for replying.
-
Connection Pool - unable to establish connection for one or more OC4J inst.
Hi.
I'm using Oracle JDeveloper 10.1.3.1 to develop some app. Database is Oracle XE 10.2.0. Application server is Oracle Aplication Server 10.1.3.1
After create a needed code, I' v tried establish Connection Pool. When I' v tested connection, next errors was occurred:
Unable to establish connection for one or more OC4J instances<<
Home on admin.FRIEND-6843859F - Failed due to error: "Exception occurred testing connection. Exception: java.sql.SQLException: invalid arguments in call."<<"FRIEND-6843859F " is Computer name where Application server is installed.
--Database is started.
--App.server processes are started.
How can I solve this problem?
ThanxIf you are using ADF "BC" Jdev will not support more than one connection
I've tryied and always gives a errors. -
Multiple Lease Duration for one DHCP Scope?
Hi All,
I have an urgent question. I wanted to know if it is possible to have many lease durations for different computer groups getting their addresses from one DHCP scope. I saw somewhere that it is possible to use User Classs or Vendor Classes for setting a lease
duration for a group of computers sharing the same class Id ?
If it is true, How can to configure ?
Also i would like to know about the lease duration period what is the maximum days can we have ( 8 days After )?
Thanks
AtulPlease refer to the following-
http://social.technet.microsoft.com/Forums/windowsserver/en-US/26de79f9-6ad7-4088-9077-006b9dd8c1fb/multiple-lease-durations-for-one-dhcp-scope?forum=winserveripamdhcpdns
You can configure any value as lease duration; however if you want a very big/infinite value; it makes sense to convert the lease(s) to a reservation. -
Multiple component instances for one component usage
Hi,all
How can I create multiple component instances for one component usage.
I'm using the following code for creating a single component instance for specific component usage:
if(c_Usage.hasActiveComponent())
c_Usage.deleteComponent();
if(wdContext.currentContextElement().getSelectedTab().equalsIgnoreCase("Registered"))
c_Usage.createComponent("health.gov.registered.Registered";);
I can't create one more component instance for
IWDComponentUsage c_Usage
cause I have to delete the component instance associated with this component usage.
Any idea how can I do it anyway?
Regards,
MichaelHi,
To create another instance of the same component you need to embed the same component under the Used Components more then once. For Example if you have Componet A to which you want to embed Component B then under "Used Components" of Component A add component B twice. -
Reporting out multiple lookup rows for one fact row. NON-Aggregating
Hi,
I have a situation where I have multiple Look Up rows for one fact row. I want to report them out so that I get One row with the Look Up and Fact information in it and the next row with Just the Look Up information in it.
The version of Oracle I'm using is 9.2.0.6.0.
Look Up Table
Deal Order Number Partial Order ID INVENTORY_ITEM_ID MANUFACTURER_DESCRIPTION
639416-1 1 43601 Check Point
639416-1 1 98809 Nokia
637260-1 1 56657 IBM
637260-1 1 35467 QuantumFact Table
Deal Order Number Partial Order ID Cost
639416-1 1 3825.3
637260-1 1 3610.8Desired result:
Deal Order Number Partial Order ID MANUFACTURER_DESCRIPTION Cost
639416-1 1 Check Point 3825.3
639416-1 1 Nokia
637260-1 1 Ibm 3610.8
637260-1 1 QuantumBasically I'd like the ability to report out every row of my report with the first row containing the Fact Data and then the following rows containing the Look Up data that are also associated with that fact column but not report the data.
I'm doing this because there's Grand totaling at the bottom of the report that I don't want to mess with.
Plus instead of concatenating the Look Up values together, I need to show them in their own cells in their own rows for view ability.
I think an Analytic function might take care of this but I'm not sure how. Can anyone help?
Thanks in Advance!Hi,
Join the two tables as you normally would.
You're right about analytic functions being useful. The anaylytic ROW_NUMBER function can number each row of the join, with a separate count for each unique id from lookup.
Use a CASE statement to display certain items from fact when ROW_NUMBER retuns 1, and hide them otherwise.
SELECT f.order_number
, f.partial_order_number
, l.manufacturer_description
, CASE
WHEN ROW_NUMBER () OVER
( PARTITION BY f.order_number
, f.partial_order_number
ORDER BY l.manufacturer_description
) = 1
THEN cost
END AS cost_col
FROM fact f
JOIN lookup l ON f.order_number = l.order_number
AND f.partial_order_number = l.partial_order_number
ORDER BY f.order_number
, f.partial_order_number
, l.manufacturer_description
;
Maybe you are looking for
-
I have in recent months recreated my iTunes library, in iTunes 11, partly from backups from older libraries and partly with higher quality rips from CD. In the various views, everything looked great and organized. All songs neatly grouped in their Al
-
I have just purchased Photoshop CS6 extended and though Adobe Bridge is installed, I cannot get it to open within or outside of CS6. I have 64 bit Windows 7 and I can see that the Bridge software is installed and CS6 is working fine. It keeps on sayi
-
OneDrive Sync Settings with Domain Account Roaming Profile
This question seems to have been asked in various manners online including here at TechNet but it has never actually been answered that I can find. Home domain using Windows Server 2012 R2 Essentials, client is Windows 8.1 Pro 64-bit with Update 1. L
-
Memory problems in 10.4.6
I have 1 GB of RAM as you can see and I noticed a significant speed difference so I opened Activity Monitor and I get good CPU speed and everything. But my RAM is basically eaten up. Here is what it looks like. Ok so if you can't tell I have: 83.98 W
-
Hi everybody: I am new in PHP and want to use my best editing friend Dreamweaver. But I need a communty that helps me about PHP (with or without DW help because I think I know DW well enough after 7 years using that). Do you know any good PHP communi