Out standing MIS Report query problem.
Hi,
We designed MIS Report for outstanding mis through Crystal report.here we are facing probleme.ex:AR invoice raised on 01 Jan 09 bill amount 1000 and for this client is received full amount against that bill on 04 march09.in this report we provided parameters for from date and to date. When user selected in parameter from date 010109 to 050309 it will show pending amount is 0.but users are asking if they select from date upto 030309 means it will show pending amount should be show 1000.in this query we are retrieving based on document status when open. How we can show report for this requirements. Please guide me.if we give docstatus='O' or docstatus= 'C' it's showing but pending amount =Bill amount - paid amount here it's showing 0 i think here also we need to pass incoming payment docdate.how wen do please guide me.
below this is the query.
set @FromYear=case when month(@ToDate)>=1 and month(@ToDate)<=3 then Year(@ToDate)-1 else Year(@ToDate) end
set @ToYear=case when month(@ToDate)>=1 and month(@ToDate)<=3 then Year(@ToDate) else Year(@ToDate)+1 end
--select @fromYear,@toyear,@todate,@ProjCode,@Cardcode,@VoucherType,@GroupName
select a.u_category,a.docdate,g.name,d.CardCode,d.cardname,e.GroupName,SUBSTRING(CONVERT(VARCHAR(11), a.docdate, 113), 4, 8)as Month of invoiceraised,
b.seriesname,a.docnum,a.Project,0,a.doctotal,
paidamount= case when a.paidtodate is NULL then 0 else a.paidtodate end,
pendingamount= case when isnull(a.doctotal,0)-isnull(a.paidtodate,0) is null then 0 else isnull(a.doctotal,0)-isnull(a.paidtodate,0) end,
case when year(a.docdate) = @ToYear and month(a.docdate) = 3 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as March ,
case when year(a.docdate) = @ToYear and month(a.docdate) = 2 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Feb,
case when year(a.docdate) = @ToYear and month(a.docdate) = 1 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Jan,
case when year(a.docdate) = @FromYear and month(a.docdate) = 12 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Dec,
case when year(a.docdate) = @FromYear and month(a.docdate) = 11 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Nov,
case when year(a.docdate) = @FromYear and month(a.docdate) = 10 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Oct,
case when year(a.docdate) = @FromYear and month(a.docdate) = 9 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Sept,
case when year(a.docdate) = @FromYear and month(a.docdate) = 8 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Aug,
case when year(a.docdate) = @FromYear and month(a.docdate) = 7 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as July,
case when year(a.docdate) = @FromYear and month(a.docdate) = 6 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as June,
case when year(a.docdate) = @FromYear and month(a.docdate) = 5 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as May,
case when year(a.docdate) = @FromYear and month(a.docdate) = 4 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as April,
--case when a.docdate = (select f_refdate from ofpr where year(f_refdate)=year(a.refdate) then a.doctotal-c.paidtodate else 0 end as Pre-Yr
nodocsum=isnull(f.nodocsum,0),0 as PreviousFY
from oinv a
left join nnm1 b on a.series=b.series
inner join INV1 c ON a.DocEntry = c.DocEntry
inner join OCRD d ON d.CardCode=a.CardCode
left join ocpr g on g.cardcode=d.cardcode
Inner join OCRG e on e.GroupCode=d.GroupCode and e.grouptype='c'
LEFT JOIN ORCT f ON a.DocEntry = f.DocEntry
where
a.docstatus='O' and
case when a.doctotal-a.paidtodate is null then 0 else a.doctotal-a.paidtodate end >= 0
Reds,
Sampath kumar devunuri.
Hi,Gordon Du ,
We are designing through Crystal reports 2008 only. Based on SQL query how we can maintain History of Document status and date in table. Please give me your advise how we can rectify this problem. Kindly find above query.
Regds,
Sampath Kumar.
Similar Messages
-
Printable Report Query Problem
I am attempting to develop a printable report query. I have created a report query under shared components that consists of 12 separate queries that gather data that all relates to a single page item. The intent is to create a printed PDF document for the user on demand that will display all this information about the page item that they have selected.
The report query gathers the information and generates an XML file in the following format.
<DOCUMENT>
<ROWSET1>
<ROWSET1_ROW>
*Data from query 1*
</ROWSET1_ROW>
</ROWSET1>
<ROWSET2>
<ROWSET2_ROW>
*Data from query 2*
</ROWSET2_ROW>
<ROWSET2_ROW>
* Data from query 2*
</ROWSET2_ROW>
</ROWSET2>
<ROWSET3>
<ROWSET3_ROW>
* Data from query 3*
</ROWSET3_ROW>
<ROWSET3_ROW>
* Data from query 3*
</ROWSET3_ROW>
</ROWSET3>
</DOCUMENT>I then took this XML file and developed an RTF template using BI Publisher desktop and imported it as a Report Layout.
I then connected this RTF layout to the report query and ran it. I did not get the all the data to print.
I found the reason it did not work was that the XML file that is generated from the report query is not static. The next XML file that was generated from the report query looked like this:
<DOCUMENT>
<ROWSET1>
<ROWSET1_ROW>
* Data from query 3*
</ROWSET1_ROW>
<ROWSET1_ROW>
* Data from query 3*
</ROWSET1_ROW>
</ROWSET1>
<ROWSET2>
<ROWSET2_ROW>
* Data from query 7*
</ROWSET2_ROW>
<ROWSET2_ROW>
* Data from query 7*
</ROWSET2_ROW>
<ROWSET2_ROW>
* Data from query 7*
</ROWSET2_ROW>
</ROWSET2>
<ROWSET3>
<ROWSET3_ROW>
* Data from query 1*
</ROWSET3_ROW>
</ROWSET3>
</DOCUMENT>So I cannot develop an RTF template to display the data if I do not know where that data will appear in the generated XML.....
Questions (I will offer several POINTS to anyone who can answer any of these questions!!!!)
I am using APEX version 3.1
*1. Why does the report query seem to randomly renumber and reorder the XML data it produces?*
*2. Is there any way to make the report query output the XML data in the same order that the individual queries are ordered every time?*
*3. Is there any way to specifically name the rowsets or rowset rows that is supported by APEX?*
*4. Are there any other methods that I can explore to produce this report?*
*5. Is this a problem because I am on an old release? Is this not a problem on 4.1?*
Edited by: bhenderson on Feb 1, 2012 8:22 AMThanks for your response.
There are 12 separate queries in the report query. Each one is in a separate box on the report queries screen.
I don't know how to post an image here, but I will try to describe it:
The first query selects several fields relating to :P5_WIP_ENTITY_ID, which is a Work order. This query is header information about the job and should only return one row.
The other queries get other information relating to :P5_WIP_ENTITY_ID, like part numbers that may have been issued to that job, purchases made for that job and so on. These queries may return more than one row or may not return anything.
I have created the queries in the order that I want them to display on the form, however, when the XML is generated, ROWSET1 may have the data from the Header Query one time, then the next time it may have data from the purchase query. In other words, it does not display the data in the order that the queries appear on the report query page, and it seems to reorder the output at random.
I have looked everywhere I could think of, but there doesn't seem to be any way of connecting or relating the separate queries. I also tried doing separate queries in one box and joining them, but there is a limit of 60 data items you can select from one query box.
Edited by: bhenderson on Feb 3, 2012 10:01 AM -
Report Query Problem/Question
I have 3 tables:
Table one - Recipe
PK varchar2(100) (yes, I know it isn't a number, but I had to put a 'CPL' in front of each sequence)
RECIPE_NAME varchar2(250)
Table two - Ingredients
PK varchar2(100) (same reason as above expect needed a 'P' in front of each sequence)
INGREDIENT_NAME varchar2(250)
PRICE number
Table three - Lkup_recipes
PK number
RECIPE_PK varchar2(100)
INGREDIENT_PK varchar2(100)
QUANTITY
So, table one contains data like this:
CPL1234 'APPLE PIE'
CPL1256 'PIE CRUST'
table two contains data like this:
P1234 'FLOUR' 5.00
P1256 'EGG' 2.56
P1278 'WATER' 0.00
P1312 'APPLE' 0.50
table three contains data like this:
1234 CPL1234 CPL1256 2
1235 CPL1234 P1312 5
1236 CPL1234 P1234 1
1237 CPL1256 P1234 1
1238 CPL1256 P1278 3
Now, I have a report that shows the RECIPES with their price. I am having problems getting the proper price, based on the data above, since my recipe, Apple Pie, contains ingredients as well as the recipe, Pie Crust.
I would expect the price of my pie to be: $17.50 but I am only getting a cost of $7.50.
The query I am currently using is:
select t1.pk, t1.recipe_name, sum(t2.price * t3.quantity) Price
from recipe t1, ingredients t2, lkup_recipe t3
where t1.pk = t3.recipe_pk
and t2.pk = t3.ingredient_pk
group by t1.pk, t1.recipe_name
Obviously it isn't tracking down beyond the recipe, Pie Crust, to determine its' cost based on the ingredients contained in it.
Any ideas out there on how to get my full price?
Thanks!!
ChrissyHi Chrissy, <br>
Your problem is that while you put "Pie Crust" as an ingredient in the apple pie, It is not also in the ingredients table. Heres an option:<br>
run a batch job that looks at the ingredients table and finds all of the ingredients that are actually recipes. Have it calculate the cost of these "sub recipes" and insert them in the ingredients table along with their cost. <br><br>
While this will get you around your problem, I dont think it is a good solution. You should rework your data model to be more versatile to include sub recipes OR you can simply alter your application to not use sub-recipes at all (instead just re-list all of the ingredients).
<br><br>
Let me know if you need any advice.
<br>
Dave<br>
Lehr.ServeHTTP.com -
Dear members
I am using reports 6 and oracle 9i. I am trying to create a matrix report in which i want to show products as rows and dates as columns. Dates should be fixed 7 days any from to dates given by user. I have used two tables prd_plan_m and product_code. I want to show plan_no and plan_qty based on product_code and date. I want to show all the products as rows whether it has plan or not and 7 days columns shows as heading weather in this there is any plan or not.
For this reason i have made this query.
SELECT ALL p.code,pkg_prod.get_prod_name(p.code)prod_name,pkg_prod.get_prod_qty(p.code)prod_qty,P.PLAN_ID, P.PLAN_DESC, a.dates,
P.PLAN_QTY, P.UNIT_ID, P.REMARKS
FROM PRD_PLAN_M P ,(select rownum - 1 + to_date('20-jul-08', 'dd-mon-rrrr') dates
from all_objects
where rownum < to_date('26-jul-08', 'dd-mon-rrrr') -
to_date('20-jul-08', 'dd-mon-rrrr') + 2)a
where P.PLAN_DATE(+) = A.DATES
UNION
SELECT E.P_CODE,E.PROD_NAME,E.PROD_QTY,null,null,null,null,null,null FROM PROD_CODE E
But this query shows duplicates rows. suppose one product_code in prd_plan_m has plan_qty shows one row and the row from product_code table also show the same row which have no plan qty.
Help me in this regard.
I will be very thankful to you .
thanks and regardsThanks for reply. But this query is also produce the same results see bellow output.
CODE PROD_NAME PROD_QTY PLAN_ID PLAN_DESC DATES PLAN_QTY UNIT_ID REMARKS
0101 MOUNTAIN DEW 225 ML NR
0201 PEPSI MAX 240 ML
0301 PEPSI 250 ML P0001L01 TEST PLANE-01 7/21/2008 20000 1 test
0301 PEPSI 250 ML
0302 MOUNTAIN DEW 250 ML P0005L02 NEW ENTRY 7/26/2008 20000 TEST
0302 MOUNTAIN DEW 250 ML
Code 0301 and 0302 are repeated. But they should be shown only once. Please help me to resolve this problem.
thanks & regards -
I have a query with sbo:
SELECT T0.DocNum, T0.ItemCode,t0.duedate,T0.PlannedQty, T0.OriginNum as Sale-Order, T0.U_Doc_Remarks,t2.numatcard FROM OWOR T0 left join OITM T1 ON t0.itemcode = T1.ITEMCODE left join ordr t2 on t0.originnum = t2.docnum where T0.OriginNum = '[%0]'
but in XL Reporter, How do I set up? OWOR_OriginNum Equal SO_DocNum and OWOR_OriginNum as a paramXL Reporter does not support SQL. All its meta data have been predefined in the system. You may not have left join option at all.
Try some other tools such as Crystal Report or Query PLD.
Thanks,
Gordon -
Recurring problem - need to touch report query to make page to work again
Hello
In my APEX 3.0 (Oracle 10.2.0.3.0) application I have a main menu which is a very simple page with one report that selects from a local table (no dblink) what pages the logged user has access to.
The problem is that now and then (around once a week) users get "page not found" after they log in to the application but before the main menu is displayed. After some testing I found out that, to fix it, I need to touch the report query (let's say, adding an extra space somewhere) and apply changes. After that, the page works fine...
I have other much more complex pages in the application that don't have such problem.
Any advice? Where should I start investigating to fix this?
Thanks
Luis
PS: From the error_log file:
[Mon Aug 20 10:12:54 2007] [error] [client 10.0.10.87] [ecid: 11877561:10.0.24.16:14092:0:37471,0] mod_plsql: /pls/apex/f HTTP-404 ORA-03113: end-of-file o
n communication channel\n
[Mon Aug 20 10:12:54 2007] [alert] [client 10.0.10.87] [ecid: 11877561:10.0.24.16:14092:0:37471,0] mod_plsql: Unable to reset state for mode 0: Err 3114 url=>/pls/apex/fi have this exact same problem in our production environment
i really need help to fix it or we'll lose our major client
they're fed up with it
anyone? -
Performance problem with report query
Hi,
I am encountering a performance issue with a page returning a report.
I have a page that has a region which joins 2 tables. One table has about 220,00 rows, while the other contains roughly 60,000 rows. In the region source of the report region, the query includes join condition with local variables. For example, the page is page 70, and some join conditions are:
and a.id=:P70_ID
and a.name like :P70_NAME
I run the query that returns a large number of rows from sqlplus, and it takes less than 30 sec to complete.
When I run the page, the report took about 3 minutes to return.
In this case, :P70_NAME is initialized to '%' on the page.
I then tried to substitute variable value directly in the query:
and a.id=1000
and a.name like '%'
this time the report returned in about 30 sec.
I then tried another thing which specified the region as "PL/SQL Function returning sql query", and modified the region as follows:
l_sql := '.......';
l_sql := l_sql || 'and a.id=' || v('P70_ID')
and similar substituting :P70_NAME to v('P70_NAME') and append its value to the l_sql string.
The report query page also returned in 30 sec.
Is there any known performance issue with using the bind variable (:PXX_XXX) in the report region?If you are able.. flush the shared_pool, run your
report then query the v$sql_area or v$sql_text tables.
Or do a google query and look up Cary Milsap's piece on enabling extended trace .. there is your sure fire way of finding the problem sql. I am still learning htmldb but is there a way to alter session enable trace in some pre-query block? -
How to find out source qurey or query view from portal report.
Hi mates.
we are using portal to display our report online. I want to kind out from portal Reports (charts or table) , which are queries or query view is used for display those portal charts or tables.we are using Lotus notes to publish web reports in Portal.
Regards.
hariHello,
Check these tables:
VARI ABAP/4: Variant storage (similar to INDX)
VARICON Selection variants: Content
VARICONCI Selection Variants: Content (Cross-Client)
VARID Variant directory
VARID_CI Variant Catalog, Cross-Client
VARIDESC Selection Variants: Description
VARIDESCCI Selection Variants: Description (Cross-Client)
VARINUM Internal number assignment for variants
VARIS Assignment of variant to selection screen
VARIS_CI Assignment of Variant to Selection Screen
VARIT Variant texts
VARIT_CI Variant Texts, Cross-Client
VARK Delivery Plan: Customer-Specific Itinerary
VARZ Delivery Plan: Zone-Specific Itinerary
If useful reward.
Vasanth -
Trying to get a refund on an app that do not work, but the report a problem button is grey out
Hi
I'm trying to get a refund on an app that do not work, but the report a problem button is gray out & Apple wants £20.00 for support
where do I go from here
ThanksTo report a problem less than 90 days:
http://reportaproblem.apple.com
Sign in with the AppleID and Password used for the purchase.
How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
http://support.apple.com/kb/HT1933
To report a problem greater than 90 days:
http://www.apple.com/support/itunes/store -
Whether any Standard Bex query for MIS report of PP in BW
Dear All,
Please let me know , Whether any Standard Bex query is available for MIS report of PP in BW.
Thanks
Regards,
Sai.Dear All,
Please let me know , Whether any Standard Bex query is available for MIS report of PP in BW.
Thanks
Regards,
Sai. -
every version of firefox 6 won't open, I just get that crash report. Every time this has happened I reinstall firefox 5 which works fine. Anybody out there have a similar problem, any help would be appreciated
I had this issue. I went to c:\program files (x86)\Mozilla Firefox\
I renamed my plugins folder to plugins.old.
It recreated the Plugins folder and all was good again. I have since reinstalled the plugins I've been prompted to install. -
Problem with dispalying out put of report RLLI0400
i have added one field in the report by copieng the report to zprogram...
i want see the out of the report ,but i am not getting any out put just giving the message saying that tha document is printed...
i need to change code in this report?
i need to change any thing in form DRUCKER_EINSCHALTEN,
if yes please tell me what changes are needed.....Hi Kranthi,
in sub routine DRUCKER_EINSCHALTEN omit the code NO-DIALOG with NEW_PAGE command. i think it is genreating output into a spool request and suppress the dialog. if you omit this NO-DIALOG it will generate output.
Regards
Krishnendu -
I have tested the integration of Apex3.0 and BI Publisher via Report Query.
This works very well, however I want to create a hierarchical XML document via the following Query:
select a.id,
a.persoonsnr,
a.volgnr_dvb,
a.jaar,
a.naam,
a.code_sagitta,
a.status,
a.invgebruiker,
a.invdatum,
a.mutgebruiker,
a.mutdatum,
cursor (
select w.afspraken
from hri_opmwerkresult w) as owr
from hri_prsactiviteiten a
I get the error message ORA-00932 inconsistent datatypes expected number got curser
Is there a work around to create a report-query with master-detail info?Anyone?
-
BI Publisher report bursting problem
I am not able to make my report burst to separate files for ftp delivery. I am running BI Publisher version 10.1.3.4.1 (stand-alone). My data query looks like this:
select a.agency_id, b.borr_name
from agency_tbl a, borr_tbl b
where a.rpt_date >= 20100101 and a.rpt_date <= 20100110
and a.borr_id = b.borr_id
and a.agency_id in (80013,80019)
order by a.agency_id, b.borr_name
My bursting/delivery query looks like this:
select agency_id "KEY",
'mytemplate' as TEMPLATE,
'RTF' TEMPLATE_FORMAT,
'en-US' LOCALE,
'PDF' OUTPUT_FORMAT,
'FTP' DEL_CHANNEL,
'myserver' PARAMETER1,
'myid' PARAMETER2,
'mypwd' PARAMETER3,
'/home1/web-docs-443/files/pdffiles' PARAMETER4,
convert(varchar,agency_id) || '.pdf' PARAMETER5
from agency_tbl
where agency_id in (80013,80019)
and rpt_date >= 20100101 and rpt_date <= 20100110
(I have to put "KEY" in quotes because my database is sybase, and KEY is a reserved word.)
I have verified that both queries return data (6 records each, no null agency_id keys).
The goal is to create a file for each agency that lists their associated borrowers.
I can view the report without problems. But when I schedule the report and enable bursting, I get the "Job was failed" email notification, and the report history shows this:
Job Execution Information
History ID 218
Status Failed
Start Processing Time 3/21/11 10:27 AM
End Processing Time 3/21/11 10:27 AM
Time Elapsed 1.68 sec
System Message oracle.apps.xdo.servlet.scheduler.ProcessingException: java.lang.NullPointerException
at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:2116)
at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:358)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: java.lang.NullPointerException
at com.sun.java.util.collections.Hashtable.containsKey(Hashtable.java:300)
at oracle.apps.xdo.batch.bursting.DeliveryXMLParser.processRow(Unknown Source)
at oracle.apps.xdo.batch.bursting.DeliveryXMLParser.endDeliveryInfoElement(Unknown Source)
at oracle.apps.xdo.batch.bursting.DeliveryXMLParser.endElement(Unknown Source)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:210)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1318)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:263)
at oracle.apps.xdo.batch.bursting.DeliveryXMLParser.getDeliveryChannels(Unknown Source)
at oracle.apps.xdo.batch.BurstingProcessorEngine.createEnterpriseReportRequest(Unknown Source)
at oracle.apps.xdo.batch.BurstingProcessorEngine.setDeliveryControlFile(Unknown Source)
at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:1916)
... 3 more
Bursting Definitions
Bursting Node /ROWSET/ROW/agency_id
Delivery Node /ROWSET/ROW/agency_id
Any help will be greatly appreciated. This has me stumped . . . I am out of ideas.What caused our bursting problem:
We had to put the word "KEY" in quotes (in our bursting query), because KEY is a reserved word in sybase. But putting it in quotes caused a problem - the results of the bursting query did not contain a "KEY" tag.
. . . And the solution:
We added the connection property "GET_COLUMN_LABEL_FOR_NAME=true" to our sybase datasource definition. Many thanks to Tim Dexter, and to Paul from the sybase forums (http://newsgroupstats.info/article/forums.sybase.com/sybase.public.jconnect/2308/Column-aliases-not-working.html) c. 2007.
And thanks again to Jorge for the helpful suggestion.
Steve Z. -
Performance issues when creating a Report / Query in Discoverer
Hi forum,
Hope you are can help, it involves a performance issues when creating a Report / Query.
I have a Discoverer Report that currently takes less than 5 seconds to run. After I add a condition to bring back Batch Status that = Posted we cancelled the query after reaching 20 minutes as this is way too long. If I remove the condition the query time goes back to less than 5 seconds.
Please see attached the SQL Inspector Plan:
Before Condition
SELECT STATEMENT
SORT GROUP BY
VIEW SYS
SORT GROUP BY
NESTED LOOPS OUTER
NESTED LOOPS OUTER
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS OUTER
NESTED LOOPS OUTER
NESTED LOOPS
NESTED LOOPS OUTER
NESTED LOOPS OUTER
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
TABLE ACCESS BY INDEX ROWID GL.GL_CODE_COMBINATIONS
AND-EQUAL
INDEX RANGE SCAN GL.GL_CODE_COMBINATIONS_N2
INDEX RANGE SCAN GL.GL_CODE_COMBINATIONS_N1
TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES
INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUES_N1
TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUE_SETS
INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUE_SETS_U1
TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES_TL
INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUES_TL_U1
INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUE_NORM_HIER_U1
TABLE ACCESS BY INDEX ROWID GL.GL_JE_LINES
INDEX RANGE SCAN GL.GL_JE_LINES_N1
INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
TABLE ACCESS BY INDEX ROWID GL.GL_JE_HEADERS
INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
INDEX UNIQUE SCAN GL.GL_DAILY_CONVERSION_TYPES_U1
TABLE ACCESS BY INDEX ROWID GL.GL_JE_SOURCES_TL
INDEX UNIQUE SCAN GL.GL_JE_SOURCES_TL_U1
INDEX UNIQUE SCAN GL.GL_JE_CATEGORIES_TL_U1
INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
INDEX UNIQUE SCAN GL.GL_BUDGET_VERSIONS_U1
INDEX UNIQUE SCAN GL.GL_ENCUMBRANCE_TYPES_U1
INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
TABLE ACCESS BY INDEX ROWID GL.GL_JE_BATCHES
INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
TABLE ACCESS BY INDEX ROWID GL.GL_PERIODS
INDEX RANGE SCAN GL.GL_PERIODS_U1
After Condition
SELECT STATEMENT
SORT GROUP BY
VIEW SYS
SORT GROUP BY
NESTED LOOPS
NESTED LOOPS OUTER
NESTED LOOPS OUTER
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS OUTER
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS OUTER
NESTED LOOPS
NESTED LOOPS OUTER
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS OUTER
NESTED LOOPS
TABLE ACCESS FULL GL.GL_JE_BATCHES
INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
TABLE ACCESS BY INDEX ROWID GL.GL_JE_HEADERS
INDEX RANGE SCAN GL.GL_JE_HEADERS_N1
INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
INDEX UNIQUE SCAN GL.GL_ENCUMBRANCE_TYPES_U1
INDEX UNIQUE SCAN GL.GL_DAILY_CONVERSION_TYPES_U1
INDEX UNIQUE SCAN GL.GL_BUDGET_VERSIONS_U1
TABLE ACCESS BY INDEX ROWID GL.GL_JE_SOURCES_TL
INDEX UNIQUE SCAN GL.GL_JE_SOURCES_TL_U1
INDEX UNIQUE SCAN GL.GL_JE_CATEGORIES_TL_U1
INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
TABLE ACCESS BY INDEX ROWID GL.GL_JE_LINES
INDEX RANGE SCAN GL.GL_JE_LINES_U1
INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
TABLE ACCESS BY INDEX ROWID GL.GL_CODE_COMBINATIONS
INDEX UNIQUE SCAN GL.GL_CODE_COMBINATIONS_U1
TABLE ACCESS BY INDEX ROWID GL.GL_PERIODS
INDEX RANGE SCAN GL.GL_PERIODS_U1
TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES
INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUES_N1
INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUE_NORM_HIER_U1
TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES_TL
INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUES_TL_U1
TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUE_SETS
INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUE_SETS_U1
INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
Is there anything i can do in Discoverer Desktop / Administration to avoid this problem.
Many thanks,
LanceHi Rod,
I've tried the condition (Batch Status||'' = 'Posted') as you suggested, but the qeury time is still over 20 mins. To test i changed it to (Batch Status||'' = 'Unposted') and the query was returned within seconds again.
Ive been doing some more digging and have found the database view that is linked to the Journal Batches folder. See below.
I think the problem is with the column using DECODE. When querying the column in TOAD the value of P is returned. But in discoverer the condition is done on the value Posted. Im not too sure how DECODE works, but think this could be the causing some sort of issue with Full Table Scans. How do we get around this?
Lance
DECODE( JOURNAL_BATCH1.STATUS,
'+', 'Unable to validate or create CTA',
'+*', 'Was unable to validate or create CTA',
'-','Invalid or inactive rounding differences account in journal entry',
'-*', 'Modified invalid or inactive rounding differences account in journal entry',
'<', 'Showing sequence assignment failure',
'<*', 'Was showing sequence assignment failure',
'>', 'Showing cutoff rule violation',
'>*', 'Was showing cutoff rule violation',
'A', 'Journal batch failed funds reservation',
'A*', 'Journal batch previously failed funds reservation',
'AU', 'Showing batch with unopened period',
'B', 'Showing batch control total violation',
'B*', 'Was showing batch control total violation',
'BF', 'Showing batch with frozen or inactive budget',
'BU', 'Showing batch with unopened budget year',
'C', 'Showing unopened reporting period',
'C*', 'Was showing unopened reporting period',
'D', 'Selected for posting to an unopened period',
'D*', 'Was selected for posting to an unopened period',
'E', 'Showing no journal entries for this batch',
'E*', 'Was showing no journal entries for this batch',
'EU', 'Showing batch with unopened encumbrance year',
'F', 'Showing unopened reporting encumbrance year',
'F*', 'Was showing unopened reporting encumbrance year',
'G', 'Showing journal entry with invalid or inactive suspense account',
'G*', 'Was showing journal entry with invalid or inactive suspense account',
'H', 'Showing encumbrance journal entry with invalid or inactive reserve account',
'H*', 'Was showing encumbrance journal entry with invalid or inactive reserve account',
'I', 'In the process of being posted',
'J', 'Showing journal control total violation',
'J*', 'Was showing journal control total violation',
'K', 'Showing unbalanced intercompany journal entry',
'K*', 'Was showing unbalanced intercompany journal entry',
'L', 'Showing unbalanced journal entry by account category',
'L*', 'Was showing unbalanced journal entry by account category',
'M', 'Showing multiple problems preventing posting of batch',
'M*', 'Was showing multiple problems preventing posting of batch',
'N', 'Journal produced error during intercompany balance processing',
'N*', 'Journal produced error during intercompany balance processing',
'O', 'Unable to convert amounts into reporting currency',
'O*', 'Was unable to convert amounts into reporting currency',
'P', 'Posted',
'Q', 'Showing untaxed journal entry',
'Q*', 'Was showing untaxed journal entry',
'R', 'Showing unbalanced encumbrance entry without reserve account',
'R*', 'Was showing unbalanced encumbrance entry without reserve account',
'S', 'Already selected for posting',
'T', 'Showing invalid period and conversion information for this batch',
'T*', 'Was showing invalid period and conversion information for this batch',
'U', 'Unposted',
'V', 'Journal batch is unapproved',
'V*', 'Journal batch was unapproved',
'W', 'Showing an encumbrance journal entry with no encumbrance type',
'W*', 'Was showing an encumbrance journal entry with no encumbrance type',
'X', 'Showing an unbalanced journal entry but suspense not allowed',
'X*', 'Was showing an unbalanced journal entry but suspense not allowed',
'Z', 'Showing invalid journal entry lines or no journal entry lines',
'Z*', 'Was showing invalid journal entry lines or no journal entry lines', NULL ),
Maybe you are looking for
-
Update values in AlV grid display after entering value
Hi, I have an issue in ALV grid display. Let me explain. i have 8 fields to display in which one is editiable. Fields are: date material, material Description, Opening Stock,
-
Dreamweaver has encountered a fatal error
Hi I started to get this message a few days ago all out of the blue. So I uninstalled and reinstalled with no luck. Can anyone please help and advise me. Many thanks Nig
-
Dear All, One of our client has a query related to guest portal default webpage that, if their application team can modify the default guest portal web page then how the sample code can be obtained ? I found following link so kindly let me know if th
-
Change SharePoint View According to Active Directory Job Title.
I want to change a Form Library View according to the Job Title of an AD user. I cannot understand how to do that! Could someone please explain how should I do that? Thanks, Chiranthaka
-
Smart View Refresh All and Hidden Tabs
When one of my users does a Refresh All in Excel all of his hidden tabs become unhidden. Is there a setting in Smart View that can stop this from happening? Todd