[SSRS] Abnormal behavior for parameter usage in checking case within query of dataset

Details :
Following error is displayed when I preview a report (SUR_EXPLORER-NG.rdl) in Microsoft Visual Studio:
“An error occurred during local report processing.
An error has occurred during local report processing.
Cannot set the command text for dataset 'GET_FDA_CONFIG_ID'.
Error during processing of the CommandText expression of dataset 'GET_FDA_CONFIG_ID'.”
Following is the query set in dataset 'GET_FDA_CONFIG_ID':
=IIF(
Parameters!IN_Dimension.Value = -1,
       "SELECT -1 AS FDA_CONFIG_ID FROM DUAL WHERE :H_IN_InstanceId = :H_IN_InstanceId",
       "SELECT RA_SUMM_RECON_MEASURE.FDA_CONFIG_ID AS FDA_CONFIG_ID FROM RA_SUMM_RECON_MEASURE, RA_SUMM_RECON_HISTORY WHERE RA_SUMM_RECON_MEASURE.RECON_ID
= RA_SUMM_RECON_HISTORY.RECON_ID AND RA_SUMM_RECON_HISTORY.SUMM_RECON_INSTANCE_ID = :H_IN_InstanceId"
As a trial, I change the report parameter used in the checking condition as follows (SUR_EXPLORER-OK.rdl):
=IIF(
Parameters!H_IN_InstanceId.Value = -1,
       "SELECT -1 AS FDA_CONFIG_ID FROM DUAL WHERE :H_IN_InstanceId = :H_IN_InstanceId",
       "SELECT RA_SUMM_RECON_MEASURE.FDA_CONFIG_ID AS FDA_CONFIG_ID FROM RA_SUMM_RECON_MEASURE, RA_SUMM_RECON_HISTORY WHERE RA_SUMM_RECON_MEASURE.RECON_ID
= RA_SUMM_RECON_HISTORY.RECON_ID AND RA_SUMM_RECON_HISTORY.SUMM_RECON_INSTANCE_ID = :H_IN_InstanceId"
Then the mentioned error message is not shown (of course I can’t get desired report generated as the logic is incorrect).
Besides, I try with other report parameters but the mentioned error message is not shown.

Hi chrisd921,
According to your description, you want to do a dynamic query based on parameter select in your report dataset. Right?
In Reporting Services, if we use query to retrieve data when creating dataset, this query will only be processed one time during report processing. So we can't make it change to another query after we change the parameter selection. And we can't combine
the data from two query together in a dataset, because in a dataset, if multiple result sets are retrieved through a single query, only the first result set is processed, and all other result sets are ignored. For your requirement, it can't be achieved currently.
In this scenario, we suggest you add one more column, and put in "-1" in detail row. Then control the visibility to show either "-1" or report data.
Reference:
Report Embedded Datasets and Shared Datasets (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou

Similar Messages

  • Abnormal behavior for non-optional parameter

    Hello Gurus,
            I have a datasource as follows:
             {CALL "HIROC_PRC_FA016_WPR_DM_DTL"({?Date From}, {?Date To},{?Sub No})},  for all three parameter, they are all static, and "optional prompt" are "false" ( it can't be set up),  but when I run the report,  if I did not input value for parameter {?Date From} and {?Date To}, report will not run.  but if I did not input value for parameter {?Sub No}, report runned with error message "Failed to retreve data from the database. Details: 42000:[Oracle][ODBC]Syntax error or access violation."

    if you have the parameters set OPTIONAL to false, then it requires a value,
    you can make the sub no optional and then you can use
    if nothasvalue(?subno} and
    field>=date1 and field <=date2 then true

  • Abnormal behavior for java plugin 1.3.0 and 1.3.1

    Hi,
    I've developed a java applet which renders svg images. I am working in a constrained environment where both java plugin 1.3.0_02 and java plugin 1.3.1_02 are installed.
    the code for the embedded applet in html,
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH =" 600" HEIGHT =" 700">
    <param NAME = CODE VALUE ="MyViewerApplet.class" >
    <param NAME = ARCHIVE VALUE ="required.jar" >
    <param NAME="type" VALUE="application/x-java-applet;version=1.3">
    <param NAME="IMAGES" VALUE="http://localhost:8889/images/">
    <param NAME="HOMESVG" VALUE="http://localhost:8889/mysvg.svg">
    <COMMENT>
    <embed type="application/x-java-applet;version=1.3"
    java_CODE ="MyViewerApplet.class"
    java_ARCHIVE ="required.jar"
    WIDTH =" 600"
    HEIGHT =" 700"
    pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"
    IMAGES="http://localhost:8889/images/">
    HOMESVG="http://localhost:8889/mysvg.svg">
    <noembed></noembed></embed>
    </COMMENT>
    </object>
    One note about the applet, the applet's loads RenderingCanvas.class from required.jar.
    Now when i open Internet Explorer , it loads the 1.3.0 plugin and when i open Netscape Navigator it loads the 1.3.1 plugin !!!.
    Well thats not the biggest problem. The applet works correctly in Netscape Navigator. However, the java plugin 1.3.0 in internet explorer complains -> NoClassDefFoundError org.xxx.yyy.RenderingCanvas (Note: it doesn't say ClassNotFoundException).
    Another thing, why does the plugin call the applet's INIT and START methods before the jar archive has even been loaded(thats what the output shows). Wouldnt the plugin always complain that the file was not found since the jar archive has not been loaded.
    Although my description does seem a bit vague, does anyone have an idea why this could be ?
    Thanks in advance.
    A.

    One note about the applet, the applet's loads
    RenderingCanvas.class from required.jar.
    Now when i open Internet Explorer , it loads the 1.3.0
    plugin and when i open Netscape Navigator it loads the
    1.3.1 plugin !!!.What Sun calls "dynamic versioning" allows you to specify a major version number as required -- any minor version will match. For example, "any 1.3 or higher", "any 1.4 or higher". This is described in Sun's plugin developer's guide.
    Well thats not the biggest problem. The applet works
    correctly in Netscape Navigator. However, the java
    plugin 1.3.0 in internet explorer complains ->
    NoClassDefFoundError org.xxx.yyy.RenderingCanvas
    (Note: it doesn't say ClassNotFoundException).I don't know.
    Another thing, why does the plugin call the applet's
    INIT and START methods before the jar archive has even
    been loaded(thats what the output shows). Wouldnt the
    plugin always complain that the file was not found
    since the jar archive has not been loaded.Are you saying that MyViewerApplet.class is available directly from the server, and the remaining classes that it depends on are in required.jar? If so, this is normal. Java (or at least common Java implementations) load classes as needed. This means that MyViewerApplet should run fine until it encounters a class which is in required.jar, at which time it will have to wait for the loading to complete. If you want it all to load before anything starts, put MyViewerApplet.class in the jar as well.

  • Passing values to subreport in SSRS throwing an error - Data Retrieval failed for the report, please check the log for more details.

    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,
    Divya

    Hi 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

  • SSRS Designer - XML Datasource - Parameter passing XML gets encoded, causes error on WS Request

    Hello,
    I am attempting to query a List from SharePoint using the XML Datasource. I am forced to use this datasource as our infrastructure team will not be upgrading our SSRS 2008 farm to SSRS 2008 R2 anytime soon. 2008 R2 has Native SharePoint
    List Datasources ( which works great FYI ). I already completed the report using the Native SP List DS, only to find out that my timing was not so great as 2008 R2 was not in production yet... /sigh, communication... anyways...
    I have successfully queried the List using the XML Datasource. It is only when I try to use the CAML query in the query parameter that it fails. So, here is my Query:
    <Query>
    <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
    <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
    <Parameters>
    <Parameter Name="listName">
    <DefaultValue>{DD3DE881-1F9D-4016-AD73-F7E1D9340880}</DefaultValue>
    </Parameter>
    <Parameter Name="query">
    <DefaultValue>
    <Query>
    <Where>
    <Gt>
    <FieldRef Name="Modified" />
    <Value Type="DateTime">2011-03-01</Value>
    </Gt>
    </Where>
    </Query>
    </DefaultValue>
    </Parameter>
    </Parameters>
    </Method>
    <ElementPath IgnoreNamespaces="True">*</ElementPath>
    </Query>
    I will be replacing that hard date with something like =DateAdd("d",-7,Now()) later, but focusing on the task at hand...
    Here is the error ( trimmed so you don't need to read the whole stack ):
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring>
    <detail>
    <errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Element &lt;Query&gt; of parameter query is missing or invalid.</errorstring>
    <errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000000</errorcode>
    </detail>
    </soap:Fault>
    </soap:Body>
    The key to that error is:  Element &lt;Query&gt; of parameter query is missing or invalid.
    So I see that it is being encoded, so I decided to capture the actual Webservice request with Fiddler:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <query>
    &lt;Query&gt;
    &lt;Where&gt;
    &lt;Gt&gt;
    &lt;FieldRef Name="Modified" /&gt;
    &lt;Value Type="DateTime"&gt;2011-03-01&lt;/Value&gt;
    &lt;/Gt&gt;
    &lt;/Where&gt;
    &lt;/Query&gt;
    </query>
    <listName>{DD3DE881-1F9D-4016-AD73-F7E1D9340880}</listName>
    </GetListItems>
    </soap:Body>
    </soap:Envelope>
    So now that we know that somehow the XML parameter of "query" is being encoded. How do I tell the SSRS designer that for this XML datasource's dataset query, I do not wish to encode that parameter?  I have searched all day today and came up with
    very little. I found a few posts with a simliar question, but no solution was ever mentioned.
    The closest to a likely solution was this Post :
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8a9ba2fc-26cd-423e-bbbf-a16b5c9722f5/
    in particular this phrase interested me:
    "Query parameters of type Msxml2.DOMDocument30 are passed as XML. Parameters of type String which happen to contain XML are passed as strings and are XML encoded in the SOAP message. The function CXml(String) converts a string
    into an Msxml2.DOMDocument30 and can be used in query parameter expressions."
    Similar to the poster of that question, I also cannot find a way to define the parameter as an XML type or the use of this mysterious CXML() function in the expression builder...
    I'm looking for a Microsoft resource to tell me whats going on here, but if anyone else has a workaround or an idea, I would be happy to try it out.
    Regards,
    -Ryan, Solution Architect

    Hi Ryan,
    Thanks for your question, from your statement, it seems that you want to give a default value for the parameter named query, right? If so I would recommend you achieve this requirement in report level, please follow these:
    1. Create a parameter named Date, select Date/Time as data type.
    2. Move to Default values tab, then click Add button ->type in  =DateAdd("d",-7,Now())  as defult value's expression.
    3. Right-cilck the dataset, and then select DataSet properties.
    4. Move to Filters tab, click add button to add a filter.
    5. In the drop-down list of Expression, select Modified datefield with Date/Time datatype.
    6. Type in =Parameters!Date.Value in value's textbox.
    Similar thread, please get a reference from this
    http://social.technet.microsoft.com/Forums/en-US/sqlreportingservices/thread/24d30b00-139e-4487-9fb1-02f460b432f9
    If you have any question, please feel free to ask.
    Thanks,
    Challen Fu 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Dreamweaver 8 Behaviors for pop-up menu

    I am a novice user of Dreamweaver 8. I created a site using
    pop-up Behaviors for a dropdown navigation bar. I've read about a
    lot of problems others are having, but part of my problem I have
    not been able to locate anywhere.
    After I created my template and want to save changes to the
    template and update the files based on this template, I go thru a
    series of JavaScript errors. It never updates any files in the end
    and sometimes shuts down the program. An example of ONE of the
    error messages is:
    At line 1654 of file "C:\Program Files\Macromedia/Dreamweaver
    8\Configuration\Behaviors\Actions\Show Pop-up Menu.js": The
    function saveDocument() is currently unavailable.
    The more pages attached, the more error messages I get....
    all are .js errors.
    The other problem is the links from the pop-up. I've double
    checked them in the behavior pop-up menu... they appear to be
    correct and sometimes work, but not all the time.
    Everything I read says that I should create the navigation
    with pop-ups (drop down menus) in Fireworks. Is Dreamweaver that
    unreliable that this can't be done within itself?
    If anyone can tell me what I'm doing wrong to receive these
    errors and how to correct my links so they are reliable, I would
    very much appreciate it. I have recreated this site 6 times and the
    errors are consistent.
    Thanks, cjbyrnes

    >I am a novice user of Dreamweaver 8. I created a site
    using pop-up
    >Behaviors
    > for a dropdown navigation bar. I've read about a lot of
    problems others
    > are
    > having, but part of my problem I have not been able to
    locate anywhere.
    You read about all these problems, yet you pressed ahead and
    used them? Why?
    DW's Pop-up menus are incompatible with DW's templates.
    Embarrassingly sad,
    but true.
    Did you read about and investigate any of the many
    alternatives posted?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "cjbyrnes" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am a novice user of Dreamweaver 8. I created a site
    using pop-up
    >Behaviors
    > for a dropdown navigation bar. I've read about a lot of
    problems others
    > are
    > having, but part of my problem I have not been able to
    locate anywhere.
    >
    > After I created my template and want to save changes to
    the template and
    > update the files based on this template, I go thru a
    series of JavaScript
    > errors. It never updates any files in the end and
    sometimes shuts down the
    > program. An example of ONE of the error messages is:
    > At line 1654 of file "C:\Program
    Files\Macromedia/Dreamweaver
    > 8\Configuration\Behaviors\Actions\Show Pop-up Menu.js":
    The function
    > saveDocument() is currently unavailable.
    > The more pages attached, the more error messages I
    get.... all are .js
    > errors.
    >
    > The other problem is the links from the pop-up. I've
    double checked them
    > in
    > the behavior pop-up menu... they appear to be correct
    and sometimes work,
    > but
    > not all the time.
    >
    > Everything I read says that I should create the
    navigation with pop-ups
    > (drop
    > down menus) in Fireworks. Is Dreamweaver that unreliable
    that this can't
    > be
    > done within itself?
    >
    > If anyone can tell me what I'm doing wrong to receive
    these errors and how
    > to
    > correct my links so they are reliable, I would very much
    appreciate it. I
    > have
    > recreated this site 6 times and the errors are
    consistent.
    >
    > Thanks, cjbyrnes
    >

  • SSRS passing multiple values parameter

    Hi ,
    I have a multi select parameter that get values from a query in my SSRS report. The report works fine if i select a single value in drop down list. When trying to select All or select a multiple value i got an error. Any help is very much appreciated.
    thank you.
    By the way, i'm using Query type text not an stored procedure.
    Data in my @LineID parameter drop down list
    Select All
    Line1
    Line2
    Line3
    up to Line15
    I tried this approach and its not working. In dataset properties under parameter value expression, i made this approach
    =Join(parameter!Lineid.value,",") or =parameter!Lineid.value
    My Query:
    Select * from sample
    Where pt.Asuprodlineid IN (@LineID)

    1) You don't need to use JOIN in rdl pass simply "=parameter!Lineid.value". 
    2) And modify your query with below mentioned.
    select * from sample where pt.Asuprodlineid (SELECT WG.Param FROM fn_MVParam(@LineID) WG).
    It works for me.

  • Claim and Approval action giving abnormal behavior in worklist app in oim11gr2.

    hi guys
    we have following environment...
    weblogic 10.3.6 and oim 11g r2 bp03 in two node clustered environment which are load balanced with apache http server,everything was working fine with initially configured oim front end url wls.mycompany.com:80,Then we were forced to change the oimfront end url to identity.mycompany.com:80 by following
    1.oim config change
    2.call back url and worklist app changes in approval task of each composites in soa-infra
    Observed following abnormality behavior in approval workflow of application instance provisioning after oimfrontend url change.
    when approver click on approval task ,the claim action popup window displayed successfully
    when approver claim the action and it completes and popup window persist there with blank display(Observed a chopping  of  front end url from  identity.mycompany.com/identity/faces/...... to www.identity.com/faces/.........Then approver needs to close the popup).
    when approver click on approval task the approve action popup window displayed successfully
    when approver approve the action and it completes and popup window persist there with blank display(Observed a chopping  of  front end url from  identity.mycompany.com/identity/faces/...... to www.identity.com/faces/.......Then approver needs to close the popup).
    Application instance provisioning is working fine even though the above abnormal behavior was there...
    Why this url change is happening and How can we fix the abnormal url change from identity.mycompany.com/identity/faces/......  to   www.identiy.com/faces/...... ?
    Regards,
    Jdev

    Hi Ravi,
    Thnaks for your help.I will add this code and i will let you know.
    But the thing is recently 3 months back i implemented this ESS part in one server it is working fine.I'am able to apply Leave,Claims,Loan,travel from EP and the approver is able to approve the requests from UWL.When clicking on the Request in UWL it is launching a webdynpro iview and i'am able to perform the actions.
    Now i'am facing the problem and i hope i did the same config which i did previuosly.
    What would be the reason any Patch levels?
    Thanks and Regards,
    Praveen

  • Pop-ups for parameter value insertion don't appear

    Hi,
    I am using Web Intelligence for creating a report that allows custom parameter values to be inserted via pop-up.
    The problem is such pop-ups for parameter value insertion don't appear on the various web browsers I make use of.
    (I.E. versioni, Firefox versioni)
    Any idea on how to solve such issue?
    thanks in advance,
    SC

    I suppose that you mean query prompts, that are parameters that are asked to the user in order to filter the data.
    Which version of BOE are you using?. If you are using BOE XI R2, that problem happens when you use Java 1.6 (only when editing the document), you should use Java <=1.5 (you can check the error in the java console while you execute the report).
    I think that problem was solved in a SP (not sure which SP solves this ¿SP4?)

  • Report Builder Error: [BC30455] Argument not specified for parameter 'DateValue' of 'Public Function Day(DateValue As Date) As Integer'.

    Hi there!
    I'm trying to calculate the difference between two days using DATEDIFF (). I use following code for this:
    =DATEDIFF(DAY, CDate(Fields!Eingang_Kundenanfrage.Value),CDate(Fields!Ausgang_Angebot.Value))
    Every time I try to save the report, I get this error message:
    [BC30455] Argument not specified for parameter 'DateValue' of 'Public Function Day(DateValue As Date) As Integer'.
    The DataSource is a SharePoint List and the Date is given in the following format: 23.05.2014 00:00:00 (DD.MM.YYYY HH:MM:SS).
    I've googled for a working solution for a long time now, but I had no success.
    Is there someone who can help me?

    Hi Lucas,
    According to your description, you want to return the difference between two date. It seems that you want to get the days. Right?
    In Reporting Services, when we use DATEDIFF() function, we need to specify the data interval type, for days we can use "dd" or DateInterval.Day. So the expression should be like:
    =DATEDIFF(DateInterval.Day, CDate(Fields!Eingang_Kundenanfrage.Value),CDate(Fields!Ausgang_Angebot.Value))
    OR
    =DATEDIFF("dd", CDate(Fields!Eingang_Kundenanfrage.Value),CDate(Fields!Ausgang_Angebot.Value))
    Reference:
    Expression Examples (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Is it standard behavior for VL10A/table VEPVG to show two records when a Sales Document has been blocked?

    Hi Experts,
    Is it standard behavior for VL10A to show two records when a Sales Document has been blocked? Their only difference is the field Delivery Block. In VL10A, the first record has a delivery block of BLANK, the second has 99.
    Here's how to replicate the issue.
    Create sales order.
    When you check VL10A, the Sales document is there.
    Change sales order field (RSD) in VA02, Save.
    When you check VL10A, there are now two records, one has a blank delivery block, the other has 99.
    The expected result here is that after changing in VA02, there will be only 1 record in VL10A and it should have delivery block of 99.
    Assumptions:
    1. We know that VL10A retrieves its records from VEPVG. The problem is, in VEPVG, delivery block is a key field. So I think that during VA02, when the delivery block of 99 is assigned, this creates a record in VEPVG instead of updating the existing one. Is this standard behavior, and are my assumptions correct?
    Thanks in advanced experts. Appreciate your prompt response,
    Jack

    Hello Jack,
    This is the standard behavior. When I check in our system, I too can see two entries but with different good issue date and delivery date and the block is specific to good issue date, delivery date.
    So there is no problem in it. try to give the delivery date which includes two table entries delivery date and execute the transaction VL10A.
    Regards,
    TP

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Argument not specified for parameter error.(IIF) Report Builder 3.0

    Hi, Im trying to set the font colour of text dynamically dependant upon the date. 
    This is using report builder 3.0 expressions. -I'm new to using expressions. 
    I want my expression to do this:
    If less than or equal to today, RED, 
    If greater than today but less than today+30 days, yellow, (this is the confusing bit)
    else Black.
    My expression is this:
    =IIF(Fields!Standard_Licence_Expiry.Value =< TODAY(),"Red",
    IIF(Fields!Standard_Licence_Expiry.Value BETWEEN TODAY() and (DATEADD(DateInterval.DAY,30,GETDATE())),"Purple","Black")
    However I keep getting the error:
    The Color expression for the textrun ‘Standard_Licence_Expiry.Paragraphs[0].TextRuns[0]’ contains an error: [BC30455] Argument not specified for parameter 'FalsePart' of 'Public Function IIf(Expression As Boolean, TruePart As Object, FalsePart As Object)
    As Object'.

    Hi BlakeWills,
    Unlike T-SQL, there is no BETWEEN keyword in
    SSRS expressions. So we can try the expression like below to achieve your requirement:
    =IIF(Fields!Standard_Licence_Expiry.Value <=TODAY(),"Red", IIF(Fields!Standard_Licence_Expiry.Value > TODAY() and Fields!Standard_Licence_Expiry.Value < DateAdd(DateInterval.Day,30,Today()),"Yellow","Black"))
    Please note that the Standard_Licence_Expiry field should be a date type data in the expression above. If it is a string type, we should use the expression below to replace the Fields!Standard_Licence_Expiry.Value:
    cdate(Fields!Standard_Licence_Expiry.Value)
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • No Definition for parameter with name NOREFFLAG available: IP Function

    Hi All!
    I'm working with Portal 7 and BW 7
    I'm trying to create a Planning Function of Type: <b>Distribution by reference data</b> when I indicate some characteristics to be changed in the "To Characteristics Usage" tab and change to the "To Parameters" tab, I get the following error:
    <i> The initial exception that caused the request to fail, was:
      <b>com.sap.ip.bi.plan.sb.interfaces.ifs.other.NoSuchElementException: No Definition for parameter with name NOREFFLAG available</b>.
        at com.sap.ip.bi.plan.sb.interfaces.cls.tydef.ParamSetDef.checkRequest(ParamSetDef.java:123)
        at com.sap.ip.bi.plan.sb.interfaces.cls.tydef.ParamSetDef.getParamElementaryDef(ParamSetDef.java:84)
        at com.sap.ip.bi.plan.sb.interfaces.cls.srv.ParamSet.getParamElementary(ParamSet.java:113)
        at com.sap.ip.bi.plan.sb.plandialogcomps02.distrefdata.DistRefDataParamsDialogComp.setAll(DistRefDataParamsDialogComp.java:326)
        at com.sap.ip.bi.plan.sb.plandialogcomps02.distrefdata.wdp.InternalDistRefDataParamsDialogComp.setAll(InternalDistRefDataParamsDialogComp.java:199)
        ... 62 more
    Detailed Exception Chain
    com.sap.ip.bi.plan.sb.interfaces.ifs.other.NoSuchElementException: No Definition for parameter with name NOREFFLAG available.
         at com.sap.ip.bi.plan.sb.interfaces.cls.tydef.ParamSetDef.checkRequest(ParamSetDef.java:123)
         at com.sap.ip.bi.plan.sb.interfaces.cls.tydef.ParamSetDef.getParamElementaryDef(ParamSetDef.java:84)
         at com.sap.ip.bi.plan.sb.interfaces.cls.srv.ParamSet.getParamElementary(ParamSet.java:113)
         at com.sap.ip.bi.plan.sb.plandialogcomps02.distrefdata.DistRefDataParamsDialogComp.setAll(DistRefDataParamsDialogComp.java:326)
         at com.sap.ip.bi.plan.sb.plandialogcomps02.distrefdata.wdp.InternalDistRefDataParamsDialogComp.setAll(InternalDistRefDataParamsDialogComp.java:199)
         at com.sap.ip.bi.plan.sb.plandialogcomps02.distrefdata.DistRefDataParamsDialogCompInterface.setAll(DistRefDataParamsDialogCompInterface.java:143)
         at com.sap.ip.bi.plan.sb.plandialogcomps02.distrefdata.wdp.InternalDistRefDataParamsDialogCompInterface.setAll(InternalDistRefDataParamsDialogCompInterface.java:156)
         at com.sap.ip.bi.plan.sb.plandialogcomps02.distrefdata.wdp.InternalDistRefDataParamsDialogCompInterface$External.setAll(InternalDistRefDataParamsDialogCompInterface.java:212)
         at com.sap.ip.bi.plan.sb.impl.main.pscreencust.ParamScreenCust.loadNewRule(ParamScreenCust.java:315)
         at com.sap.ip.bi.plan.sb.impl.main.pscreencust.ParamScreenCust._reloadAll(ParamScreenCust.java:590)
         at com.sap.ip.bi.plan.sb.impl.main.pscreencust.ParamScreenCust.prepareView(ParamScreenCust.java:341)
         at com.sap.ip.bi.plan.sb.impl.main.pscreencust.wdp.InternalParamScreenCust.prepareView(InternalParamScreenCust.java:179)
         at com.sap.ip.bi.plan.sb.impl.main.SBuilderMainComp.ehDoNavigationAfterCheck(SBuilderMainComp.java:561)
         at com.sap.ip.bi.plan.sb.impl.main.wdp.InternalSBuilderMainComp.wdInvokeEventHandler(InternalSBuilderMainComp.java:229)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.invokeEventHandler(DelegatingComponent.java:161)
         at com.sap.tc.webdynpro.progmodel.controller.Component.fireEvent(Component.java:283)
         at com.sap.ip.bi.plan.sb.impl.main.cuscreencust.wdp.InternalCharUsageScreenCust.wdFireEventEventCharUsageCheckAfter(InternalCharUsageScreenCust.java:236)
         at com.sap.ip.bi.plan.sb.impl.main.cuscreencust.CharUsageScreenCust._finishUpdateAndNavigationAfterCheck(CharUsageScreenCust.java:373)
         at com.sap.ip.bi.plan.sb.impl.main.cuscreencust.CharUsageScreenCust.checkCharUsage(CharUsageScreenCust.java:257)
         at com.sap.ip.bi.plan.sb.impl.main.cuscreencust.wdp.InternalCharUsageScreenCust.checkCharUsage(InternalCharUsageScreenCust.java:151)
         at com.sap.ip.bi.plan.sb.impl.main.SBuilderMainCompView.onActionNavButton(SBuilderMainCompView.java:230)
         at com.sap.ip.bi.plan.sb.impl.main.wdp.InternalSBuilderMainCompView.wdInvokeEventHandler(InternalSBuilderMainCompView.java:206)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)</i>
    I'll apreciate any help!.
    Thnks a lot!
    Yolanda.

    Hi Hans
    Yes, It was because I had to active some objects in the bussines content, specifically:
    Type Objects --> Type Formulas.  all of them.
    I unmarked this thread as a quiestion, that's for I cannot assing you points.
    Thnk you very much .

  • How can we provide F4 help for parameter field.

    Hi All,
    How can I provide F4 help for parameter field.
    Regards,
    Amar

    hi,
    different ways of applying search help are :
    you can use anyone:
    1)   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    or
    2) 
    can follow these simple steps for search help:
    go to se11==> put some name after ticking search help radiobutton==> create==>
    then tick " elementery search help " and press enter ===>then put description and table name in selection method ===>then put the field on which u want search help
    in search help parameter==> tick IMP EXP ==> write 1 in lpos and spos===>save and activate===> double click on table name ===>  select that field and press *search help tab* above===> then copy
    3 )
    methods of applyind search help:
    For search help sometimes we use MATCHCODE----->when we apply it directly to parameter or select option.they are obselete now ii.For search help sometimes we CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' ??------->if we want to populate data of internal table as search help.
    iii.For search help sometimes we declare tablename-fieldname in selection?------>if that field in that table is having seach help or check table ..F4 will be avaliable directly.
    also:
    Fixed value of domain can also work as search help.
    i hope it will help u a lot
    thaks and regards
    rahul sharma

Maybe you are looking for