Reports 3.0 - Drilldown parameters
I am trying to deploy a drilldown report over the Web. I have
added a hypertext link to the main report and can run the child
report without any problems. What I now want to do is pass a
parameter from the calling report to the child report. At the
moment, I have created an individual .html report for each
possible value of the parameter and referenced the parameter as
part of the filename in the SET_HYPERLINK call. This will get
impossible though as the number of clients increases ( one for
each !!!! ).
Is there any way round this ?
Cheers
null
Hi!
I think you will able to run this way
begin
srw.attr.mask := srw.HYPERLINK_ATTR;
srw.attr.hyperlink
:=:web_addr
Similar Messages
-
Creating a Crystal Report for B1 without parameters
Hi Experts,
My question is a simple one.
I create a crystal report for SAP B1 8.8 Patch 10 using CR 2008 SP02.
I have no parameters since its showing sales figures of the past month.
But when I run the report in SAP, a selection criteria screen pops up without any fields.
Just OK and Cancel.
I dont want my users to have to click OK. I need the report to pop-up once the user click on the SAP Menu for the report.
My report file has no parameters.
Thanks for the help
DenisDeinis,
In your report, do you mean:
- you have parameter created, but not used in the report? OR
- there is no parameter field in the report at all?
The reason I am asking is:
If you have parameter fields, But, you did not use it in the report, I think when you run the report within SAP B1, it will still prompts for user to enter something.
Also, if you are using subreport, make sure there is no parameter in the subreport, Although you do not use them. Just delete the parameter field from the list if you are not using them.
Edited by: Shwu Hua Gan on Jun 20, 2010 2:59 AM -
Creating snapshot in SSRS 2008 R2 report will disable some parameters.
Hi guys.
I'm new to SSRS, so the question that I'm going to ask might sound stupid, hope you guys don't mind.
I have a few reports that display data based on the snapshot. I found out that some of the parameters on certain reports were disabled and some are not. When I removed the snapshot setting and display the report based on latest data, those disabled parameters
will be enabled again.
After some search from Google, I understand that when using snapshot, the parameters will be disabled. But in my case, not all parameters are disabled. And there is some reports with snapshot, all of their parameters are enabled. Please help me on this if
there is any settings that I need to do to enable all of the parameters.
Thanks and have a nice day.Hi engloon,
According to your description, you want to enable parameters when creating a snapshot. Right?
In Reporting Services, Snapshots can be created manually or at scheduled intervals for any report that can run unattended. Furthermore, if the report uses parameters, you must specify default values to use when the report runs. You can specify stored credentials
and parameter values in the property pages for the report.
In this scenario, you may have default values for parameters in some reports so that it looks those reports have parameters enabled. So if you want to have snapshot rendered with parameter selection, you can specify the default values in Parameter tab. Please
follow the steps below:
Open Report Manager, and locate the report for which you want to modify parameter settings.
Hover over the report, and click the drop-down arrow.
In the drop-down menu, click Manage. This opens the General properties page for the report.
Select the Parameters tab. If the Parameters tab is not visible, the report does not contain parameters.
Reference:
Create, Modify, and Delete Snapshots in Report History
Add a Snapshot to Report History (Report Manager)
Parameters Properties Page (Report Manager)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Report painter report can not drilldown
Dear all,
I created a report using report painter(GRR1), the library is IVK.
however, I found that this report can not drilldown to the item details, would anyone tell me am I missing something? thanks.
BenThe fields we have added is ZZFIELD1 ZZFIELD2 in the PRPS table. And the key figures used in the report is;
AWKG - variance/accrual costs (basic key figure) with characteristic version 0, value type 32, fiscal year and period
SWKG - cost (basic key figure) with characteristic version 0, value type 4, fiscal year and period.
SMEG - quantity (basic key figure) with characteristic version 0, value type 4, fiscal year and period. -
BI: Virtual Provider for ECC Report with same selection parameters
Dear all,
I have attached screen shot of ECC report selection screen with contain Material, Plant and Dates. As report is bit complex and I need to use just ITAB (internal table) of it for further use in BEx Query and for Dashboard purposes.
Problem: I need to call this report by creating Virtual Provider in BI so that I get data from ECC at runtime as it is shares report so I can't able to save any data in transparent table as report calculated opening balances at runtime.
It is possible for me by using function module i can get itab by submit return and then create Data Source for it ?
As i make copy of FM ZZRSAX_BIW_GET_SIMPLE i cannot use submit there due to OPEN CURSOR mechanism there.
Kindly anyone suggest how it is possible to call report with same selection parameters for creation of virtual provider.
Please mention if i miss any point in explaining problem.
Feel free to ask for any query.
Many thanks.
Hoping for positive and quick responses.please create 2 reports as given below.-
REPORT ZSZP_00007.
parameters a(5) .
parameters b(5) .
parameters c(5) .
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'A' or screen-name = 'B' .
get parameter id 'aaaaaaaaaaa' field a.
get parameter id 'bbbbbbbbbbb' field B.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
start-of-selection.
your logic
REPORT zszp_00005.
PARAMETERS a(5).
PARAMETERS b(5).
START-OF-SELECTION.
SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.
SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.
your logic
SUBMIT zszp_00007 VIA SELECTION-SCREEN.
i hope this approach will solve your problem.
thanks
Swanand -
How to create an interactive alv report in which some parameters
hi all,
i want to create an interactive alv report in which some parameters in selection screen
& when fill those & press f8 then an alv list display will show & when user double click on
any row then those contents get shown in header details of module pool program which call by
tcode mentioned in same alv .And same an interactive alv report used for change & display.
please help me give me some code same as required above.
ketan
abap consultant.
Edited by: ketan pande on Feb 14, 2009 6:09 AMHi Ketan,
Please find Sample Code.
TYPE-POOLS:slis.
DATA:
w_carrid TYPE scarr-carrid,
it_fieldcat TYPE slis_t_fieldcat_alv,
fs_fieldcat LIKE LINE OF it_fieldcat,
it_eventcat TYPE slis_t_event,
fs_eventcat LIKE LINE OF it_fieldcat.
DATA:
t_spfli LIKE STANDARD TABLE OF spfli,
fs_spfli LIKE LINE OF t_spfli,
t_sflight LIKE STANDARD TABLE OF sflight,
fs_sflight LIKE LINE OF t_sflight.
SELECT-OPTIONS:
s_carrid FOR w_carrid.
START-OF-SELECTION.
SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid IN s_carrid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_user_command = 'PICK'
i_structure_name = 'SPFLI'
TABLES
t_outtab = t_spfli
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.
*& Form PICK
FORM pick USING command LIKE sy-ucomm
selfield TYPE slis_selfield.
READ TABLE t_spfli INTO fs_spfli INDEX selfield-tabindex.
CASE command.
WHEN '&IC1'.
SELECT * FROM sflight
INTO TABLE t_sflight
WHERE carrid = fs_spfli-carrid
and connid = fs_spfli-connid.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
I_INTERNAL_TABNAME =
i_structure_name = 'SFLIGHT'
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = it_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME =
IS_LAYOUT =
it_fieldcat = it_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
it_events = it_eventcat
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
IR_SALV_LIST_ADAPTER =
IT_EXCEPT_QINFO =
I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = t_sflight
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.
ENDCASE.
ENDFORM. "pick
Hope this will Be Helpful
Thanks
Kalyan -
CF8 Report Builder duplicates subreport parameters
I am experiencing this problem running Report Builder under
Windows XP:
1. Create a report.
2. Create a subreport that has input parameters.
3. Add the subreport to the primary report and define
subreport parameters.
4. Save and close both files.
5. Reopen the primary report file.
6. Look at the list of subreport parameters for the linked
subreport
I routinely find that in this scenario, any subreport
parameter that I originally defined has been duplicated, such that
if I started with:
varOne - #query.foo#
varTwo - #query.bar#
Upon reopening the primary report and insepcting the
subreport paramaters list I will see:
varOne - #query.foo#
varTwo - #query.bar#
varOne - #query.foo#
varTwo - #query.bar#
Which causes errors when I attempt to run the report.
What's the patch schedule for report builder?This problem appears to be fixed in build 181436 of the
Report Builder -
How to spilt columns dynamically in the report based on Date Parameters
Hi All,
We have an XML Publisher report in which the parameters are Fom date and To date.
User wants the data in the report to be split dynamically based on the months in the From date and To date interval.
Eg. if the From date is 01-JAN-2013 and To date is '31-MAR-2013' then the report should show 3 columns JAN,FEB and MAR and the corresponding data.
if the From date is 01-JAN-2013 and To date is '31-MAY-2013' then the report should show 5 columns JAN,FEB,MAR,APR and MAY and the corresponding data.
Can anyone please advise, how can we spilt the months and data dynamically in the report.
Regards,
Shrutiwell you wanted the columns to be added dynamically. the easiest way would be to use a Pivot since the columns are based on the values in the data. and if the values of that column are Month Name/Abbreviation for that date then you will get month columns.
Have you worked with Pivots before? -
Dear Friends
Please send steps for Report painter and drilldown report how to do
Regards
JK
Moderator: Step 1 - search before postingdiff b/w normal reports and interactive reports
Normal report contains only one output screen
Interactive reports contains 0-20 screens.
sometimes client requirement is whenever we perform action
on outputscreen it will goes to next screen there we will display the complete details of thet particular field. -
Running report in background using parameters
Hi friends,
i have an abap report that needs to run in background because it runs longer than profile timeout parameter allows to. now my question is:
if this report uses dynpro with parameters, how do i have to modify it to run in background and to pass those parameters to ? ( SUBMIT ? ).
Thanks for your help!
ClemensHi,
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
load each personnel number accessed from the structure into
parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
Reward points if useful.... -
Generate report dynamically based on parameters
I have a Report with 30-35 items and these items are divided into sets of
RMA, WIP,Inventory, finance ....
now i need to display the report dynamically based on parameters
say, for example if RMA, WIP, Inventory, finance are YES,NO,YES, NO
then the report should display only RMA , Inventory....
any ideas/suggestions would appreciated......
Thanks,
-VKThanks for the Reply Sabine, let me put my question this way,
i have to display the report based on the selection criteria(parameters)
i have a generalized view which will display all the items....but the client needs them in a fashion where he chooses them as a groups since, the list is so big and he wouldn't be needing them all at once.
here is what i'm thinking for the moment since, discoverer cannot hide the columns based on runtime parameters ....correct me if i'm wrong (as per my knowledge...it cannot ) i have decided going with 16 worksheets 4 groups of items say,(RMA, WIP, INV, FINANCE..)
and now based on the flags what the end user chosses i may have to display the appropriate worksheet ....is this solution possible...if so do i have to subqueries...??..or is there any better ideas/suggestion....
Regards,
VK -
Enhancing Customer Reports with Commands and Parameters
Hi All,
I am implementing the mentioned tutorial. I have succesfully deployed the AccessStatisticApplication PAR on portal. While scheduling the report from Content Management -> Reports -> Running Reports, it is giving error "<b>Can't find bundle for base name com.sap.netweaver.km.stats.reports.DocumentAccessReport, locale en_US</b>". Has anyone faced the problem, can anyone please help to remove this runtime error.
Related Link: <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d28a67b-0c01-0010-8d9a-d7e6811377c0">Enhancing Customer Reports with Commands and Parameters</a>
Regards
Poonam<i>True, the application property service is apparently not to be used for a real-life scenario</i>
You can definitely use the application property service in production scenarios - it's used by other components in a standard KM install, i.e. out-of-the-box.
<i>in our case it forced the server down with deadlocks. </i>
This should definitely not happen! Did you get SAP support to take a look at this? Was it the most popular documents report that caused this, or some other custom code? There should be no such problem with this service, since it's been around for quite some time and in production use.
<i>
Even if the code sample is not to be used for real-life scenarios it could at least make use of something else than the application property service which isnt't optimal for this use.
</i>
The application property service is good for a lot of scenarios, so it is realistic to use in in real-life scenarios. The only time I have seen this approach (storing the number of hits on documents in the database) fail is in very high-load scenarios.
<i>Could you provide me with a link to the documentation for the logging framework?</i>
<a href="http://http://help.sap.com/saphelp_nw70/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm">Logging and Tracing</a> on help.sap.com and <a href="https://help.sap.com/javadocs/NW04S/current/en/index.html">Logging and Tracing API (J2EE Engine API)</a> for NW 7.0. -
Drilldown parameters not changing..
I have a report with drilldown in the detail.
When I initially select the parameters the report displays and the drill down works.
If I change a parameter and re-run the report, the drill down still shows the previous parameter selection.
What would be cuasing this?
Here is my code... using vs2008 asp.net
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Partial Public Class CRStatusExceptions
Inherits System.Web.UI.Page
Dim oTable As CrystalDecisions.CrystalReports.Engine.Table
Dim oLogon As CrystalDecisions.Shared.TableLogOnInfo
Dim oDB As CrystalDecisions.CrystalReports.Engine.Database
Dim oConnInfo As CrystalDecisions.Shared.ConnectionInfo
Dim rptdoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Private Sub CRStatusExceptions_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
WebDateEnd.Value = Now()
WebDateStart.Value = DateAdd(DateInterval.Day, -7, Now())
bindreport()
CRV1.Visible = True
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
End If
End Sub
Private Sub bindreport()
Dim sReportName As String = Nothing
'Get report and write it out to the stream...
sReportName = GetReport(SCLSession.SearchString)
rptdoc.Load(sReportName)
oConnInfo = New CrystalDecisions.Shared.ConnectionInfo()
oConnInfo.DatabaseName = My.Settings.crDB
oConnInfo.ServerName = My.Settings.crDBS
oConnInfo.UserID = My.Settings.crUID
oConnInfo.Password = My.Settings.crPW
For Each Me.oTable In rptdoc.Database.Tables
oLogon = oTable.LogOnInfo
oLogon.ConnectionInfo = oConnInfo
oTable.ApplyLogOnInfo(oLogon)
Next
rptdoc.SetParameterValue("profileid", SCLSession.ProfileID)
rptdoc.SetParameterValue("startDate", WebDateStart.Value)
rptdoc.SetParameterValue("endDate", WebDateEnd.Value)
rptdoc.SetParameterValue("FirstStatus", DropDownList1.SelectedValue.ToString)
rptdoc.SetParameterValue("SecondExceptionStatus", IIf(txtStatus2.Text.Length = 0, "", txtStatus2.Text.ToString))
rptdoc.SetParameterValue("ThirdExceptionStatus", IIf(txtStatus3.Text.Length = 0, "", txtStatus3.Text.ToString))
Me.CRV1.ReportSource = rptdoc
Me.CRV1.DataBind()
End Sub
Private Function GetReport(ByVal sReportName As String) As String
Dim websvc As New SCLIntraWebService.SCLIntraService
Dim b As Byte()
Dim oFilestream As System.IO.FileStream
If System.IO.File.Exists(Server.MapPath(SCLSession.UserName & "tempReport.rpt")) = True Then
System.IO.File.Delete(Server.MapPath(SCLSession.UserName & "tempReport.rpt"))
End If
b = websvc.GetReportbyName(sReportName)
oFilestream = New System.IO.FileStream(Server.MapPath(SCLSession.UserName & "tempReport.rpt"), System.IO.FileMode.Create, IO.FileAccess.Write)
oFilestream.Write(b, 0, b.Length)
oFilestream.Close()
Return Server.MapPath(SCLSession.UserName & "tempReport.rpt")
End Function
Protected Sub btnItemSearch_Click(ByVal sender As Object, ByVal e As Infragistics.WebUI.WebDataInput.ButtonEventArgs) Handles btnItemSearch.Click
bindreport()
CRV1.Visible = True
End Sub
Private Sub CRStatusExceptions_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
rptdoc.Close()
End Sub
End ClassHi,
It seems that you are having issue with Crystal reports .Net SDK's.
Post your question in Crystal Reports .NET SDK forum.
That forum is monitored by qualified technicians and you will get a faster response there. Also, all .NET SDK queries remain in one place and thus can be easily searched in one place.
Thank you for your understanding,
Amit -
BI Pub report bursting based on parameters set in interactive dashboard
Hi,
Could someone help me in creating and bursting reports as per the following requirement:
1. there is interactive dashboard with html multi select parameter that has display values department, location, employee job code. user can select one or more column name from this multi select parameter field.
2. need to create a preview button in dashboard, clicking on which display a report on dashboard page showing how many files are generated after bursting and employee count
3. need to create a generate/burst report button to automatically burst a bi publisher report based on the column names that user has provide in step 1 above.
4. how can we capture the parameter values from dashboard and pass to bi publisher report?
5. how can we automatically burst this report based on column names say both 'department-location'?
6. in bursting of report we can split only by one column name but here we need to do based on two or more column names set by the end user in the parameter
-PriyankaThanks for a quick response but I am still not clear on
1. how to do this using custom java code
and
2. actually user would login to interactive dashboard and there he will give these parameters using which we need to automatically burst a BI publisher report. Can this be done some how?
-Priyanka -
Crystal Report - problem with passing parameters from J2EE app
i'm trying to pass a few parameters from my java application to a crystal report using the code below:
ParameterField pfield1 = new ParameterField();
ParameterField pfield2 = new ParameterField();
Values vals1 = new Values();
Values vals2 = new Values();
ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
ParameterFieldDiscreteValue pfieldDV2 = new ParameterFieldDiscreteValue();
pfieldDV1.setValue("1056");//dform.getSelectedPeriod());
pfieldDV1.setDescription("termId");
vals1.add(pfieldDV1);
pfield1.setReportName("");
pfield1.setName("@p_termId");
pfield1.setCurrentValues(vals1);
fields.add(pfield1);
// check here for null condition otherwise will throw nullpointerexception
pfieldDV2.setValue("elect");
pfieldDV2.setDescription("allocType");
vals2.add(pfieldDV2);
pfield2.setReportName("");
pfield2.setName("@p_allocType");
pfield2.setCurrentValues(vals2);
fields.add(pfield2);
this report calls a stored procedure (sql server). the report displays the data but the same is not the case when i call ity from my java application. with a single parameter it works fine (even though i get a "Some parameters are missing values" ERROR on the console. But when i pass, say 2 parameters, it give me the above error first and then "JDBC Error: Parameter 2 not set or registered for output"
Can anyone bail me out of this one?
thanks,
ptalkadI don't know about naming conventions, but could the @ signs in the variable names cause a problem?
How have you set up the mapping in Crystal?
Is this parameter 2 an "out" parameter returning a value?
What version of Java are you using?
Version of Crystal?
What JDBC driver?
Maybe you are looking for
-
My wife and I both have iPhones and we share an apple ID. Is there a way to put both our contact list in the same iCloud without merging the lists. We want to be able to use the same iCloud account because we share info .
-
Inconsistency in the Dictionary for the structure "VXO2APPL"
Hi gurus, I started with SP stack upgrade to 10(Install SAP EHP1 for SAP NetWeaver 7.0 Stack 10 with Kernel 7.20). --First i did kernel upgrade from 701 patch 111 to 720 patch 105 which was successfull. --Now when i tried to upgrade the stack it gi
-
How to use JavaScript in Web bean generated JSP
I want to do some simple JavaScript validations (for example, checking if a particular field is empty) in the JSP page rendered by the data web bean. Because the HTML is rendered by the bean, I'm not able to refer to the HTML controls in the JSP page
-
URGENT : CONVERT_TO_LOCAL_CURRENCY
Hi Experts, while using the function module CONVERT_TO_LOCAL_CURRENCY in the report. when executing the report it showing the error the error is showing in popup like this Translation Result 101,913,673,676,50 USD is too long .. please kindly do
-
How to make "SAP&MY" show up in txn DSWP
On screen 27 of the following SAP Tutor: https://websmp202.sap-ag.de/~sapidb/011000358700005479212006E.sim we see a "SAP&MY" next to the button "NEW". 1) I cannot find this "SAP&MY" in my SM7.0SP16. Why? 2) If use other existing entries (e.g. "Not