Range Parameter in report heading

Post Author: Kara
CA Forum: Formula
Hi,
I am using version 9. I have designed a report with a date range parameter that I would like to display in the report header. To get both the 'from' and 'to' dates to appear I am trying to write a formula, but keep getting the message "a string is required". My formula is as follows:
"from" + Minimum({?Date Range})+ "to" + Maximum({?Date Range})
Can anyone tell me where I am going wrong?!
Any help gratefully received.
received
Kara

Post Author: V361
CA Forum: Formula
You need two Parameters, name one {?MIN_DateRange} and the other , your customer will be prompted for two dates, Min and Max, then change your formula for the header, replace the + with &  
"From: "  & {?MIN_DateRange} & "to " & {?MAX_DateRange}

Similar Messages

  • Select parameter in report heading

    Hi all,
    I have defined a date parameter as
    Select-options: S_NACD2 FOR Z_VIEW_GITREPORT-BL_DATE OBLIGATORY. (It is a date type select option)
    I have defined report heading as :
    CALL FUNCTION 'HR_DISPLAY_BASIC_LIST'
    EXPORTING
    BASIC_LIST_TITLE   = 'GIT Against Import POs'"sy-title
       FILE_NAME       = 'HR_DISPLAY_BASIC_LIST'
       HEAD_LINE1      = GIT_REPORT_ID
       HEAD_LINE2      = DATE
       HEAD_LINE3      = USER_NAME
       HEAD_LINE4      = RECS_FOUND
       CURRENT_REPORT  = 'HR_DISPLAY_BASIC_LIST'
    TABLES
       DATA_TAB        = IT_GIT
       FIELDNAME_TAB   = MTAB_FIELDNAMES.
    EXIT.
    What I want that after heading ''GIT Against Import POs'' , value in S_NACD2 should appear like :
    GIT Against Import POs  25.11.2007    31.11.2007.
    How can I do that??
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

    hi Aisha Ishrat
    declare a variable
    data: loc_variable(200).
    then concatenate 'GIT Against Import POs' ' POs' ' 25.11.2007' ' 31.11.2007' into loc_variable.
    then pass BASIC_LIST_TITLE =  loc_variable.
    hope u ll get.
    regards
    karthik

  • Including parameter in report heading

    how can I include the parameter that is selected within a link to run a
    report as a "column heading ". In other words:
    "Dept A" was selected via the link so when the report is run, the column
    heading for the report shows "Dept A" and everything that falls within that
    category. I have tried the htp.p('Org:'||get_value(parameter_name) but can I include
    more than one parameter in that construct, and also can I manipulate the value's size and font?
    Sincerely
    CJ

    Hi,
    Is there a way of including a parameter that is passed in in the report ?Yes you can create a new calculation and in it you can either select from the available parameters or use the parameter name.
    For example if you have a parameter called "P_DATE" you should create a calculation as followed:
    :P_DATE
    This will create a new column with the parameter data.
    If you want to create a calculation using the parameter you should create the calculation and in it use the " : " before the parameter name.
    for example to calc the number of days past since the parameter value:
    trunc(SYSDATE) - trnuc(:P_DATE)
    Tamir

  • Crystal report range parameter issue

    Hi,
    I have created 2 parameter have range option, but when I am saving the report , the following error is displayed
    message: Additional parameter values are needed before this report can be saved or viewed with data. click ok to enter missing values or cancel to proceed without saving.
    Could any one help me to rectify the above issue , this error is only when i am defining range parameter .
    and 1 more issue after creating parameter when I execute report in preview mode  its always asking signon password and if I remove the parameters then its executing correctly without asking password.
    please help me to solve the above issues
    thanks
    bobby

    Hi Dear,
               I was also facing the same problem yesterday.   
              but I have solved it.
              Problem is. when you choose dynamic instead of static in selection, it automatically take String as datatype,
              so in Formula  you need to convert that String  into Data. then I am 100% sure it will work.
              Please Try the give code in your "select Experts  Formula".
    cdate(tonumber(mid({PurchaseRegAqua_BI;1.DocDate},7,4)),tonumber(mid({PurchaseRegAqua_BI;1.DocDate},4,2)),tonumber(mid({PurchaseRegAqua_BI;1.DocDate},1,2))) in cdate(tonumber(mid({?@StartDate},7,4)),tonumber(mid({?@StartDate},4,2)),tonumber(mid({?@StartDate},1,2))) to cdate(tonumber(mid({?@EndDate},7,4)),tonumber(mid({?@EndDate},4,2)),tonumber(mid({?@EndDate},1,2)))
    Thanks & ragard
              Obaid
    Edited by: obaid shaikh on Dec 29, 2010 8:05 AM

  • Using Parameter Date Range Values in Report

    Post Author: rsteeg
    CA Forum: General
    i would like to include the selected start and end dates on my report to display the range of the report.  I cannot recall how to do it.  Can any one help?  I am using CR X.

    Post Author: Crystal Fire
    CA Forum: General
    "All Dates Between "+ ToText(Minimum({?Your Date Field}),"M/d/yyyy")" and "ToText(Maximum({?Your Date Field}),"M/d/yyyy")

  • Displaying Date Parameters in Report Heading

    Post Author: Jim-1003
    CA Forum: Formula
    Hello,
    I am new to Crystal Reports, and I am trying to improve an existing report definition so that the beginning and end dates selected by the user are displayed as part of the report heading.  I saw something similar in the report samples, but the sample uses custom functions that apply only to that report -- cdFormatDateRange and cdSpecialDateRange.  I have not found any documentation on how those functions were created or how to use them. Any help you can give me would be greatly appreciated!
    Thanks,
    Jim

    Post Author: Jim-1003
    CA Forum: Formula
    After some digging, I did find out more.  First of all, in the options for my Parameter, the option to allow multiple entries was set to true, so I didn't really have a range, but an array of ranges, which confused the editor.
    Second, I finally did find the source code for cdFormatDateRange, which allowed me to reuse it by copying it into the clipboard and pasting it into my report. 

  • 4.x: Document Link passing range parameter to a WebI rpt using BEx query

    I'm new to working with BEx queries, so I may use the wrong terminology.  I'm trying to create a document hyperlink from one WebI report to another.  Both are based on BEx queries, which I didn't create, nor do I have access to modify.  The BEx query for the target report has a parameter, Fiscal year/period, which is a range parameter.  The displayed value in a report or in pick lists is in the format "JUL 2010".  The key is in the format "K4/007/2010". 
    I have tried using the Document Link expert to configure passing the range parameter, but have been unsuccessful.  The typical result is an error message, ERR_WIS_30270, which is most likely the result of an incorrect format for passing the range.  I've not been able to locate adequate documentation that describes the syntax for passing a range value to a BEx parameter.  I've successfully created Document Links to reports using BEx queries that have a parameter that requires a single value, and I've done Document links in non-Bex reports in 3.1 without issues.
    Has anyone successfully passed a range value to a BEx paramter?   If so, what syntax did you use?
    The environment is BI 4.0, sp 2 (14.0.2.439)
    Edited by: Steve Green on Oct 7, 2011 8:04 PM

    Marianne,
    Thanks for the heads up on the fixpack.  I tried looking at the note # you sent, but a search of SAP Notes says that the note has not been released.  However, reviewing the Fixed Issues in fixpack 6 shows the following item:
    ADAPT01580012
    Link to a WebIntelligence report using syntax OpenDocument fails when target document contains a prompt
    based on a BEx variable of type Interval. Error message is "An internal error occurred while calling
    'answerPromptEx' API. (Error: ERR_WIS_30270)".
    Behavior is now correct and refresh operation takes into account interval answer passed in OpenDocument URL.
    Now we just need to upgrade to fp 2.6 to see if it resolves this issue.  I've also opened a ticket with support, so I'll see what they say.
    Edited by: Steve Green on Oct 12, 2011 7:27 PM

  • Display multiple parameters in report header

    i am attempting to display a multiple parameter selection in my report header
    i user
    join({?parameter},",")
    in the stored proc it is a varchar
    in the formula editor i receive this error
    a string array is required here
    what do i need to do to display the selected parameter values
    i have used this function before with varchars and have had no problems

    i used the following syntax in my sp which produced the correct results. i just placed the parameter in the header without using the join function and it works like a charm.
    ALTER   PROCEDURE [dbo].[Pr_orn_whse_rcpts]          
         (@From_Crt_Dte     datetime ,
          @To_Crt_Dte     datetime,
         @whse          varchar(90))
    AS          
    CREATE TABLE #T_Localwhs
         warehouse varchar(6) null
    DECLARE
         @var     varchar(6),
         @i     numeric,
         @whs     varchar(6),
         @chk     numeric
    SET @i = 1
    SET @var = (charindex(',',@whse))
    IF @var <> 0
         BEGIN
         WHILE (@i < @var)
              BEGIN
                   --SET @var = (CHARINDEX(',',@whse))
                   SET @whs = LTRIM(LEFT(@whse, (@var-1)))
                   INSERT #T_Localwhs (warehouse) VALUES (@whs)
                   SET @whse = RIGHT(@whse, (LEN(@whse)-@var))
                   SET @var = (CHARINDEX(',',@whse))
              END
         INSERT #T_Localwhs (warehouse) VALUES (LTRIM(@whse))
         END
    ELSE
         BEGIN
         INSERT #T_Localwhs (warehouse) VALUES (LTRIM(@whse))
         END
    then you add a nested query to join it to the sp. as below. above your where statement.
    JOIN     
              SELECT DISTINCT
                   Warehouse
              FROM      #T_Localwhs
              ) TW
         ON     in_wthdr_tbl.in_wthdr_frwhs = TW.warehouse
    WHERE

  • Need help showing multiple parameters in a report header

    Post Author: Annette
    CA Forum: Formula
    hi-- i am new to this and i have created a report where the person picks one or more items (they are different hospital suites) and i need for them to print on the report header all of the selections that they chose. right now it only prints the name of the first one they choose..
    any help would be good..
    i do know it's a string value....
    thank-you for anything you can help me with....
    basically if 1 is picked then it needs to state that name, if 2 or more are picked id like it to say Name, name, name, etx...

    Post Author: Annette
    CA Forum: Formula
    the actual parameter is a number, but what im trying to populate on the heading is the name of the number..
    for example... when you choose the resource unit of 31 when you refresh i want it to show the name of it which is ORA Surgery.... but if they choose 31 & 53 then id like it to show ORA Surgery, ORD Surgery.... right now it just pulls the first name choosen.. does that make sense..
    so the parameter is a number, but the name(the one i want populated)  is a string
    and oh gosh,, thanks for your quick responses..

  • Paramteter in Portal Report Header

    Hi
    Is there a a way of showing the parameter that a user enters in
    a report header, perhaps with some text
    eg given the query
    select * from SCOTT.EMP
    where DEPTNO = :department
    I would want to show something like 'Department is :':department
    number in the page header of the report, and hide deptno in the
    result set displayed. I am trying to emulate something similar
    to the way that Discoverer users 'Page items'.
    Thanks in advance
    Tim

    To display the parameter, you could enter the following code
    into the '...After displaying the header' event on the PL/SQL
    tab.
    htp.prn(htf.bold('Department is ')
    ||portal30.wwv_name_value.get_string( l_arg_names,
    l_arg_values, 'department'));
    htp.br;
    Then just change the display type of Department to Hidden.
    Hope this helps.

  • Hide/show text boxes in report header

    Hi All,
    I'm trying to implement a request to have a tablix header frozen in excel. So, I'm placing it in the report header as text boxes. However, there are two different tablixes (a one per page) with two different headings. I'm trying to place those two headings
    into two rectangles in the report header hiding and showing a one of it based on the Page No. It works but only for the first tablix heading as it's shown on the first page and hidden on the second page. But, the second tablix heading is not shown on the second
    page for some reason. It's probably due to the Page No rendering is  going later than the text boxes  appearances on the second page or something else causing it. 
    I did try to use the Global Page No in if visibility statement for those two rectangles, trying to get Page No through a function, using it as a parameter,  but nothing is making the second rectangle to show on the second page report header.
    Please, help with how it could be done.
    Thanks

    Hi al-dol,
    Per my understanding that you have put the textbox in the page header to display the table head instead of in the tablix thus you will got the frozen head when export to excel, you have two table header, so you need to add two rectangle to display both in
    two different page, now the issue is the second page header didn't display, right?
    I have testted on my local environment and can reproduce the issue, the issue can be caused by when you move the rectangle2 on the position of the rectangle1 then the rectangle becomes the child of rectangle1 but not the child of page header thus you will
    not shown the rectangle2.
    Please check the details information below to see if you have got the rectangle2 inside the rectangle1 like below:
    if so, please move the rectangle2 one time and check to make sure you got the "Page Header" in the parent section of both rectangle:
    Please also make sure you have use below expression to show/hide the rectangle:
    rectangle1:
    =iif(Globals!PageNumber=1,false,true)
    rectangle2:
    =iif(Globals!PageNumber=2,false,true)
    If you still have any problem, please feel free to ask.
    Regars,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to show sysdate in report header

    Hi everyone
    i want to show the Sysdate option in my report header.
    i have been looking around and i found out that i have to add {$SYSDATE()$} to my report default value, the issue is
    1) cant find where is my default value so i can edit it
    2) is there anyway that i can write this comman {$SYSDATE()$} in my header and it will call the system date ?
    thanks

    In the Data Model Editor go to Parameters.
    Create a New Parameter
    1. Give it a Name P_Sysdate
    2 set Data Type to Date
    3 Set Default Value to {$SYSDATE()$}
    when you create you XML it should look like
    <!--Generated by Oracle BI Publisher 11.1.1.6.7-->
    <DATA_DS>
      <P_SYSDATE>2013-07-03T01:00:00.000-04:00</P_SYSDATE>
      <G_1>

  • SSRS Text box expression in Report Header

    Hi Experts,
    I'm trying below expression under Text box (Report Header)
    = IIf( IsNothing(Parameters!vCp_ID.Value) OR Parameters!vCp_ID.Value = "", "All", Join(Parameters!vCp_ID.Value,", ") )
    It gives me error message as:- 
    Warning 1 [rsRuntimeErrorInExpression] The Value expression for the textrun ‘Header_Cp_ID_Value.Paragraphs[0].TextRuns[0]’ contains an error: Overload resolution failed because no Public '=' can be called with these arguments: 'Public Shared Operator =(a As String, b As String) As Boolean': Argument matching parameter 'a' cannot convert from 'Object()' to 'String'. C:\Users\abc1\Documents\Visual Studio 2008\Projects\Report Project1\Report Project1\ClaimsLevel.rdl 0 0
    Any help what I'm doing wrong? Because of this is it printing "#Error" while previewing the Report.
    If I remove IIF condition and place only:- 
    Join(Parameters!vCp_ID.Value,", ")
    than everything is working fine.
    Thanks in advance
    Kumar
    KG, MCTS

    Hi,
    Since this parameter allows selection of multi values, the values of the parameter is returned as an array which cannot be used in comparing with = operator, as you have in the expression
    Parameters!vCp_ID.Value = "".
    You may pass the first value of the parameter (element with 0 index) instead like
    Parameters!vCp_ID.Value(0) = "". Note the .Value(0). As such, you expression may be written as
    = IIf( IsNothing(Parameters!vCp_ID.Value) OR Parameters!vCp_ID.Value(0) = "", "All", Join(Parameters!vCp_ID.Value,", ") )
    Hope this helps. Please feel free to discuss if you have any other questions.
    Regards
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
    BH

  • Date Range Parameter's Restriction

    Could you someone please tell me how BO restricts date range parameter when the users tries to run a query?  Often times, users simultaneously try to get several years of data dumped into a single query.  Some users even forget to enforce the date range, which causes the query to try to get the data from the beginning of time. 
    How do we as a BO developer create some sort of date range restriction so that it can prevent users from overloading a query?  If the users want to get several years of data, he/she has to run a query in batches instead of doing it all at once.
    I hope there is a way that we can create a custom informational error message for each report to prevent users from trying to query too many months or years of data.  Some reports may hit small and well-indexed tables that allow large date range queries.  But, some reports query against large and poorly indexed tables, which can potentially cause adverse effect on performance without date range restriction. 
    Any thoughts or advices on how to implement such things (if possible).  I am also afraid that the answer will be "currently not doable".  If so, any ideas if the next version of BO will allow such functionality, or if it is at least in the plan at all?  Thank you so much for your insight and sharing.  Have a great day!

    Dear Amr,
    Thanks so much for your quick reply!  The field I want to create a restriction on is called RESULT_DT_TM.  When I saw the "where" section of the field, I just don't see how I can apply my START_DT_TM and END_DT_TM parameters on this field so that START_DT_TM and END_DT_TM cannot be more than 365 days apart.  If my query does not use parameters called START_DT_TM and END_DT_TM, this "where" section will not be valid? 
    I don't think the solution has to be on the field itself but rather on the parameter START_DT_TM and END_DT_TM.  What I want is that as long as START_DT_TM and END_DT_TM are more than 365 days apart, it does not matter what field these parameters are running against. The screen would then display something saying "your date range parameters for this report must be within 365 days.  Please revise your date range on query".
    Sorry, I am PL/SQL report programmer, and not familiar with what BO can do.  So, is there anyway that can make my dream come true?  Thanks a bunch again, Amr.

  • Displaying report header in spool

    Hi
    I need to find a way to display the my report header in the spool. Currently, the spool is only displaying the ALV grid of my report. In my report, I generate the header using the I_CALLBACK_HTML_TOP_OF_PAGE parameter of the REUSE_ALV_GRID_DISPLAY. Guess that's the problem of why the report header is not displaying in the spool. Is there any other way to create the report header and to enable it to be displayed in the spool?
    By the way, is the spool max length only 255? My report has a lot of columns and most of the columns are the back are not displayed in the spool. Any workarounds for this?
    Appreciate any help provided.

    Hi,
    The contents displayed using I_CALLBACK_HTML_TOP_OF_PAGE is generally not shown in the spool. You need to code the TOP_OF_LIST  as well as you do it in REUSE_ALV_LIST_DISPLAY for getting the header contents in the spool.
    For the second part of the question you can think of saving different variants in ALV and print them one by one. Another thing you can do is to try to optimize column width to see if it fits within 255 chars.
    Thanks and regards,
    S. Chandra Mouli.

Maybe you are looking for

  • Keyboard does not appear

    I can't get a keyboard. Tried Pages, Mail, Calendar. Tried to power off and on many times. Can only find one other person who experienced this in the discussions. Any solutions? Thanks.

  • Error indication

    Hello XI Experts, I have an asynchronous scenario  file to proxy. For every transaction to proxy from File, I am calling an outbound proxy to send a response back to sender (which has the content success or error with details) which is file again. Fo

  • Iphone menu button  not working takes several clicks to change menu

    I can push on off button, and keep pushing menu button  and will finally change, but doesn't just click to change anymore. Just started this today, I just got the phone when verizon came out with it in Feb. so is still new. What can I do?

  • Tree branches about to snap line

    In the last couple of months broandband speed has dropped and line has a crackle. On way home today i noticed some branches on the bt line which is streching the line downwards its only a matter of time before thsy snap through. i was wondering if th

  • Ios 6 showtimes not local

    When I ask Siri for local movie theaters or showtimes, it shows me Theaters that are 20+ miles away. Safari and Siri have location services turned on, and i would have thought that would do it. Why won't it find anything close by? Where is it pulling