Alert Drill Down - DRAFT and ADDED Documnts - Using UNION Query
Hi,
I want to be able to send and alert that allows drill down when the alert includes DRAFT and ADDED doc's
My alert query uses UNIONs for the draft table and ADDED type documents, selecting a dummy draft number for ADDED doc.
--EXTRACT
select
--For DRAFTs
T0.DocEntry as 'Draft_No',
'' as 'Doc_No',
'Draft' as 'Type', ---etc. etc.
From ODRF
UNION
---For ADDED
select
(select min(docentry) from ODRF) as 'Draft_No',
T0.Docnum as 'Doc_No',
'ADDED' as 'Type', -
etc etc
From ORDR
Sample :DRAFT = 2 is dummy
Draft_No Doc_No Type Draft Status Cust/Vend Doc_Type Line Type Approval_Status
2 121095 ADDED N/A NPO-PORT Sales Order Item Approved
811 0 Draft Open ADT AP Invoice Service Approved
Thanks you for any help on this issue.
Eric
Hi Eric,
This is impossible. Simply because, once you are using Union, drill down will no longer work.
Thanks,
Gordon
Similar Messages
-
Alert Drill Down - Draft and Added Documents
Hi,
I want to be able to send and alert that allows drill down when the alert includes draft and multiple types of added documents (ie Sales Order, AR Invoice, Purchase Order, AP Invoice etc.)
Currently my alert query has UNIONs for the draft table and ADDED type documents. For the Added documents I select a dummy draft number. Of course this is very confusing to the user, who need to recognise that this is an ADDED document and not to drill but copy and retreive the document.
select
--For DRAFT Documents
T0.DocEntry as 'Draft_No',
'' as 'Doc_No',
'Draft' as 'Type',
---etc. etc.
UNION
---For ADDED SALES ORDERS
select
(select min(docentry) from ODRF) as 'Draft_No',
T0.Docnum as 'Doc_No',
'ADDED' as 'Type',
etc etc
Sample Data returned by alert
2 1210952 ADDED N/A NPO-PORT Sales Order Item Approved
2 1410660 ADDED N/A CASHPUR Purchase Order Service Approved 2009-11-23 00:00:00.000 Approvd PM Open N - Ibb N ALEXANDRE PERRACHON SHARMA AJAY SHARMA AJAY DUJARDIN CYRIL AUD 3630.000000 4 Administration - Marketing - Y SHARMA AJAY G161205 G161108 G161108 G017132 10 0 CASH PURCHASES 8 18
Edited by: eric walker on Nov 23, 2009 6:19 AMHi Eric,
This is impossible. Simply because, once you are using Union, drill down will no longer work.
Thanks,
Gordon -
Drill Down Reports and Drag & Drop capability Tool for Developer2000
I am currently doing my development in Developer2000 rel. 2.0.
I have seen many tools for VB which provide the facility for Drill Down reporting and drag & drop option in reporting, but unable to find any tool for developer2000. I wonder if anyone can guide me about any tool for developer2000 which can provide these facilities in reporting and forms.......
Qamar Bilalyou can use the mouse triggers to do drag and drop.
you have mouse-move and mouse-enter etc...
what do you mean by drill down?
you can do drill down reporting in reports by using srw.run_report built in and you can also use oracle discoverer. -
Drill Down reports must be selected using precisely one ledger
hi all,
whenever i am trying to execute the report from FGI4(report painter), this error message is coming:-
Drill Down reports must be selected using precisely one ledger
can you please help me with solution?
indranilHi,
Please give ledger in the selection as 0l or 0f or press F4 & select there.If you are creating your own report then you must assign characterstic ledger to your report.On that basis system will fetch data.
points if found useful.
regards,
Abhijit -
Difference between Drill down Report and Interactive Report
What is the difference between Drill down Report and Interactive Report?
Hi,
Drill down report and Interactive report seems to be acts as same. But there is a minor difference between those two.
Drill Down Report - When you click on a particular field in a report it drills down to the next report, it won't trigger another screen.
Interactive Report - When you click on a particular field in a report it will trigger another report based on the field clicked. It opens another session internally in the same screen.
Regards,
Jayaram... -
Product Drill Down Reporting and Using KKC7/KKC8 & KKRV
Hello Guys,
Need some expert advise on my issue.
1. I have created a product group using T-code KKC7 and assigned materials to my product group.
2. I have done some material movement posting using 261 on these materials.
3. Next I run KKRV to collect data
4. Next I run Report S_ALR_87013139
I expect to see drill down report by product group but I dont see anything?
Is there something else which needs to be set?
In spro I have checked reporting control parameters and its all good.
Please share your thoughts.
Regards,
SanjeevDear Sanjeev,
Did you get an error or information message when you execute S_ALR_87013139?
Best regards,
Jason -
Problem in Drill Down feature and Scroll Bar
Hi All,
Well I have designed a report on Oracle BI and facing the following issues:
1. When i opened the report through image/link box(from mypage dashboard or from some other way) and if the data have enough rows and columns to overflow the screen size then there is no scroll bar on the screen so i wouldn't be able to see that data.
2. When I am clicking on the year(as i made a time hierarchy --> year then quater then month) on the either pivot table or chart view then automatically all corresponding Dashboard Prompts(DP) disappear so i can't filter the data.
Please help me out in this.
thanks in advance.
regards
mohitRegarding 2)
This is the expected behavior of drill downs. The subsequent reports from the highest level are "system-generated." If you want the prompts, you will have to use the Navigate feature and navigate to a dashboard where you can have your prompts.
Regarding 1)
Are you using the Table View or Pivot Table view? If Table View, you can increase the number of rows that are visible by default (change this in the Properties of the Table View.) If you are using a Pivot Table, try this link:
http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/ -
Drill down expand and collapse feature not available Crystal Reports Desig
Hi,
Am I right in my understanding that drill down feature opens in a new tab and it cannot be made expand and collapse even using JRC.
Please advise & thank you
SelviHi Slevi,
You are right with the understanding of the Drill down function. To have a drill down function available the minimum requirement is have at least a single group in the report.
When we have a group with some underlying data and then when we would like to see data for a particular group, we can see a u201Cmagnifying glassu201D symbol which indicates that there is data for this group and we can use the Drill down function.
When you drill on a particular group, the data for that group is shown in a new tab.
I hope this provides some information about the Drill down function used in Crystal Reports.
Regards,
Prashant Saduwale. -
Drill Down Menu and JavaScripts
I've create a Drill Down menu with JavaScripts and put it in Html Portlet when I try to run, It doesn't work.
But If I execute this code without use portal it works perfectly.
Example:
<script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>
<!--Begin Sothink DHTMLMenu Body-->
<script type="text/javascript" language="JavaScript1.2">
<!--
beginSTM("menu1036512576","static","0","0","none","false","true","310","1000","0","250","","blank.gif");
beginSTMB("auto","0","0","vertically","arrow_r.gif","7","7","0","3","#ffffff","","tiled","#000000","1","solid","0","Normal","50","0","0","7","7","0","0","0","#7f7f7f","false","#000000","#000000","#000000","none");
appendSTMI("false","acerca","left","middle","","","-1","-1","0","normal","#d6d6ce","#000084","","1","-1","-1","blank.gif","blank.gif","-1","-1","0","","","_self","Arial","9pt","#000000","normal","normal","none","Arial","9pt","#ffffff","normal","normal","none","0","solid","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","","","","tiled","tiled");
beginSTMB("auto","0","0","vertically","arrow_r.gif","0","0","0","3","#ffffff","","tiled","#000000","1","solid","0","Normal","50","0","0","0","0","0","0","0","#7f7f7f","false","#000000","#000000","#000000","none");
appendSTMI("false","Mision","left","middle","","","-1","-1","0","normal","#d6d6ce","#000084","","1","-1","-1","blank.gif","blank.gif","-1","-1","0","","","_self","Arial","9pt","#000000","normal","normal","none","Arial","9pt","#ffffff","normal","normal","none","0","solid","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","","","","tiled","tiled");
appendSTMI("false","Valores","left","middle","","","-1","-1","0","normal","#d6d6ce","#000084","","1","-1","-1","blank.gif","blank.gif","-1","-1","0","","","_self","Arial","9pt","#000000","normal","normal","none","Arial","9pt","#ffffff","normal","normal","none","0","solid","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","#d6d6ce","","","","tiled","tiled");
endSTMB();
endSTMB();
endSTM();
//-->
</script>
<!--End Sothink DHTMLMenu Body-->You must write the complete path of you javascript librayry :
replace src="stm31.js" by something like src="http://myserver:myport/.../stm31.js" -
Dynamic EVDRE, Drill Down insserting and a formula
Hi,
I need your help.
I need to do a dynamic EVDRE report, where the customer can see the details of the accounts (Drill Down option: expand by inserting news accounts), and between the dynamic rows I have rows with formulas.
I've got this RangeOption:
PageKeyRange Sheet1!$I$3:$I$13
ColKeyRange Sheet1!$H$15:$I$16
RowKeyRange Sheet1!$F$19:$F$24;Sheet1!$F$26:$F$37
The ExpansionOption:
ExpandIn COL COL ROW
Dimension TIME CATEGORY ACCOUNT
MemberSet SELF SELF LDEP(1,A_111),A_111,A_112,A_113|DEP(A_114),A_114
In the rows represented by pipes (' | ') I've got a formula like this: =R1/R2 (R1,R2 are references to the fields)
All this is ok when I do this:
- I expand the report
- I do doble click in a field to see the detail account
- I do doble click in the same field to hide the detail account
- I expand again the report
This dont work if I do this:
- I expand the report
- I do doble click in a field to see the detail account
- I expand again the report... I loose the reference to the fields!!
Some idea about what can I do??
Thanks
BR.
Edited by: nmartin on Oct 11, 2011 6:24 PMI checked than the problem was because I loose the expansion.
-
Drill Down when data is coming from a query
Hello experts,
I have one question regarding the drill down functionality. For sake of simplicity, let's assume we are working on a pie chart.
i) Data is coming from a query (via the universe).
ii) The data source is really the query itself, it is not coming from the excel sheet. In other words, the query is not first copied to the excel sheet and then fed to the pie chart. Pie chart directly uses the query binding.
ii) When a slice in the pie is clicked, I want to copy that slice's information into a cell (basically the drill-down functionality).
I wasn't able to achieve this functionality. I think the problem is the 'source data' field in the 'insertion' tab. I select 'Row' as my insertion type and I also select a destination. However, when it comes to selecting 'source data' I have nowhere to point to since my source data is the query (query binding is not an option here). So, since I have no real source data, I cannot drill down and copy the values to the destination cell.
The workaround is to copy the query data into excel first, but I don't that is an elegant solution. Is there any other way to achieve this?
Regards,
Guven.Hello David,
You confirm that mapping the whole column would be an option, right?
Here is why I asked this question: Let's assume I have a dashboard that displays the types of encounters in a hospital. Some examples of encounter types are: emergency, elective, newborn, etc... Currently, in the database, there is data for these 3 types. So, the dashboard contains a pie chart and each slice corresponds to the number of visits by patients for this encounter type (e.g. 450 emergency encounters, 9900 elective encounters and 32 newborn encounters).
Tomorrow, a new encounter type could take place in the hospital and this of course has to be reflected in the dashboard. If I make the assumption that there are only 3 encounter types, then the dasboard would be missing information. So, in this case, should I be mapping the whole column to the pie chart?
Regards,
Guven. -
Sum and group by using CAML query
Is there any way to get the SUM of values with group by ID using CAML query?
I have a custom list, in that I have ID and Value columns as below
ID Value1 Value2
1 10 4
2 5 3
1 15 2
3 20 1
I want to get result:
ID Value1 Value2
1 25 6
2 5 3
3 20 1
I used CAML query:
<View>
<Query>
<Where>
<IsNotNull>
<FieldRef Name="ID" />
</IsNotNull>
</Where>
<GroupBy Collapse="FALSE">
<FieldRef Name="ID" />
</GroupBy>
</Query>
<ViewFields>
</ViewFields>
<Aggregations Value="On">
<FieldRef Name="Value1" Type="SUM" />
<FieldRef Name="Value2" Type="SUM" />
</Aggregations>
</View>
But
this query returns all the records
that satisfy the condition <Where>.
I
do not correctly?You need to work with current view based aggregation. Please check below threads for your reference.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/dda5735a-fecf-403f-9495-1b63617d2fbf/question-on-a-caml-query?forum=sharepointdevelopmentlegacy
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/24e88d6a-ee15-4d81-a5fe-504c7bd14e46/how-to-sum-a-column-value-using-caml-query?forum=sharepointdevelopment
Hope this helps.
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
I've seen these
issues and articles and do them, but
does not work. I use object mozhel
Sharepoint (javascript). -
Hoe top create summary and detail report using ABAP QUERY
Hi ,
Can any one suggest me how to create summary and detailed report using ABAP Quey.
Regards,
Raghu.Hi,
Table Declaration
tables:mara,mast.
*Declaring the internal table
data: begin of itab_new occurs 0,
matnr like mara-matnr, "Material No
ernam like mara-ernam, "Material Created by
mtart like mara-mtart, "Material Type
matkl like mara-matkl, "Material Desc
werks like mast-werks, "Plant
aenam like mast-aenam, "BOM created
stlal like mast-stlal, "Alternative BOM
end of itab_new.
select-options: p_matnr for mara-matnr.
CODE A : Retrieving the data from the database
select f~matnr f~ernam f~mtart f~matkl m~werks m~aenam m~stlal
into table itab_new
from mara as f inner join mast as m
on f~matnr = m~matnr
where f~matnr in p_matnr.
CODE B : Retrieving the data from the database.
SELECT FMATNR FERNAM FMTART FMATKL MWERKS MAENAM M~STLAL
INTO TABLE ITAB_NEW
FROM MARA AS F INNER JOIN MAST AS M
ON FMATNR = MMATNR
WHERE F~MATNR = P_MATNR.
SORT ITAB_NEW BY ERNAM.
loop at itab_new.
write:/5 itab_new-matnr,itab_new-ernam,itab_new-mtart,itab_new-matkl,itab_new-werks,itab_new-aenam,itab_new-stlal.
endloop.
*TABLES: MARA , MAST.
*DATA:BEGIN OF ITAB_NEW OCCURS 0,
MATNR LIKE MARA-MATNR,
ERNAM LIKE MARA-ERNAM,
MTART LIKE MARA-MTART,
MATKL LIKE MARA-MATKL,
END OF ITAB_NEW.
SELECT MATNR ERNAM MTART MATKL
INTO TABLE ITAB_NEW
FROM MARA
WHERE MTART = 'T'
ORDER BY MATNR ERNAM MTART MATKL.
*DATA: BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF ITAB.
Thank U,
Jay.... -
How to create a sub total and grand total using my query.
How can I create a sub total for each section and grand total for using my query like this. your help is appreciated. I am working with 9g
WITH BidItemsInformation AS
( SELECT DISTINCT q.iplineno "Line Number", q.section "Section Number",
i.item "Item Number",
initcap(i.idescr) "Description" ,
i.iunits "Unit",
q.qty "Quantity" ,q.price "Engineers Unit Price",
(q.price * q.qty) "Engineers Estimate"
FROM letprop l,
proposal p,
propitem q,
bidlet b,
bidtabs c,
itemlist i,
vendor v,
bidders d
WHERE(l.letting = b.letting
And b.letting = c.letting
And p.cspecyr = i.ispecyr)
AND q.prpitem = i.item
AND p.contid = l.lcontid
AND q.contid = p.contid
AND c.vendor = l.avendor
AND l.CALL = c.CALL
AND q.lineflag = c.lineflag
AND q.iplineno = c.iplineno
AND l.letting = d.letting
AND c.letting = l.letting
AND c.CALL = d.CALL
AND v.vendor = d.vendor
-- AND AND l.letstat = 'A'
AND c.lineflag = 'L'
AND l.letting ='&letting'
AND l.CALL = '&call'
), BiddersInformation AS
-- This is where you make your changes for vendor name and vendor number Do not touch the above code
-- It is always the same for any call number and letting date
( SELECT IPLINENO "BLine Number",
MAX(CASE WHEN VENDOR='K020' THEN bidprice ELSE NULL END) "K020:: Unit Price",
MAX(CASE WHEN VENDOR='K020' THEN bidprice ELSE NULL END) K,
MAX(CASE WHEN VENDOR='H438' THEN bidprice ELSE NULL END) "H438:: Unit Price",
MAX(CASE WHEN VENDOR='H438' THEN bidprice ELSE NULL END) H,
MAX(CASE WHEN VENDOR='U010' THEN bidprice ELSE NULL END) "U010:: Unit Price",
MAX(CASE WHEN VENDOR='U010' THEN bidprice ELSE NULL END) U,
MAX(CASE WHEN VENDOR='G110' THEN bidprice ELSE NULL END) "G110:: Unit Price",
MAX(CASE WHEN VENDOR='G110' THEN bidprice ELSE NULL END) G,
MAX(CASE WHEN VENDOR='H530' THEN bidprice ELSE NULL END) "H530:: Unit Price",
MAX(CASE WHEN VENDOR='H530' THEN bidprice ELSE NULL END) H1
FROM BIDTABS
WHERE LETTING='&letting'
AND CALL='&call'
AND BIDPRICE <> 0
GROUP BY IPLINENO
SELECT BidItemsInformation."Line Number",
BidItemsInformation."Section Number",
BidItemsInformation."Item Number",
BidItemsInformation."Description",
BidItemsInformation."Unit",
BidItemsInformation."Quantity",
BidItemsInformation."Engineers Unit Price",
BidItemsInformation."Engineers Estimate",
BiddersInformation."K020:: Unit Price",
(BidItemsInformation."Quantity" * K) "KGM CONTRACTORS INC",
BiddersInformation."H438:: Unit Price",
(BidItemsInformation."Quantity" * H) "HOFFMAN CONSTRUCTION COMPAN",
BiddersInformation."U010:: Unit Price",
(BidItemsInformation."Quantity" * U) "ULLAND BROTHERS INC",
BiddersInformation."G110:: Unit Price",
(BidItemsInformation."Quantity" * G) "GLADEN CONSTRUCTION INC",
BiddersInformation."H530:: Unit Price",
(BidItemsInformation."Quantity" * H1) "HOOVER CONSTRUCTION CO"
FROM BidItemsInformation,BiddersInformation
WHERE BidItemsInformation."Line Number" = BiddersInformation."BLine Number";
Line Number Section Number Item Number Description Unit Quantity Engineers Unit Price Engineers Estimate K020:: Unit Price
0010 0001 2011601/00003 Construction Surveying LS 1 143,000 143,000 75,000 75,000 67,080 67,080
0013 0001 2013601/00010 Survey Equipment LS 1 25,000 25,000 25,000 25,000 30,000 30,000
0020 0001 2015601/00030 Blast Monitor/Survey LS 1 50,000 50,000 30,000 30,000 35,000 35,000
0030 0001 2021501/00010 Mobilization LS 1 382,250 382,250 809,000 809,000 704,000 704,000
0040 0001 2021602/00010 Well Survey EACH 60 500 30,000 2,150 129,000 1,600 96,000
0050 0001 2031501/00040 Field Office Type D EACH 1 6,367 6,367 4,000 4,000 25,000 25,000
sub total:
1610 0002 2401501/01143 Structural Concrete (1a43) C Y 46 350 16,100 408 18,768 400 18,400
1620 0002 2401501/01362 Structural Concrete (1c62) C Y 68 200 13,600 204 13,872 200 13,600
1630 0002 2401501/03643 Structural Concrete (3y43) C Y 60 600 36,000 592 35,520 580 34,800
1640 0002 2401512/03633 Bridge Slab Concrete (3y33) S F 1,876 24 45,024 28 51,778 27 50,652
1650 0002 2401521/00030 Structure Excavation Class R C Y 17 125 2,125 1,000 17,000 500 8,500
1660 0002 2401541/00010 Reinforcement Bars LB 2,490 2 3,735 1 3,312 1 3,237
1670 0002 2401541/00011 Reinforcement Bars (Epoxy Coated) LB 12,380 2 18,570 1 17,703 1 17,332
1680 0002 2401601/00010 Structure Excavation LS 1 2,500 2,500 2,000 2,000 5,000 5,000
1690 0002 2402583/00020 Ornamental Metal Railing Type Special L F 284 150 42,600 194 55,096 190 53,960
sub total
1820 0003 2401513/00346 Type Curb Railing Concrete (3y46) L F 135 25 3,375 16 2,093 15 2,025
1830 0003 2401513/07447 Type Mod P-4 (Tl-4) Railing Conc (3y46) L F 302 85 25,670 72 21,593 70 21,140
1840 0003 2401541/00010 Reinforcement Bars LB 14,780 1 18,475 1 13,598 1 13,302
1850 0003 2401541/00011 Reinforcement Bars (Epoxy Coated) LB 76,720 1 103,572 1 85,926 1 84,392
1860 0003 2401601/00010 Structure Excavation LS 1 10,000 10,000 116,000 116,000 115,000 115,000
1870 0003 2402583/00020 Ornamental Metal Railing Type Special L F 132 150 19,800 184 24,288 180 23,760
sub total
totalYou can accomplish that using decode with the grouping function. It returns 1 when that column passed as argument was grouped (or is in some total) and 0 otherwise.
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> with t as
2 (select 'New York' city, 'US' country, 1 num from dual
3 union all select 'Los Angeles' city, 'US' country, 2 num from dual
4 union all select 'London' city, 'GB' country, 2 num from dual
5 union all select 'London' city, 'GB' country, 2 num from dual
6 union all select 'London' city, 'GB' country, 7 num from dual)
7 select decode(grouping(country), 0, country, 'GRAND TOTAL') country,
8 decode(grouping(city), 0, city, decode(grouping(country), 0, 'SUBTOTAL')) city,
9 sum(num) num_total
10 from t
11 group by rollup(country, city)
12 /
COUNTRY CITY NUM_TOTAL
GB London 11
GB SUBTOTAL 11
US New York 1
US Los Angeles 2
US SUBTOTAL 3
GRAND TOTAL 14
6 linhas selecionadas.
SQL> -
To get list of Structure, CKF and RKF where used in query
Hi All,
We are going to migrate the queries from BW.3.5 to BI 7.0.
Our aim is to get list of Structure, CKF and RKF that are being used in the Info provider along with Queries of these Structure ,RKF's and CKF' s .Is there any way
to get the where used in query.
Thanks,
MohanIt's been discussed so many times: Check these forums>>
http://scn.sap.com/thread/2029042
BEx metadata tables - how to list Query/Chars/KFs
Rgds..
Shambhu
Maybe you are looking for
-
Hi, my iPhone 4 wont sync because of "not enough privelaged space on C drive" can anyone help
Hi, My iPhone 4 wont sync to itunes and Iget a message saying their is not enough privelaged space on C drive. Noyhing has changed on my lap-top and their is plenty of room on the hard drive........ any suggestions!!!
-
Best explained by example: I have 2000 things of data that I need to populate to a table. This table is being refreshed every 5 seconds. You can imagine the slow down of having to do this. Now, I have method that will allow me to pull out only 25 at
-
Cannot navigate through eBay listing
The problem developed 11/26. When I navigate thru ebay to list and item for sale I am taken to a page to choose the category. I select the category and click continue. This brings me back to the previous page and in red tells me to select a category.
-
Toolbar Custom Control Ring question
Hi. This is probably a dumb question, but how do I add items to a ring (kRing) toolbar item when using the Toolbar Custom Control (toolbar.fp) in CVI 2010? Thanks. Solved! Go to Solution.
-
Hi SAP Consultants, We are in the process of linking DMS with BOM. While Creating a DIR in CV01n we are unable to link a BOM because when we click the Object links tab it is displaying the following message: Object link to STKO_DOC cannot be changed