Re: Date related problem in the report parameter
Hi Friends,
I am done a report and i registered the the report in the and for this report i had given two parameters 'Date_from' and 'Date_to' for this two dates i had taken value set as 'Date' which is None type value set and contians 9 Characters.
My probelm if i give values for this parameters
Date_from value is 21-JAN-08
Date_to value is 11-Mar-08
it is showing the error like this
'please choose a low value that is lower than the high value'
it is considering the 21 and 11 numbers first it is not considering the
months.
please reply any one to this asap.
Thanks In Advance!!
Thanks
Anushka Valluru
Hi Chiru,
Thanks for your reply and i also tried with this but
i am getting error becuase in my query in the where
clause i used like below
WHERE (TO_DATE (ldate, 'DD-MON-YY') BETWEEN
NVL (TO_DATE (:p_date_begin,'DD-MON-YY'), TO_DATE
(ldate, 'DD-MON-YY') )
AND
NVL (TO_DATE (:p_date_end,'DD-MON-YY' ),TO_DATE
(ldate, 'DD-MON-YY')) )
so it is not taking the dates, in standard date, it
is taking total time also and the date format is also
different.so what i have to do?
please reply for this asap
Thanks
AnushkaAnu,
Can you post your entire query? How did you define your exectuable?
The standard date has the date and the timestamp. You need to substr and get the date part.
Example:
1) use the FND_STANDARD_DATE value set.
2) use the following select statement in the default value of your date parm
select to_char(trunc(sysdate),'DD-MON-RRRR')from dual
3) Where ever you are capturing each of the dates in your query (like your begin/end dates), use the following:
to_date(substr(I_date,1,10),'RRRR-MM-DD') --replace "I_date" with your date
--replace date mask with your date mask
Hope this helps...
Thanks,
Chiru
Similar Messages
-
hey guys..
I'm trying to get the report that I need to be filtered by a parameter value (named Param1)
I created a parameter in the data tab and tried to pass a value from my Web application to the report services.. now my report have that textbox that prompts me to enter the filtering value for the report I want.. everything works fine till this point..
now I have another webpage that has a report viewer and a textbox for the user input the value they want.. and pass it to the report.. and I'm using the following code to pass the value to the report I made earlier..
Dim par(0) As Microsoft.Reporting.WebForms.ReportParameter
par(0) = New Microsoft.Reporting.WebForms.ReportParameter("paramSiteCode", TextBox1.Text.ToString)
ReportViewer1.ServerReport.SetParameters(par)
ReportViewer1.ServerReport.Refresh()
however.. now I'm getting an error.. "The report parameter 'paramSiteCode' is read-only and cannot be modified. (rsReadOnlyReportParameter)"
what am I missing here? I've been thru the help and forums.. and the code should work.. or so I hope it would.. thanks in advance..Details
Product:
sql server reporting services
ID:
rsreadonlyreportparameter
Source:
microsoft.reportingservices.diagnostics.utilities.errorstrings.resources.strings
Version:
8.00
Message:
The report parameter '{0}' is read-only and cannot be modified.
Explanation
This error occurs when you attempt to set a value for a parameter that is read-only. A parameter is read-only when the
Prompt property for the parameter is set to false.
User Action
To set a value for a parameter, the Prompt property for the parameter must be set to
true. You can set this property in two ways:
Before publishing the report, provide a prompt string for the parameter. In Report Designer, you can provide a prompt by typing a prompt string in the
Prompt text box in the Report Parameters dialog box.
After publishing the report, set the Prompt User property for the parameter. In Report Manager, in report properties, click the
Parameters tab, and then select Prompt User for the parameter.
For more information about report parameters in Report Designer and Report Manager, see Books Online.
In the release version of SQL Server 2000 Reporting Services, when Prompt is
true and Prompt String is blank, the parameter is still available to the user in the report viewer. In SP1, when
Prompt is true and Prompt String is blank, the parameter is hidden from the user.
Note: Publishing a report over an existing report on the report server does not overwrite the parameter information. To update parameters for an existing report, either delete the report on the report server and republish, or update the parameter information
for the report in Report Manager.
I struggled with the same problem in VS 2010.
After a long series of hoops to jump through, I modified the rdlc file by hand and added <Prompt>true</prompt>. This parameter cannot be set through the GUI - go figure.
In my case, I was attempting to generate a sub report, and pass a parameter to the sub report.
To get this to work, the sub report needed these two sections.
<ReportParameters>
<ReportParameter Name="Network_Id">
<DataType>String</DataType>
<Prompt>true</Prompt>
</ReportParameter>
</ReportParameters>
<Variables>
<Variable Name="Network_ID">
<Value />
</Variable>
</Variables>
I was then able to use the name "Network_Id" in the sub-report properties of the "sub report control" for the name of a parameter on the parameters tab. I then set it to the key value that I need in the subreport properties dialog.
Prior to setting prompt to true, I kept getting the read-only exception.
I'm not sure if I am being clear about this, but sub reports do work, and prompt can be manually added to the report definition file. -
Hi,
I have two SCCM environments under same active directory domain and one service account have been used for SCCM configurations on both the environments (QA and PRODUCTION). I am facing similar error as mentioned above while trying to fetch reports on
PRODUCTION site, but the QA site is working fine, though same service account have been used for configuring both. While looking at the reportserverservice_<date> log on my Production DB server i see the following error
"processing!ReportServer_0-3!2124!01/02/2015-09:09:30:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: , Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during
report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot read the next data row for the dataset DataSet1. ---> System.Data.SqlClient.SqlException: Conversion failed when converting the nvarchar value 'Override
Default' to data type int."
My DB and SCCM primary site are different and the reorting services point is installed on remote DB server. Please help me resolving the issue.
Troubleshooting performed:
1.Disabled the registry key 'EnableRbacReporting' from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\SRSRP to 0 and then restarted SSRS service and the reporting worked for some minutes after that the registry key reverted back to 1 automatically and
reporting started throwing errors again.
2. Checked with the permissions on DB whether or not 'sysadmin' role is assigned to the SCCM service account.
3. re-registered the SQL management Provider WMI class.
mofcomp.exe “C:\Program Files (x86)\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof”Hi All,
Finally found exact solution to the reporting error.
Error: while launching SCCM reports (both from Console and web based) an unexpected error occured with error message as "The DefaultValue expression for the report parameter ‘UserTokenSIDs’ contains an error: A specified logon session does not exist.
It may already have been terminated. (rsRuntimeErrorInExpression)"
Solution: This is password replication issue for the domain account used to configure reporting services point in SCCM. If your SQL SSRS reporting services instance and databse runs with local default account whereas the reporting services point on SCCM
primary site is configured with domain account, (As in My case) you need to perform the following in order to get rid of the error.
Launch 'Reporting Services Configuration Manager' from the SQL SSRS box(either Local or Remote), Connect to Report Server Instance->Go to 'Execution Account' tab->Specify the 'Execution Account' as domain account and password which is used to configure
Reporting Services Point in SCCM Primary Site, and then click apply.
Now Lauch the report either way (Web based or from Console), the error will disappear and all your default reports will execute perfectly as before. -
Hi,
I have the subreport calling from the main report. The subreport is based on MDX query agianst the SSAS cube. some dimensions in cube has values 0 and 1.
when I try to pass '0' to the sub report as the parameter value, it gives an error "Data Retrieval failed for the report, please check the log for more details".
Actually I am using table for storing these parameter values. In the main report I am calling this table (dataset) and passing these values to subreport.
so I have given like [0],[1] and this works fine. when I give only either [0] or [1] then it is throwing an error.
Could you please advise on this.
Appreciate all and any help.
Thanks,
DivyaHi Divya,
Based on the current description, I understand that there is no issue if you pass two values from main report to subreport, while the issue occurs when passing one value to subreport.
To narrow down the issue, I want to confirm whether the subreport can run if there is only [0] or [1] in the subreport. If so, it indicates the query statements exist error in the subreport. If it’s not the case, this shows the issue occurs during passing
values from main report to subreport. To make further analysis, please post the details of query statements of the subreport to the forum.
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support -
Hi,
Am trying to develop a report the parameter has an issue, it gives me an error.
There are 2 parameter (1st is Date range like start and end date and 2nd is Loan number)
When ever I select date range the Loan number parameter should go blank. If I input a loan number then date range should go blank.
What should I do. Please help
ERROR --report parameter startdate has a defaultvalue or a valid value that depends on the report parameter startdate forward dependencies are not validHi Kay_MD,
If there are only two parameters, we can use first parameter charge the second one, but the second one cannot charge the first one in turn. Because parameter forward dependencies are not valid. To achieve your requirement, we can create another parameter
to control Date_range and Loan_number parameters. For more details, please see:
Add a parameter named ReportParameter1 with two available values: Date_range and Loan_number.
Use the following expression as the default value in Date_range parameter:
=iif(Parameters!ReportParameter.Value="Date_range",1,"") (1 means a useless value)
Use the following expression as the default value in Loan_number parameter:
=iif(Parameters!ReportParameter.Value="Loan_number",1,"") (1 means a useless value)
Please note that the Date_range and Loan_number parameters should enable Allow blank value (“”), and the blank values should also be contained in available values.
If there are any other questions, please feel free to let me know.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Internal parameter - The report parameter is read-only and cannot be modified.
Hello,
We have an SSRS report that has an Internal parameter for the user that is logged in (gets the Report.User!UserID in custom code and assigns to parameter called Login). We would like it to remain internal as it is for security purposes - we filter
data depending on whether or not the user has access. We would not like it to be accessible from the URL. The report has drill-through functionality where the user can click a link and the report is filtered on certain criteria. This seems
to work fine in SSRS 2005, but since i have upgraded the report to SSRS 2012, I am getting the error on the drill-through:
The report parameter 'Login' is read-only and cannot be modified. (rsReadOnlyReportParameter)
The properties in Report Manager have the "Hide" option selected. Any help would be appreciated. Thanks.
Hi Hhewson,
In Reporting Services, if you create a hidden parameter, you can set values for it on a report URL or in a subscription definition. If you set a parameter to Internal, it is not exposed in any way except in the report definition. An internal parameter must
have a default value, which can be null if the Allow null value option has been selected. Internal Parameters are not configurable by the end-user at run-time.
In your scenario, I suggest you changing internal parameter to hidden parameter to check whether the issue persists.
Reference:
In SSRS, how does an “Internal” parameter differ from a “hidden” parameter?
Hope this helps.
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support -
How to use format-date with the report parameter
Hi all,
How to use the format-date function with this tag,
<?param@begin:P_FROM_DATE?><?$P_FROM_DATE?>
this form date is coming from report parameter and is coming like this 2012/11/01 00:00:00.
So now i need this in DD-MON-YYYY fromat.I tried like this <?param@begin:P_FROM_DATE?><?$format-date:P_FROM_DATE;'DD-MON-YYYY'?>
but its giving error. Can any one pls tell how to convert it to customized date format.
thanks & Regards
Srikkanth.MIssue solved.
Ref this link
XML date Format -
REP-50134 occurs when using the submit button on the Reports Parameter Form
Good Morning,
I get the "REP-50134: Cache subitem reports does not exist" error after clicking on the Submit Button from a Reports parameter form.
I am using Forms/Reprots 9i.
Using the source code given in the Whitepaper 'Oracle Forms Services - Using Run_Report_Object() to call Reports with a parameter form', all works well when paramform=no, but when I have a Form print a report with paramform=yes, the parameter form appears correctly, but generates the error after clicking the Submit Button.
Any inputs as to causation or possible places to look to solving this problem would be greatly appreciated.
Thank youHello and thanks.
The value in the tag is <form method=post action="reports?">
Looking at this I suspect my problem is related to this setting. I am trying to follow all the instructions in the White Papers but they are a little confusing as they are not all exactly the same. Each attempts to explain a specific functionality without regards to the whole.
For instance I believe I need to have the variables P_ACTION, P_USER_CONNECT and P_SERVER_NAME in the report being called and then add a Before Parameter Form trigger to reset the values. But this seems to duplicate and override what has already been sent via the REPORT_OTHERS property. It is a tad bit confusing.
Can you confirm?
Thanks for any clarification you can provide. -
Date format Problem in forms&reports Services 10g
Hi Dears,
I Faced a problem during running reports ( i am using forms& Reports Services 10g), when i pass the parameters via parameter form to the report (built in forms10g Rel 2.0) its appearing in arabic like (25-يناير-2010) as my Date Formate is (DD-YYYY-MON) and NLS_LANG parameter is defined as Arabic_Saudi arabia.AR8MSWIN1256 so as a result report is not running due to unknown Date formate, how can i change the Same Date format (DD-YYYY-MON) to appear in english like (25-2010-JAN)
ThanksYou could specify the parameter as type VARCHAR2, explicitly cast it (maybe to DD.MM.YYYY) when you pass it from forms and cast it back in your query, like TO_DATE(:P_PARAM, 'DD.MM.YYYY')
-
'&' character creating a problem in the reports query
Hi
I am facing a problem with the '&' character in the reports
The top level reports return data .One field in the top level report contain certain values that have '&' character in it.
When we navigate to the second report,it says "No Data" .
On checking the query at the backend,it displays data as soon as we comment this particular "WHERE" clause containing the '&' character
EG:WHERE Name ="a&b"
the query takes the &' character in "Name" column as an input fileld and hence it fails.
I checked some blogs on this.But all explains on using SET define off/Or use CONCATENATE to iinsert this kind of data
But how do we make the server understand to read this &' character also as a normal text instead of taking it as an input parameter?
Is there anything that can be done at the OBIEE RPD level?
Thanks in advanceHi,
Refer the SAP Note 137601
Or,
You have to upgrade the Kernel. Check the old patch number in ur system, upload the latest patches & down load from Market Place. Consult your Basis Consultant
Regards,
Biju K
Edited by: Bijay Kumar Barik on Mar 27, 2008 8:25 AM -
Problems in the EXTENSIONIN Parameter of BAPI_PO_CREATE1
Hello Experts,
I have a cfeild in the table EKKO and want to fill it.
I have try it over the EXTENSIONIN Parameter of BAPI_PO_CREATE1, but it doesn't work.
The strucurtes BAPI_TE_MEPOHEADER and BAPI_TE_MEPOHEADERX has also the required customerfields included
Some Ideas? why it doesn'works ?
Thanx in Advance
REPORT Z_BAPI_PO_CREATE1.
DATA: LS_POHEADER TYPE TABLE OF BAPIMEPOHEADER WITH HEADER LINE .
DATA: LS_POHEADERX TYPE TABLE OF BAPIMEPOHEADERX WITH HEADER LINE.
DATA: LT_RETURN type TABLE OF BAPIRET2.
DATA: LT_POITEM TYPE TABLE OF BAPIMEPOITEM WITH HEADER LINE.
DATA: LT_POITEMX type TABLE OF BAPIMEPOITEMX WITH HEADER LINE .
DATA: LT_ACCOUNT type TABLE OF BAPIMEPOACCOUNT WITH HEADER LINE .
DATA: LT_ACCOUNTX TYPE TABLE OF BAPIMEPOACCOUNTX WITH HEADER LINE .
DATA: LT_ADDRDELIV type BAPIMEPOADDRDELIVERY .
*********************Setze HEADER**************************
LS_POHEADER-DOC_TYPE = 'Z028'.
LS_POHEADER-CREAT_DATE = '01032006'.
LS_POHEADER-ITEM_INTVL = '00001'.
*LS_POHEADER-VENDOR = '0021000000'.
LS_POHEADER-SUPPL_PLNT = '4700' .
LS_POHEADER-PURCH_ORG = '2700' .
LS_POHEADER-PUR_GROUP = '701' .
LS_POHEADER-CURRENCY = 'EUR' .
APPEND LS_POHEADER .
*********************Setze HEADERX**************************
LS_POHEADERX-DOC_TYPE = 'X' .
LS_POHEADERX-CREAT_DATE = 'X' .
LS_POHEADERX-ITEM_INTVL = 'X' .
LS_POHEADERX-SUPPL_PLNT = 'X' .
*LS_POHEADERX-VENDOR = 'X' .
LS_POHEADERX-PURCH_ORG = 'X' .
LS_POHEADERX-PUR_GROUP = 'X' .
LS_POHEADERX-CURRENCY = 'X' .
APPEND LS_POHEADERX .
*********************Setze ITEMS**************************
LT_POITEM-PO_ITEM = '00001' .
LT_POITEM-MATERIAL = '023JK513' .
LT_POITEM-PLANT = '4700' .
LT_POITEM-STGE_LOC = '7001' .
LT_POITEM-QUANTITY = '1' .
LT_POITEM-PO_UNIT = 'PC' .
LT_POITEM-ACCTASSCAT = 'K' .
LT_POITEM-PERIOD_IND_EXPIRATION_DATE = 'D' .
APPEND LT_POITEM .
*********************Setze ITEMSX**************************
LT_POITEMX-PO_ITEM = '00001' .
LT_POITEMX-PO_ITEMX = 'X' .
LT_POITEMX-MATERIAL = 'X' .
LT_POITEMX-PLANT = 'X' .
LT_POITEMX-STGE_LOC = 'X' .
LT_POITEMX-QUANTITY = 'X' .
LT_POITEMX-PO_UNIT = 'X' .
LT_POITEMX-PERIOD_IND_EXPIRATION_DATE = 'X' .
LT_POITEMX-ACCTASSCAT = 'X' .
APPEND LT_POITEMX .
*********************Setze ACCOUNTPARAMETER**************************
LT_ACCOUNT-COSTCENTER = '1301000001' .
LT_ACCOUNT-PO_ITEM = '00001' .
APPEND LT_ACCOUNT .
LT_ACCOUNTX-COSTCENTER = 'X' .
LT_ACCOUNTX-PO_ITEM = '00001' .
APPEND LT_ACCOUNTX .
DATA: ls_bapi_te_po_header type BAPI_TE_MEPOHEADER,
ls_bapi_te_po_headerx type BAPI_TE_MEPOHEADERX,
ls_bapi_extension type BAPIPAREX,
it_bapi_extension type table of BAPIPAREX WITH HEADER LINE.
********************Setze EXTENSIONIN**************************
ls_bapi_extension-structure = 'BAPI_TE_MEPOHEADER' .
*ls_bapi_te_po_header-po_number = '' .
ls_bapi_te_po_header-cfield = '8204' .
ls_bapi_extension-valuepart1 = ls_bapi_te_po_header .
append ls_bapi_extension to it_bapi_extension .
clear ls_bapi_extension .
ls_bapi_extension-structure = 'BAPI_TE_MEPOHEADERX' .
*ls_bapi_te_po_header-po_number = '' .
ls_bapi_te_po_headerx-cfield = 'X' .
ls_bapi_extension-valuepart1 = ls_bapi_te_po_headerx .
append ls_bapi_extension to it_bapi_extension .
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
POHEADER = LS_POHEADER
POHEADERX = LS_POHEADERX
TABLES
RETURN = LT_RETURN
POITEM = LT_POITEM
POITEMX = LT_POITEMX
POACCOUNT = LT_ACCOUNT
POACCOUNTX = LT_ACCOUNTX
EXTENSIONIN = it_bapi_extension
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.Hello,
thank you for your response
The Problem was on the BADI below:
it wasn't implemented.
BAPI_PO_CREATE1->PERFORM move_data_in ->PERFORM move_extensionin->PERFORM move_container_in->CALL BADI lr_badi->map2i_extensionin
CALL BADI lr_badi->map2i_extensionin
EXPORTING
im_container = im_container
im_name = im_name
im_error = lf_exit
CHANGING
ch_struc = ch_struc.
Best Regards -
Master data not present in the reporting cube
Dear Experts,
There is a scenario in report design for me.
I have already created the Bex report and all the fields as mentioned are in the sales report.
Client now wants to include two more fields in the report.
One is the keyfig " Net value" which is present in the sales cube and i have already included in the report
and another field which is master data 0profit_center is not present in the cube.
Any ideas how can i include this 0profit center data so that i can display in the report?
As far as i understand, I need to include this master data in the sales Infocube which is being used for reporting.
But i am pondering upon the impact on the system because of this.
Now i have checked the BI system and the ECC table. In VBRP table of ECC, the profit center is present.
But when i see in BI the profit center is not being loaded from ECC but from flat file source system.
So i am confused how to go forward.
Can anyone suggest me what should be my approach?
Best Regards!!You didn't understand what we suggested.
Rather than checking 0profit_ctr master data, you need to find the info objects(which are part of your cube) which have master data. in those 0profit_ctr can be a attribute. if yes then navigation settings will work.
if not then you can add 0profit_ctr to info cube and user master data look up thru routine or option read from master data(bw 7.3).
Other wise, directly add 0profit_ctr to your flat file data source(and cube) and maintain data thru flat file.
To look up your cube and 0pfirt_ctr need to have relations with another info objects other wise not possible. -
Date comparision issue in the report
Hi Buddies,
I explain the scenario,
I have an dunning letter statement report which basically run for the three remainders (1,2,3) to the customer.
If the remainder 3 runs , i want to display the pervious remainder dates of 1 and 2 in my report.
If the remainder 2 runs, i want to display the pervious remainder date of 1 in my report.
I have date column in the dunning letter history table as Dunning_Date.
How can we achive this in sql?. I am getting struck over here, please give your advice to do it.
Regards
RamI think your date format is in different format with the date format u stored in presentation variable so better check the date format of the case function u wrote it in you variable that will solve the problem.
-
Experts,
We have a problem with Filter on Costcenter taking very very long time . When we click on Filter button on Cost center after executing a BW report, then a new window opens and nothing happens after that with a blank white screen in the filter window. We have tried so many options to improve performance but only one thing worked out as a work around.
I have deleted enteried in the master data table using TC SE14 and then reloaded master data. Then filter on this working now with in 1 min. But we have process chains running every day loading Master data .Once these process chains finish again when we filter on Cost center on the next day, now the problem still exists , takes long time to for filter window to open up. Is there any way to delete master data entries delete automatically. Any advice appreciated .
ThanksHi Kiran,
Is that u are doing the master data full upload?
Try to do delta loads.
If it is the client specific. Create a process chain to delete the same master data contents. and schedule the process chain to run daily night or just before the master data loads happen, so that it will not affect the runtime. Else have to delete the same manually.
Hope this helps u.
regards,
Kishore. -
Date Format Problem in Custom Report
Dear all ,
I am generating SQL statement for the report , i am passing (param_date from ) and (param_date to) to get data from SITs , and there is tow segments in the SITs : (SIT_date from ) and (SIT_date to) also ,, getting the data from the SITs by comparing the dates for the SIT and the parameters ,,, i am facing problem in the date format , ,, could any one please help me what is the format that i can compare the between dates in the SIT and the Parameters ???
Best Regards
Edited by: user6781803 on Jan 3, 2010 7:28 AM>
... i am facing problem in the date format ...
>
What is the problem ? Pl also post full versions of your OS and EBS.
HTH
Srini
Maybe you are looking for
-
Exception while running webutil demo
Hi, I am facing problem with a webutil unit. when I use client_tool_env.getvar function client_tool_env.getvar('NLS_LANG',:builtins.tool_env) +(under BUILTIT->NLSLANG (button) of webutil DEMO)+ I get this exception in the Java console and the webutil
-
Could airport issues have anything to do with download speed?
I have been experiecing at best 161KB/s download speed, not quite sure where to look for the problem, any ideas? I have checked with two different sites that have speed tests, the results were not consistant. End result of one was a 1.31MB/s potenti
-
IMac 20-inch vs. 24-inch
Is there any difference between these two displays other than size? I'm looking to buy an iMac to do some video editing, and I can't make up my mind. Any suggestions?
-
Several document in one window
Hi, I would like to open several PDF files in 1 acrobat window(acrobat 9 standard 9.0.0) Is it possible like the old versions? Thanks
-
Problem creating an OData service with RFC-/BOR Import.
Hi Experts, i am running always into the same problem I want to create an Odata Channel with "SEGW" and Datamodel with an RFC import. RFC si GET_CPU_ALL but I am running always into the same problem when I want to generate the runtime. I don´t know w