Examples of drill down reports in 6i
Hi,
I'm creating reports that are going to be deployed through the Portal as HTML. I would like to use hyperlink drill down from one report to another.
Is there a doc that you can point me to that demonstrates an example of how to do this? Must the hyperlinks be hardcoded paths to the location or can they be made relative to the location that the calling report is placed?
Cheers,
Hi Prashant,
You can try T code CJE0 - report 12KST1G . Here at least you remain in the screen of CJE0 instead of going to SAP menu after exit from the report. But this also doesn't solve your problem.
I have checked transaction code S_ALR_87013534. It is giving same problem. As suggested by Shrikant , you can raise OSS note to SAP.
Regards,
Amit More
Similar Messages
-
Drill Down Report to Summary Report Page Navigation
Hi,
I need technical input.
I have 1 summary report, which is having two columns i.e. Name, ID.Name having hyperlink which navigates to drill down level report.
How to go back from drill down level report to summary report.
Note : Using IE back button it is not full filling becz whenver user navigates the data in drill down reports
Example : In drill down report i have 200 records where i have traverese to 175 records.Where i have clicked 6 times next level page button, In this scenario where user click on the IE back button it not takes back to summary report rather than it traverse back 150 records.
Thanks in advances
Regards,
MuraliAfter creating the hyperlink in your ORACLE report you have to do the following
Here are the instructions
1. Open Adobe Reader 8.0 (not sure if earlier versions have an internet option.)
2. Click edit
3. Click Preferences
4. Click Internet
5. Remove check mark for Display PDF in browser
6. Click ok
7. Close Adobe Reader
8. Run your UI
9. Generate a PDF report
10. A pop-up window will appear. Check remember and then click ALLOW
11. Enter username and password (this needs to be done only once to initialize the connection between Adobe and Oracle login app)
Good luck
Carroll -
Drill down report...
HI abapers,
How to create drill down report in alv.
When i double click the particular field, another report has to pop up and display the details of that particular field.
for eg,
When double click the amount spent field other report has to say, For which material the amonut has spend.
Thanking You
arvindhi arv,
for me your scenario is not clear..
you want to drill down the alv .. and show the report in the same program or you want to call another program when u try to hit the alv report..
well for drilling down the same program.. you can use the following method
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = GV_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'TOP1' " drill down
I_CALLBACK_TOP_OF_PAGE = 'TOP2'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
FORM TOP1 USING UCOMM TYPE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.
READ TABLE GT_FINAL_TOTAL INTO GS_FINAL INDEX SELFIELD-TABINDEX.
CASE SELFIELD-TABINDEX.
WHEN SELFIELD-TABINDEX.
perfrom itab2_operation. " in this form you will write the code to get the data for drill dispplay
now defing fieldcatalog again : example :
GS_FCAT-COL_POS = 1.
GS_FCAT-FIELDNAME = 'EBELN'.
GS_FCAT-SELTEXT_L = TEXT-001.
GS_FCAT-FIX_COLUMN = 'X'.
GS_FCAT-OUTPUTLEN = 13.
APPEND GS_FCAT TO GT_FCA
and call alv display again :
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = GV_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_TOP_OF_PAGE = 'TOP2'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE = ''
I_GRID_SETTINGS =
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GT_FCAT
and if you want to call another progam when u hit..u have to use..submit key work
like SUBMIT ZAFI013R VIA SELECTION-SCREEN AND RETURN. -
now i am using 9ids
Before dev 2.1 was used.
now before we had provision to run drill reports
by putting a button on report
and using
srw.run_report(); procedure ,in button action trigger.
now in 9i what i observed there is no object button in reports.
button has changed to text item and there is no such action trigger.
how to run the report
as reports are run from form by using
web.show_document
pls suggest.Hi Rajendra,
Again prasanth here, As u said, there is no more push button in 9i and 10g, ok. so u can drill down reports by using hyperliks which is only way(according to me). some may suggest to include JSP buttons. But u can simply place any text item like 'click here to run report' and in the property inspector(i.e.property pallette) set the hyper link property with the desination of your file. It may be a weblink or may be local file path.
example
hyperlink: www.oracle.com/..or
c:\temp\test.rdf
or u can write a trigger for that text item:
1)right clik the text item
2)goto pl/sql editor
3)put the code
a varchar(30);
begin
a:=srw_run_report('<the report link you want')
return(a);
but before doing this make sure that the item type of tha t text item property should be pl/sql(this can be set in property pallete of that text item)
I think this help you,
Thanks and Regards
Prasanth A.S. -
I am practicing SAP FICO configuration.... Can anyone give me an example of FI drill down reporting like financial statemnet comparision and also for profit center reporting ....jus some simple example to get the idea of drill down reports.
Refer to the book from SAP.....If I remember correctly, its "SAP Reporting Made Easy". You can look for it in amazon.
Though the reports in SAP are not clean, you can get some idea about reports and also how "not clean" they are. -
Drill down reports using SVG component
I've created and dynamic report and an SVG chart following the examples of the tutorials. I was wondering if, and how, it was possible to create drill-down reports i.e report on colour, then clicking on that colour would reveal the types of car and so on. Does anyone have an example?
Thanks
DarrenDarren,
The query for an SVG chart requires 3 columns: Link, Label, and Value. You use the Link value to provide a link to another page. This link can also pass parameters to the next page.
If you set up a page for each "level" of your drill-down (e.g. color, type of car, etc), you can link from the higher-level page to the lower level page and pass the value that was clicked on in the chart.
Take a look in the HTML DB User's Guide for the section about "Using f?p Syntax to Link Pages": http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10992/mvl_fund.htm#BEIJCIAG
You would use that syntax in the Link column of the query for your chart. Here is part of a query I used to drill down from one pie char to another (on page 3), passing the selected project to a variable called P3_PROJECT.
select 'f?p=&APP_ID.:3:&SESSION.::NO::P3_PROJECT:' || Project L,
Project, sum(Time)
from v_timesheet
where ...
Does that help? -
Drill-down reports Discoverer-style
Hi,
I'm looking for a way to implement drill-down reports in HTMLDB. All the references I found are showing details in a 2nd page for a certain row in the 1st page (e.g. ordered items for an order ID).
I'm not looking for this, but for drill-down "a la Discoverer", such as this example
http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/viewer/lesson1.htm#t7
One can select there multiple criterias for drill down.
Perhaps the solution would be a combination of tree reports with standard reports
http://www.oracle.com/technology/products/database/htmldb/howtos/howto_tree.html
but I don't see clearly how to do it, especially with a lot of drill-down options.
Do you have any suggestions?
Many thanks,
MariusI think there are two differen approaches:
- using the HTML report and doing some "dynamic" SQL at the block level
(That means you have to write the drill down - this is the logic that
is done by the tree - by yourself)
If you ever have done the work to do this in combination with a HTML DB report,
please post it here.
- using the a Tree Page with a special layout and view
Which one to use depends on how often you have to use this.
You can see an example under:
http://htmldb.oracle.com/pls/otn/f?p=41053:30
Here is a quick hack for the Tree Page variant, that may help you.
Using a Tree page uning a view and changing the tree template gives you some of
this functionality. If you have to do more of this kind use a stylesheet (.css) to
controll the layout.
1. Create a View that represents your Hierarchy (Structure)
For every level create a UNION secion.
Using UNION you can get the records from different sources also.
2. Create a Page with a Tree, SQL Query Based.
Use the View that you created before.
NAME .. are the levels of your dimensions
A1, A2 .. are your measures of your fact
ID, PID .. the hierarchy (structure) information
* Step 1 - creating a view:
create or replace view tree as
select id, pid, name, link, a1, a2
from (
-- Level 1 (Root Level)
select
to_char(ORDER_TIMESTAMP,'YYYY') id, null pid,
to_char(ORDER_TIMESTAMP,'YYYY') name, null link,
to_char(sum(ORDER_TOTAL),'999G9990D99') a1, to_char(count(*),'999G9990D99') a2
from DEMO_ORDERS
group by
to_char(ORDER_TIMESTAMP,'YYYY'),
to_char(ORDER_TIMESTAMP,'YYYY')
UNION
-- Level 2
select
to_char(ORDER_TIMESTAMP,'YYYYMM'), to_char(ORDER_TIMESTAMP,'YYYY'),
to_char(ORDER_TIMESTAMP,'Month'), null,
to_char(sum(ORDER_TOTAL),'999G9990D99'), to_char(count(*),'999G9990D99')
from DEMO_ORDERS
group by
to_char(ORDER_TIMESTAMP,'YYYYMM'), to_char(ORDER_TIMESTAMP,'YYYY'),
to_char(ORDER_TIMESTAMP,'Month')
UNION
-- Level 3 (Leaf Level)
select
to_char(ORDER_TIMESTAMP,'YYYYMMDD'), to_char(ORDER_TIMESTAMP,'YYYYMM'),
to_char(ORDER_TIMESTAMP,'DD. Day'), null,
to_char(sum(ORDER_TOTAL),'999G9990D99'), to_char(count(*),'999G9990D99')
from DEMO_ORDERS
group by
to_char(ORDER_TIMESTAMP,'YYYYMMDD'), to_char(ORDER_TIMESTAMP,'YYYYMM'),
to_char(ORDER_TIMESTAMP,'DD. Day')
)If you have a lot of this kind of reports you realy should think to
use discoverer. It does a lot of sql behind the szenes and also in the
presentation logic - this is what you have to do here by hand.
If you have more than two measures (A1,A2) you can do the
formatting in your view (realy ugly, but it is a workaround).
* Step 2: Create the tree page
Tree Query:
select
"ID" id, "PID" pid, "NAME" name,
null link, a1 a1, a2 a2
from TREEBefore Tree:
<table border="0" cellspacing="0" cellpadding="0">After Tree:
</table>Leaf Node:
<td style="background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
border-width:1px 0px 1px 0px;" align="left">
</td>Leaf Node Last:
<td style="background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
border-width:1px 0px 1px 0px;" align="left">
</td>Drill Up:
(up)Indent Vertical Line:
<td style="background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
border-width:1px 0px 1px 0px;" > </td>Indent Vertical Line Last:
<td style="background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
border-width:1px 0px 1px 0px;" > </td>Unexpanded Parent:
<td style="background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
border-width:1px 0px 1px 0px;" >
< a href="#DRILL_DOWN#">
< img src="#IMAGE_PREFIX#rollup_plus_dgray.gif" width="16" height="22" border="0">
< /a>
</td>Unexpanded Parent Last:
<td style="background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
border-width:1px 0px 1px 0px;" >
< a href="#DRILL_DOWN#">
< img src="#IMAGE_PREFIX#rollup_plus_dgray.gif" width="16" height="22" border="0">
< /a>
</td>Expanded Parent:
<td style="background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
border-width:1px 0px 1px 0px;" >
< a href="#DRILL_DOWN#">
< img src="#IMAGE_PREFIX#rollup_minus_dgray.gif" width="16" height="22" border="0">
< /a>
</td>Expanded Parent Last:
<td style="background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
border-width:1px 0px 1px 0px;" >
< a href="#DRILL_DOWN#">
< img src="#IMAGE_PREFIX#rollup_minus_dgray.gif" width="16" height="22" border="0">
< /a>
</td>Parent Node Template:
<tr>#INDENT#
<td style="color:#00319c; background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #9c9b64 #9c9b64 #cece9c;
border-width:1px 1px 1px 0px;" colspan="#COLSPAN#"
valign="CENTER" class="tiny">#NAME#</td>
<td align="right" style="background:#f7f7e7;">#A1#</td>
<td align="right" style="background:#f7f7e7;">#A2#</td>
#DRILL_UP#
</tr>Node Text Template:
<tr>#INDENT#
<td style="color:#00319c; background:#cece9c;
border-style:solid;
border-color:#f7f7e7 #9c9b64 #9c9b64 #cece9c;
border-width:1px 1px 1px 0px;" colspan="#COLSPAN#"
valign="CENTER" class="tiny">#NAME#</td>
<td align="right" style="background:#f7f7e7;">#A1#</td>
<td align="right" style="background:#f7f7e7;">#A2#</td>
</tr>Name Link Anchor Tag:
< a href="#LINK#">#NAME#</a>Name Link Not Anchor Tag:
#NAME#* Extended Version of the View. Use this style of query if you have more than two measures:
create or replace view tree as
select id, pid, name, link,
'<table border="0" cellspacing="0" cellpadding="0" style="background:#f7f7e7;">'||
case when rownum = 1
then '<tr style="background:#cece9c;">'||
'<th style="border-style:solid; border-color:#cece9c #9c9b64 #9c9b64 #f7f7e7; border-width:0px 1px 1px 1px;">Amount</th>'||
'<th style="border-style:solid; border-color:#cece9c #9c9b64 #9c9b64 #f7f7e7; border-width:0px 1px 1px 1px;">Orders</th>'||
'<th style="border-style:solid; border-color:#cece9c #9c9b64 #9c9b64 #f7f7e7; border-width:0px 1px 1px 1px;">Measure</th>'||
'<th style="border-style:solid; border-color:#cece9c #9c9b64 #9c9b64 #f7f7e7; border-width:0px 1px 1px 1px;">Measure</th>'||
'</tr>'
end||
case
when lvl = 2 then '<tr style="color:#000088;">'
when lvl = 3 then '<tr style="color:#888888;">'
else '<tr>'
end ||
'<td align="right" width="80px" height="24px" style="background:#f7f7e7; border-style:solid; border-color:#9c9b64 #9c9b64 #f7f7e7 #f7f7e7; border-width:1px 1px 0px 0px;">'||
to_char(a1,'999G9990D99')||'</td>'||
'<td align="right" width="80px" height="24px" style="background:#f7f7e7; border-style:solid; border-color:#9c9b64 #9c9b64 #f7f7e7 #f7f7e7; border-width:1px 1px 0px 0px;">'||
to_char(a2,'999G9990D99')||'</td>'||
'<td align="right" width="80px" height="24px" style="background:#f7f7e7; border-style:solid; border-color:#9c9b64 #9c9b64 #f7f7e7 #f7f7e7; border-width:1px 1px 0px 0px;">'||
to_char(a3,'999G9990D99')||'</td>'||
'<td align="right" width="80px" height="24px" style="background:#f7f7e7; border-style:solid; border-color:#9c9b64 #9c9b64 #f7f7e7 #f7f7e7; border-width:1px 1px 0px 0px;">'||
to_char(a4,'999G9990D99')||'</td>'||
'</tr>'||
'</table>' a1, null a2
from (
-- Level 1 (Root Level)
select
1 lvl, to_char(ORDER_TIMESTAMP,'YYYY') id, null pid,
to_char(ORDER_TIMESTAMP,'YYYY') name, null link,
sum(ORDER_TOTAL) a1, count(*) a2,
count(*)*10 a3, count(*)*100 a4
from DEMO_ORDERS
group by
to_char(ORDER_TIMESTAMP,'YYYY'),
to_char(ORDER_TIMESTAMP,'YYYY')
UNION
-- Level 2
select
2, to_char(ORDER_TIMESTAMP,'YYYYMM'), to_char(ORDER_TIMESTAMP,'YYYY'),
to_char(ORDER_TIMESTAMP,'Month'), null,
sum(ORDER_TOTAL), count(*),
count(*)*10, count(*)*100
from DEMO_ORDERS
group by
to_char(ORDER_TIMESTAMP,'YYYYMM'), to_char(ORDER_TIMESTAMP,'YYYY'),
to_char(ORDER_TIMESTAMP,'Month')
UNION
-- Level 3 (Leaf Level)
select
3, to_char(ORDER_TIMESTAMP,'YYYYMMDD'), to_char(ORDER_TIMESTAMP,'YYYYMM'),
to_char(ORDER_TIMESTAMP,'DD. Day'), null,
sum(ORDER_TOTAL), count(*),
count(*)*10, count(*)*100
from DEMO_ORDERS
group by
to_char(ORDER_TIMESTAMP,'YYYYMMDD'), to_char(ORDER_TIMESTAMP,'YYYYMM'),
to_char(ORDER_TIMESTAMP,'DD. Day')
)If you use stylesheets the above query will be more suitable.
See also:
Expand/Collpase Lists
Hope that helps, Willi -
HI sap guys,
Let me know fi drill down reporting configuration(with one example)
regards
srinivaswelcome to SCN!!!!!!
check the below thread.
Drill down Reporting -
Drill Down Report (Denes Kubicek)
Hi Denes and everyone
I would like to create a drill down report.
I have 5 tables namely:
1. Method (method varchar2(60) PK)
2. Category (cat varchar2(60) PK, method varchar2(60) FK)
3. Skill_type (type varchar2(60) PK, cat varchar2(60) FK, method varchar2(60) FK)
4. Skills (type varchar2(60) FK, empno NUMBER FK, status char(1))
5. Emp (fname varchar2(60), lname varchar2(60), empno NUMBER PK)
and a view between Skills and Skill_type: (type varchar2(60) FK, empno NUMBER FK, status char(1))
The user should select a method he/she obtained the skills (e.g. Internally or externally) then after selecting it drills down to skill category (e.g. systems, softskills, technical or HR) then the user should click a category and drills down to skill type (e.g. microsoft word, conflict management or A+) here the user should click a checkbox or Y to indicate which skills he/she have and then click a submit/save button which updates/insert the view/skills table(4).
Example
Surname Name softskills Microsoft
Leadership Change_Management Motivation Conflict_Management MS_Projects MS_Word MS_PowerPoint MS_Excel
james pete Y Y Y Is there anyway I can use a drill down report, tabular form or anyother options.
Your guidance will be appreciated.
Kind regards
MelI got a solution for drill down, all i need is updating the skills table
here the user should click a checkbox or Y to indicate which skills he/she have and then click a submit/save button which updates/insert the view/skills table(4).
Example
Surname Name softskills Microsoft
Leadership Change_Management Motivation Conflict_Management MS_Projects MS_Word MS_PowerPoint MS_Excel
james pete Y Y Y Thanks -
Hi All,
I am new to BO i dont know much in BO.Is it possible to create Drill down Reports in Xcelsius.
For Example,
Sales Org Revenue
A 10000
B 20000
If we select Sales Organization A or B then the Report would be
Sales Org Material Group Revenue
A 10 5000
A 20 5000
B 30 10000
B 40 10000
If we select Sales Org A or B then the Report would be
Sales Org Material Group Material Revenue
A 10 MAT01 3000
A 10 MAT02 2000
A 20 MAT03 5000
B 30 MAT04 10000
B 40 MAT05 10000
Like this i want to display the Report.How it possible in Xcelsius.Please help me it will be more useful.
Thanks,
Shiva
Edited by: siva kumar on Dec 5, 2011 7:50 PMyou can do drill in xcelsisu but for that you need to create 2 webi reports r use 2 different queries .(i dont know which verion of BI you are on)
how mnay organizations do you have if its a small number that you can create a lay out with drop down on left for organization and create 2 tables 1 for organization a data.. if pressed to be visible and 1 for b..
and if 1 and 2 are pressed then show the tired table with both data.
do it in excel using live office webi connection to bring the data in then import the data in excelsisu.. do all your calculations in excel first then bring it to Xcelsius
If we select Sales Organization A or B then the Report would be
Sales Org Material Group Revenue
A 10 5000
A 20 5000
B 30 10000
B 40 10000
If we select Sales Org A or B then the Report would be ( i think you mean and here)
Sales Org Material Group Material Revenue
A 10 MAT01 3000
A 10 MAT02 2000
A 20 MAT03 5000
B 30 MAT04 10000
B 40 MAT05 10000 -
Drill Down Report by Grouping Data
I am using Apex version 4.
I'm wondering if there's a way to create a drill down report by grouping data and having a plus (+) symbol (or some other symbol) next to the group so the end user can expand or collapse as they want. So similar to how it works in Microsoft Excel.
So I'm looking to build a report that looks something like:
Market Office Revenue
1 $200
a $50
b $70
c $30
d $50
So there would be a way to expand or collapse the list of offices.
Anyone know of any way to do this? I was hoping to avoid having to create linked reports. Even if there's no way to get the expand/collapse functionality to work, it would be acceptable to just show the data as I have in my example above.
Thanks.Sorry, the format of my example got messed up.
It's basically a hierarchy between Market and Office. So it's Market 1, then underneath that it would be Office a, b, c, and d. One market, multiple offices. Total market revenue of $200, then each office has the amounts listed.
Hope that makes sense. -
Passing Mulitiple Parameters in a Drill Down Report
Hi,
I can pass single parameter in a Drill Down Report..
But i cant passes more then one parameter at same time,,
Example.
First I tried Dates passes to another Report its work
srw.run_report('report=D:\REPORTS\LIST_OF_DISBRUSTMENTS destype=screen paramform=yes
SDATE='||TO_DATE(:SDATE)||'');
Now I want SDATE with 2 other parameters that are
Acct_MGR and EDATE...how can i use them in Drill Down Report..
I tried as Much I can but Parameter hasnt pass properly.did you try using + sign, e.g.
.....+Acct_MGR=:acmgr+EDATE=:enddate -
How to call a drill down report using hyperlink ?
Can anyone please give an example to call a drill down report using hyper link in Reports 10g ?
Regards
Capri !!!Hi,
I've been using this approach in a couple of reports and it works great with one problem. Even if I include the srw.set_hyperlink_attr('target=_new") it still launches the drill report in the current window. When the user hits the back button it doesn't take them back to the main report it takes them back to the reports/rwservlet? page. Can you see if there is anything I'm doing wrong...would be a really cool report if I could force it to open a new window.
Here is what my code looks like:
srw.set_hyperlink(:P_SERVER || 'dwn&report=transaction2_v8.rdf' ||
'&PARAM_COMP_NUM=1' || '&PARAM_ACTV1=' || TRIM(:actvty_cd) || '&PARAM_ACTV2=&PARAM_ACTV3=&PARAM_ACTV4=&PARAM_ACTV5=&PARAM_ACTV6=' ||
'&PARAM_START_DATE=&PARAM_END_DATE=' || '&PARAM_FY_NUM=' || vYear || '&PARAM_PERIOD=0' || '&PARAM_ACTVTY_GRP=%20' ||
'&PARAM_LIST=%20' || '&PARAM_START_ACCT_CAT=' || TRIM(vCat) || '&PARAM_END_ACCT_CAT=' || trim(vCat2)|| '&PARAM_SYS_CODE=%20' ||
'&PARAM_SRC_CODE=%20' || '&PARAM_DATA_TYPE_CD=P' || '&PARAM_ACT_STATUS=%20');
SRW.SET_TEXT_COLOR('blue');
srw.set_hyperlink_attrs('target=_new');
Also I get different behavior if the user saves the PDF and opens the report through their pdf reader.
Thanks for your help -
ALV interactive drill down report
Hi,
I have a requirement to display the header details on an ALV report
date -- level1level2level3...level4
Here level1,2,3,4 contains the counts of item details based on level
Now i need to display second drill down report, when user clicks on specific cell for levels.
e.g.,
when user clicks on count for level2, i need to show drill down report for level2 items for that date.
Can any one give me some ideas for this ALV report...
THanks in advance.
points will be awarded immediatelyIf you need to know how to do drill down, here is an example program.
report zrich_0001.
* Global ALV Data Declarations
type-pools: slis.
* Internal Tables
data: begin of itab occurs 0,
matnr type mara-matnr,
maktx type makt-maktx,
end of itab.
start-of-selection.
perform get_data.
perform call_alv.
* Form GET_DATA
form get_data.
select mara~matnr makt~maktx
into corresponding fields of table itab
from mara
inner join makt
on mara~matnr = makt~matnr
up to 20 rows.
endform.
* CALL_ALV
form call_alv.
data: ifc type slis_t_fieldcat_alv.
data: xfc type slis_fieldcat_alv.
data: repid type sy-repid.
repid = sy-repid.
clear xfc. refresh ifc.
clear xfc.
xfc-reptext_ddic = 'Material Number'.
xfc-fieldname = 'MATNR'.
xfc-tabname = 'ITAB'.
xfc-outputlen = '18'.
append xfc to ifc.
clear xfc.
xfc-reptext_ddic = 'Material Description'.
xfc-fieldname = 'MAKTX'.
xfc-tabname = 'ITAB'.
xfc-outputlen = '40'.
append xfc to ifc.
* Call ABAP List Viewer (ALV)
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = repid
i_callback_user_command = 'HANDLE_USER_COMMAND'
it_fieldcat = ifc
tables
t_outtab = itab.
endform.
* FORM handle_User_Command *
form handle_user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when '&IC1'.
case rs_selfield-FIELDNAME.
when 'MATNR'.
set parameter id 'MAT' field rs_selfield-value.
call transaction 'MD04' and skip first screen.
endcase.
endcase.
endform.
Regards,
Rich Heilman -
Mr. Kubicek's "Report on Report" is excellent if anyone is looking for a drill down report, but if Denes or someone could help me with one last piece, I would be indebted.
I have aggregated values for the columns I wanted to total for each employee in Report 1: "Total # of Sales" and "Total $ Sales". These totals become links for the drill down in Report 2. Clicking on the aggregate total of "Total $ Sales" in Report 1 will show all related individual sales records for that employee in Report 2.
My problem is in sorting Report 1 by the aggregate columns, "Total # of Employees" and "Total $ Sales". The columns do not sort correctly from high to low etc. I have copied Denes report code exactly. What do I add or change to sort these two aggregate columns from high to low? Thank you all.
MikeThanks so much, Dimitri. I don't have the link, but here is my query (does this give you enough to diagnose?). The columns etc differ from my original post (I was trying to keep it simple in my example...).
SELECT "l_t_num","l_truck_name",
'<span style="font-weight:bold;">'
|| '<a href="f?p=&APP_ID.:113:&SESSION.::NO::'
|| 'P113_TRUCKNO,P113_TRUCKNO_COUNT,P113_TRUCKNO_PAID:'
|| l_t_num"
|| ','
|| "l_t_num"
|| ','
|| NULL
|| '">'
|| COUNT (*)
|| '</a></span>' "l_file_number",
'<span style="font-weight:bold;">'
|| '<a href="f?p=&APP_ID.:113:&SESSION.::NO::'
|| 'P113_TRUCKNO,P113_TRUCKNO_COUNT,P113_TRUCKNO_PAID:'
|| "l_t_num"
|| ','
|| NULL
|| ','
|| "l_t_num"
|| '">'
|| TO_CHAR (SUM ("l_due_to_truck"), 'FML999G999G999G999G990')
|| '</a></span>' sum_truck_cost
FROM "LOADS_HISTORY_NC"
where instr(':' || :P113_YEAR || ':',SUBSTR("l_file_number",3,2)) > 0
AND instr(':' || :P113_MONTH || ':', SUBSTR("l_file_number",5,2)) > 0
GROUP BY "l_t_num", "l_truck_name"
The two results columns are 'sum_truck_cost' and a count of "l_file_number" for each carrier ("l_truck_name"). These two columns in my report are aggregate values and are links. Clicking on either the 'sum_truck_cost' value or count value opens a second report with the individual records. I have enabled the sorting option for these columns in Report Attributes, but manually sorting the columns does not put the records in correct asc or desc order based on either total.
This is almost exactly as Denes has on his site, so he has a working example. I have only inserted my own columns into his code etc. Thank you so much Dimitri!!
Mike
Maybe you are looking for
-
Adobe photoshop lagging in my new retina macbook pro, what to do ?
i just bought a new mbp retina 15', adobe photoshop cs6 lags when scrolling or moving the image, also lags when zooming in or out. sometimes the brush responds after a second or two. very disappointed . I have updated photoshop to the latest version.
-
Cannot Connect to Mac App Store
When I open the MAS, I get a "Cannot Connect to the App Store" alert in the window. When I try to signin, I receive a red "Connection failed" message in the signin dialog box. When I go to Software Update from the Apple Menu, I receive a notice that
-
Sp L records are coming to the PSA and not updating in the data target
Special Ledger records are coming to the PSA and not updating in the data target in the month end and the info package is failing - because of that we are doing manual updating from PSA to the data target - Can so one can tell the reasons why this is
-
Hi, I try to install 9iAS R2 j2ee only on Suse 7.2 linux. I get some errors: 1) When installing the jdk: 'Error in setting permissions of file <oraclebasedir>/jre/bin/.java_wrapper' But this file does not exits (also not in the tmp/installer dir. Whe
-
How do you fix a white screen on a ipod touch
how do you fix a white screen on a ipod touch