Drill down in tree report
Hi gurus,
This is regarding the drill down in the Tree report.
My scenario is,
i am doing a budget variance report which displays the report in tree format.
i have texts for different nodes in the tree, along with that i have a 10 feilds which i display using fieldcat in output along with nodes.
now i want to have the drill down to the 2 of the fields, where it has to go to some transaction.
i tried with hotspot in fieldcat definition but it is not working.
please can u tell me a solution as how can i do this drill down.
thanks in advance.
u will be rewarded heavily.
Hi Vipin,
You can try with following example:
*& Report ZPRG *
&--INTERACTIVE ALV REPORT PROGRAM--
&This program displays order detais for a particular customer----
REPORT zprg .
--TYPE POOLS--
TYPE-POOLS slis.
--TABLES--
TABLES : kna1, vbak.
--DATA TYPES--
TYPES : BEGIN OF ty_vbak,
vbeln TYPE vbak-vbeln,
erdat TYPE vbak-erdat,
netwr TYPE vbak-netwr,
END OF ty_vbak.
TYPES : BEGIN OF ty_vbap,
posnr TYPE vbap-posnr,
arktx TYPE vbap-arktx,
werks TYPE vbap-werks,
END OF ty_vbap.
--WORK AREAS--
FOR FIRST PAGE *
DATA w_fcat TYPE slis_fieldcat_alv. "Used as Header for Field Catalog
DATA w_vbak TYPE ty_vbak. "Used as Header for Data Table
DATA w_events TYPE slis_alv_event. "Used as header for Events Table
DATA w_comments TYPE slis_listheader. "Used as Header for Comments Table
SECOND PAGE *
DATA w2_fcat TYPE slis_fieldcat_alv. "Used as Header for Field Catalog
DATA w2_vbap TYPE ty_vbap. "Used as Header for Data Table
DATA w2_events TYPE slis_alv_event. "Used as header for Events Table
DATA w2_comments TYPE slis_listheader."Used as Header for Comments Table
--INTERNAL TABLES--
FOR FIRST PAGE *
DATA t_fcat TYPE slis_t_fieldcat_alv. "Table for Field Catalog
DATA t_vbak TYPE ty_vbak OCCURS 1. "Data Table
DATA t_events TYPE slis_t_event. "Table for events
DATA t_comments TYPE slis_t_listheader. "Comments table
SECOND PAGE *
DATA t2_fcat TYPE slis_t_fieldcat_alv. "Table for Field Catalog
DATA t2_vbap TYPE ty_vbap OCCURS 1. "Data Table
DATA t2_events TYPE slis_t_event. "Table for events
DATA t2_comments TYPE slis_t_listheader. "Comments table
*****************VIPIN: START*****************************
DATA: V_REPID LIKE SY-REPID.
V_REPID = SY-REPID.
*****************VIPIN: END*******************************
--SELECTION SCREEN--
PARAMETERS p_custno TYPE kna1-kunnr.
--FILLING FIELD CATALOG--
FOR FIRST PAGE *
w_fcat-col_pos = 1.
w_fcat-fieldname = 'VBELN'.
w_fcat-seltext_m = 'ORDER NUMBER'.
APPEND w_fcat TO t_fcat.
w_fcat-col_pos = 2.
w_fcat-fieldname = 'ERDAT'.
w_fcat-seltext_m = 'ORDER DATE'.
APPEND w_fcat TO t_fcat.
w_fcat-col_pos = 3.
w_fcat-fieldname = 'NETWR'.
w_fcat-seltext_m = 'ORDER VALUE'.
APPEND w_fcat TO t_fcat.
SECOND PAGE *
w2_fcat-col_pos = 1.
w2_fcat-fieldname = 'POSNR'.
w2_fcat-seltext_m = 'ITEM NUMBER'.
APPEND w2_fcat TO t2_fcat.
w2_fcat-col_pos = 2.
w2_fcat-fieldname = 'ARKTX'.
w2_fcat-seltext_m = 'ITEM DESCRIPTION'.
APPEND w2_fcat TO t2_fcat.
w2_fcat-col_pos = 3.
w2_fcat-fieldname = 'WERKS'.
w2_fcat-seltext_m = 'PLANT'.
APPEND w2_fcat TO t2_fcat.
--FILLING DATA TABLE--
FOR FIRST PAGE *
SELECT vbeln
erdat
netwr
FROM vbak
INTO TABLE t_vbak
WHERE kunnr = p_custno.
SORT t_vbak BY vbeln.
SECOND PAGE *
DATA FOR 2ND PAGE IS FILLED IN THE SUBROUTINE HANDLING USER_COMMAND *
--FILLING EVENTS TABLE--
w_events-name = 'TOP_OF_PAGE'.
w_events-form = 'SUB1'.
APPEND w_events TO t_events.
w_events-name = 'USER_COMMAND'.
w_events-form = 'SUB2'.
APPEND w_events TO t_events.
--FILLING COMMENTS TABLE--
w_comments-typ = 'H'.
w_comments-info = 'CUSTOMER ORDER INFORMATION'.
APPEND w_comments TO t_comments.
w_comments-typ = 'S'.
w_comments-key = 'Sold To Party'.
w_comments-info = p_custno.
APPEND w_comments TO t_comments.
-----PASSING FIELD CATALOG AND THE DATA TABLE TO THE FUNCTION-----
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = V_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
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 =
it_fieldcat = t_fcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
it_events = t_events
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = t_vbak
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Subroutine for the Event TOP_OF_PAGE
FORM sub1 .
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_comments
i_logo = 'COMPANY LOGO'
I_END_OF_LIST_GRID =
ENDFORM. " sub1
Subroutine for the Event USER_COMMAND
Here u_comm contains the function code of the selected function
and slis_field is a structure containing cursor information
FORM sub2 USING u_comm LIKE sy-ucomm rs_field TYPE slis_selfield.
CASE u_comm.
WHEN '&IC1'.
IF rs_field-fieldname = 'VBELN'.
SELECT posnr
arktx
werks
FROM vbap INTO TABLE t2_vbap WHERE vbeln = rs_field-value.
ENDIF.
ENDCASE.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = ' '
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
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 =
it_fieldcat = t2_fcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = t2_vbap.
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "sub2
Similar Messages
-
Hi,
Is there any way to display the drill down in webi report. For example:
YearQuarterMonth--Week.......
if the drill the Year option I can able to see all Quarter level measures and if I drill down further I can get into Month level measures and Week level and so on .
But my question is When I drill the Year to Quarter...I want it to display both Year and Quarter and If I drill down further
I want all the measures related to Year ,Quarter, Month and so on
Basically want I need is a tree level hierarchy......Could any one plz help me what all changes I need to make in order to get a detailed report.
Thanks
Sushma
Edited by: Sushma Reddy on Feb 9, 2010 9:44 PMHi,
Try to create a Class e.g Time in universe and objects to that class as year, quarter,month as
Year Object -> data type -> D/N
select To_date('sysdate','YYYY) as year from dual
Month object-> data type -> D/N
select to_date)'sysdate','MM') as month from dual;
Quarter -> data type -> D/N
case when @select(Time/Month) in (1,2,3) then q1
when @select(Time/Month) in (4,5,6) then q2
when @select(Time/Month) in (7,8,9) then q4
when @select(Time/Month) in (10,11,12) then q4
endcase
Then create a hierarch in tools -> hiearchy ->custom hierarchy and add the above class there then in any report (Deski/WebI)
you will get the above hierarchy and use it according to your requirement.
Cheers,
Suresh Aluri. -
Not able to drill down S_ALR_87013558 in reports
Hello Experts,
I am in strange situation where in I am not able to drill down my budget report S_ALR_87013558 in my development client. But it is working fine in production client.
What could be the reason.?
Please suggest.
Thanks,
Kumar SrinivasanHi Kumar,
Follow below steps in sequence.
1. Please execute CJE2.
2. Double Click on report 12KST1A. Message will come "You are changing an SAP delivery object". Press the tick mark.
3. On Output Type tab, you must have clicked on radio button "Graphical Report Output". Please change the radio button classical drilldown and check "Available on Selection Screen" at the buttom.
4. Save it.
Check your report again and you will have an option there.
Regards,
Amit -
How to setup the drill down on union report
Hi,
I'm setting the union report.
I want to set the drill down to another report.
But I can't setup it.
Would you please tell me how to setup.
Thank you.Hi Hemlatha
In Crystal Reports, to prevent the ability to drill down into a subreport when published on the Web, add a text object that is filled with blank spaces, created by pressing the 'Space Bar' and 'Enter' for line returns, to eclipse the subreport.
This workaround is applicable only to subreports that does not grow in size. For example, subreports that display only a chart or graph.
Steps to Add a Text Object over a Subreport
1. In the Crystal Reports Designer of the main report, insert a text object over the subreport.
2. Resize the text object to be the same size or a little larger than the subreport object on the main report.
3. Fill the text object with blank spaces created by pressing the 'Space Bar' and 'Enter'. This is necessary because resizing a text object without
the blank spaces will not maintain its size when it has been published on the Web.
====================
NOTE:
You can format the text object with a hyperlink to another report, another file or a URL.
====================
Now, when the Crystal report is previewed on the Web, the text object that fully eclipses the subreport will prevent the ability to drill down into it.
Regards
Girish -
Drill-down lost in Report Builder
Ever since the CFMX7.02 upgrade, we have lost the ability to
drill-down on the Report Builder reports which previously had
drill-down capability. I am referring to summary lines which
contained a link to the detail. Has anyone experienced this and is
there a fix for it?Do you choose PDF instead of flash paper as the output
format? By some reason, the drill-down function does not work in
flash paper format.
Good luck,
Daniel -
HOW TO ADD DRILL DOWN IN A REPORT
hi
well i want to add drill down in my report....
im unable to find it ....
can you please help me to make a drill down in my report.
thnx and regards
UMAR NAYAB.hey thnx toronto..
im able to make drill in my report....
now my chart is not changing its data according to drill.....
like my bar chart should also change with the data drilled down....
please help regarding this....
regards. -
Hi
Can we have drill down in XL Reporter -Report Organizer
Regards
FarheenHi Rekha,
We can user drill down in XL reporter composer and excel . IN rerport composer when you drag a field to the selection criteria then you can drill down by transaction level.
But Report organiser is where all the reports are saved and give a look and feel like windows explorer.
What is your requirement. Post reporting related queries in the reporting forum
[Reporting and Printing;
Regards,
Rakesh N -
PIE Chart Drill down in bex report
Hi Friends,
In my bex report i have pie chart for year 2008.
Shall I drill down on this report means if i click on one part of the pie chart will i go to another report or another pie chart.
Can any one pls tell me is it possible .
Thanks & Regards,
Ramnaresh.
Edited by: ramnaresh porana on Dec 1, 2008 6:35 AMHi ,
Thanks for reply.
how it is possible from context menu of the pie chart , i have seen the context menu of the pie chart but i did not get any related option for this one.
Can you pls guide me.
Thanks & Regards,
Ramnaresh. -
Error Message appears when drilling down from a report.
Hi,
I am using CR XI R2.
I have an rpt file that displays a chart from a sub report.
I tested it on the CR designer and report viewer - works ok.
When I display this report in my .Net application, I get an error message when drilling down from this chart : "The Report Application Server failed"
When looking at the log files I see this error message:
4 19 13:11:14.770 5336 5564 (\servers\ras\dtsagent\reporthandler.cpp:11622): CReportHandler::buildReportViewerError: CSResultException thrown. ErrorSrc:"CRPE" FileName:"\servers\ras\dtsagent\reporthandler.cpp" LineNum:11618 ErrorCode:997 ErrorMsg:"" DetailedErrorMsg:""
This is a Viewer error - but when drilling down from the Report Viewer I don't get this exception.
Does anyone know what this mean?Too strange and my require a phone support case;
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
Three ideas:
1) Install CR designer on one of the boxes where this does not work and try to run the report there
2) Add a line to your code and save out the report just after your database logon once ( .saveAs). try to run this report in the CR designer.
3) Use the [modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility to compare the runtime - both CR and db client between computers that work and those that do not.
Ludek -
Hi experts,
any can help me in this topic Drill-down into AWR reports.A typical AWR report - produced in html format- includes its main categories(for example Top 5 timed events) hyperlinked. By clicking on each one , you can navigate to a thorough analysis of all db parameters regarding it......
Anyway....Can you more specific of what exactly do you want...?????
Greetings...
Sim -
Drill down hide/show report on same page
Hi,
Is it possible to create a drill down report where instead of linking to new pages, the details can be displayed using hide/show buttons on the relevant columns? For example, if you have the following fields:
Region
Country
Division
Account
Order
Product ID
Product Price
Would it be possible to ,by default, have the report only show distinct regions. By clicking an expand button on a particular region, it's countries are displayed. By clicking an expand button on a country, its divisions are displayed,etc., eventually being able to drill down to order details.
This seems similar to a tree to me, although I have not used trees before. However, from the way I understand the structure of hierarchy in trees, the way this data is structured it would not be possible through a tree.
Any ideas? If not I can just settle on a standard drill down report with links to new pages, but if the above is possible it would work much better for my users.
ThanksFJW,
Yes, it's possible. We typically refer people to this demo from Carl to get an idea of how it can be accomplished:
http://htmldb.oracle.com/pls/otn/f?p=11933:13
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen -
Drill down ( Collapsible Row ) Report in BEx query designer ?
Dear Friends!
I am supoosed to create a report drill down report for Purchasing History to be precise, I know that we can have drill down feature using heirarchy but is it possible for Us to have PO & PO item heirarachy ? or any other way to do drill down reporting in SAP BEx Query designer ?
like my current report is : -
| Vendor | Purchasing Organisation | Purchasing Group | Plant | PO Number | Item | Material / Service | Description | .... ( keyfigures) |
Now I am supposed to create a report in which
normal view
| Vendor | Purchasing Organisation | Purchasing Group | Plant | |> PO Number| .... ( keyfigures) | Payment |
drill down or collapsible view ( please consider the heading as data I am not talking about dynamically change of headings ).
| Vendor | Purchasing Organisation | Purchasing Group | Plant | V PO Number | Item | Material / Service | Description | .... ( keyfigures) |
is there anyway to design the report in above mention manner ? you any input will be appreciated greatly.
Thank you so much!
Regards
NaimHi Naim,
usually we don't do the transactional data as hierarchy. not sure the reason behind your requirement.
we can do one of the below :-
1. To have the default view as
| Vendor | Purchasing Organisation | Purchasing Group | Plant | | PO Number| .( keyfigures) | Payment |
and then user can drill down on rest of the characteristics for detailed view later on.
2. or if they don't want to drill down on characteristics;-
we can build 2 reports , one for header level information and then jump to second query for detailed information(item level) using RRI.
first query:
| Vendor | Purchasing Organisation | Purchasing Group | Plant | | PO Number| .( keyfigures) | Payment |
second query:
| Vendor | Purchasing Organisation | Purchasing Group | Plant | PO Number | Item | Material / Service | Description | .... ( keyfigures) |
Let us know if this works out?
Regards,
Sakthi. -
Issue to drill down from a report
Hi,
Our requirement is we need to show three different graphs in a single report representing different data, from that we need to drill down to a new different report ;
Two approaches we tried with crystal report are;
1. We put three graphs and the table in the single report and tried to implement drill down for each graph. We could group data on the basis of first pie chart data and could drill down. But while we tried to group data for second bar chart grouping is happening only as a sub group of first group. Ie, we cannot group data independently for different charts.
2. In the second approach we created different 3 sub reports and added in to a main report. But Crystal report is not supporting sub report to a sub report. Ie, we cannot go to drill down report.
It would be a great help, if you could suggest some solution.
Thanks,
JomyHi,
As per my understanding, you have one report say Parent1 (SA1) and one Report say Child1 (SA2), now you want to pass some values from parent1 to child1.
1> Create 1 interim report from parent1.
2> In your Child report in filter part use result based on another analysis.
Please let me know if it resolves yourissues.
Thanks
Anirban -
Issue with drill down in Financial Reporting 11.1.2.2
Hi All,
I have a requirement like this :
I have different dimensions for Year and Period(Period has half years and also quarters ).
The requirement is like that when the report opens up the rport should look like this:
YearTotal
FY12 FY13
Accounts
Now the user wants to drill down on YearTotal and it should show in the following way:
H1 H2
FY12 FY13 FY12 FY13
Accounts
and so on.
Still now whatever I have tried I am unable to acheive this . Any ideas whther this is acheivable or not ????
Regards,
SauravEven without drill(allow expansion) you can only achieve that only by using merge option.
With merge the drill will not work.
It'll not be a pretty report.
Regards
Celvin
http://www.orahyplabs.com -
How to go to a particular object in drill down detail pdf report?
In drill down html reports I could directly go to a particular object in the detail report from the summary report by using hyperlink destination property in the detail report and hyperlink property in the summary report.
How can I do the same thing in drill down pdf reports? The summary pdf report is opened first and then clicking on any of the object in summary pdf report should direct me to the same object in detail report.
Thanks for your help.
-JayshreeUnfortunately PDF doesn't support this concept. You could ensure that the detail report has bookmarks, then the user can easily see the different sections of the report.
Hope this helps,
Danny
Maybe you are looking for
-
I just can't figure out how to arrange my iTunes library with the newest version that I just downloaded and I'd appreciate if anyone knew how to help me! Thanks
-
In Adobe 9, when you archive files from outlook to pdf, when multiple files are bound together, is there a way to print the "list" o f documents and not the documents themselves? If possible please tell me the exact steps needs to be taken PLEASE HE
-
Driver for 40Y8686 CD-RW/DVD-ROM Combo II Drive
For the life of me, I cannot find this driver for download from the web site. Any pointers would be GREATLY appreciated!
-
My contact page will not accept any inputs.
Here is the entire problem. 1. on my contact page built with Flash CS5, I try to enter text into the boxes. Only the characters c,l,o,n,t will actually type. Nothing else enters. What did i do wrong? 2. I can't for the life of me, make a pretty flash
-
I have a little problem with disappearing CD-ROM's. When I put a CD in any of my drives they all disappear from "My Computer". I have to restart the computer sometimes 5 or more times before they show up. When the drives do not show the door will not