Variable in Prompts instead of a Date column

Hi,
How do I create a presentation variable of type date to use it in the prompt? I do not want to use the date column, but use a variable to pass the start date and end date. This is because, I have two views in a report. Both the views accept different date columns as input. Can someone please guide me here to solve this issue?
Thank You,
AK

Hi,
I was able to pass values to two different views from the date prompt. The only issue I have is with the filter.
This is what I have in the filter:
VariableExpr = myPresentationVariableName
default = valueof(myRepositoryVariableName)
The report runs fine, but I see errors when I click on 'Results' tab in Answers. The errors say, "Expecting datetime value but got valueof(myRepositoryVariableName)"
I even tried to Cast it to date which says CAST(valueof(myRepositoryVariableName) AS DATE). But it did not work.
Am I missing anything here? The errors appear only in Results tab of Answers. When the report is run through the dashboard, it runs just fine.
Thank You,
AK

Similar Messages

  • How to get date prompts from one date column

    i have a requirement where i have to filter the data between two date prompts. i have only one date column and the date in the prompts shuld be selected by calendar.
    i have seen may approaches to do this and i got one where two dummy date columns should be declared in repository and used to define the date prompts.
    but using other methods i could not get the calendar option in prompt.
    but is there any other way to get the prompts with calndar selection without defining the dummy columns in repository
    thanks

    you can do that first select the date column you want to use in dashboard prompt then select another column and in the dashboard prompts then open the fx of the date prompt you first selected copy that and paste it in the second column and in the control section click on calender it will work you can use same date column as two prompts with out creating new column.

  • Select distinct for a date column in present. service when creating prompt

    hi all
    I am trying to create some new prompts in my answers and I have the following problem. When I try to create a new prompt on a date column ( for example Modification Date), when I try to run this report on this prompt it is displaying the same date a lot of times ( for example 2/4/11 it is being displayed 4 times).
    Is there any way i can change this, so to display distinct dates?
    Thank you and best regards

    Hi Deva
    I am trying to use this, but in the system are being saved the date + hour.
    When i try select distinct modification date from My_view, i still have the same dates because they have different hours.
    When i try select disctinct to_date(modification_date)..... I am having an error in BI.
    Please help me to solve this issue.
    Regards

  • ADF Unable to filter / sort date column in table

    Hi,
    I am using JDeveloper 11.1.1.7.
    I have a read only table inside a panel collection. One of the columns in the table is a date field. I have filterable and sortable properties set to true for all columns. Filter and sort property works for all columns expect the date column. The filter and sort options is not even shown for the date field (shown below).
    <af:column headerText="#{bindings.ASRTCreateRequestVO1.hints.CreationDate.label}"
                                             id="c7" sortable="true" width="100"
                                             filterable="true">
                                    <af:outputText value="#{row.CreationDate}"
                                                   id="ot7">
                                      <af:convertDateTime pattern="#{bindings.ASRTCreateRequestVO1.hints.CreationDate.format}"/>
                                    </af:outputText>
                                  </af:column>
    Please let me know if I am missing anything here.
    Thanks,
    Ashwin

    Hi Ashwin,
    As mentioned by Timo, for me also the filtering is working as usual.
    But while browsing through the ADF UI Guide I came across with below note
    If you want to use a component other than an inputText component for your filter (for example, an inputDate component), then instead of setting filterVisible to true, you can add the needed component to the filter facet.
    To do so:
    1. In the Structure window, right-click the column to be filtered and choose Insert inside af:column > JSF Core > Filter facet.
    2. From the Component Palette, drag and drop a component into the facet.
    3. Set the value of the component to the corresponding attribute within the FilterableQueryDescriptor class created in Step 1(not above step but you can find it in pg:390). Note that the value must take into account the variable used for the row, for example:
    #{af:inputDate label="Select Date" id="name" value="row.filterCriteria.date"}.
    This is in the section: 12.5.1 How to Add Filtering to a Table(pg:390).
    I hope it helps.
    Regards,
    Peddi.

  • BPS Planning Layout - Data Column issues

    My basic question is:  is it possible to configure a characteristic in the data column such that it contains a range of values, instead of just a single value.  We have requirements to produce a series of comparison columns for things such as "Year-to-Date" (sum of a range of fiscal periods), "Prior 12 Months" (again, sum of a range of periods), and so forth.  Unfortunately, the BPS layout configuration of data columns only allows you to specify a single characteristic value.  If you configure it with a variable that contains the range, the system only uses the LOW value of the range, not the full range.  The ability to provide such comparison columns is critical to our users' ability to see prior information and make a determination of new plan values for the plan year.
    Any thoughts or suggestions on how I should approach this, or alternative approaches to take?

    John,
    This has been an issue with BPS since you can only display data columns of the granularity you specify rather than a range such as YTD similar to what you can do in BW restricted key figures. 
    The work around is to create and store the numbers in 
    1) YTD key figure in say fiscal year current year fiscal period current period and/or
    2) Prior 12 months Key figure and store the number against fiscal year current year fiscal period # or first period period of the year...
    Hope this helps and assign points if you found it useful.
    Mary

  • How to use the prompt value in the report column

    Hi
    I have a report prompt column which is 'Adj Type' which holds values 10,20,30 and when user selects Adj Type = 10 then this value should be passed to report column.
    For Eg. Column 1 value is 10 and this should multiple with prompt value and the output should be 10* 10.
    Any thoughts how to capture the prompt values in report column for calculation.

    hi hsekar,
    1) Declare a presentation variable in prompt under the Set Variable section -->Presentation Variable -->P_var
    2) In Fx Table_name.Your_column * @{P_Var}
    @{P_var}{20} ( 20 is default value it will override when a user selects value in prompt
    Thanks,
    Saichand.v

  • XML Publisher - Dynamic Data Columns Issue

    Hi,
    I am creating a amortization report where I need to show the amortization schedule for unearned revenue. Customers have signed different years of contract and I need to show the amount as per their remaining contract months. So if there are 2 month remaining in the contract then I should show the data for 2 months only and if there are 10 months then I should display 10 months. If we run the report for both customers then it should display two lines in report. For first customer the data should be only for 2 months and for second row(customer) there should be data for next 10 months. These months should be columns in the report(like excel columns, not rows). I need to display all months in columns instead of rows.
    I have acheived that using Dynamic Data Columns as mentioned in the user guide. Everything is working fine except following issues -
    1. How to create page level total?_
    I have created page total in my template using <?add-page-total:TOTUREV;'UREV'?> and displaying using <?show-page-total:TOTUREV?> but when I run the report in excel format these page total do not display. These columns are static columns not dynamic.
    If I run the report in pdf format then the static column total is displayed correctly.
    2. When I run the report in excel format then report run fine and it shows all the columns properly but if I run the report in pdf format then the dynamic column are not displayed in their own columns, all the columns are overwriting each other in a single columns itself, its not expanding.
    3. How do I get the total for the dynamic columns?_
    I need to display the page level total for the dynamic columns also, how do I do that?
    4. When I run the report in excel format the 2 decimal places of the numbers are gone(it works fine in pdf output), like 12.50 becomes 12.5 and 14.00 becomes 14. I need to maintain those 2 decimal places. I have tried using <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?format-number:CVALUE;'999999D99'?></fo:bidi-override> but this does not solve my problem completely. It shows the values correctly in excel but then I am not able to do any calculation on those columns, looks like it converts them to text values.
    Any help is really appreicated. Please let me know if you need the xml template and data file.
    Regards
    Hitesh

    Hi Hitesh,
    Can you please upload your RTF and XML template file? I will try to spend sometime on this issue.
    Cheers
    Sachin

  • How can i change the Format of my DATE column?

    I need to change the date format for a whole column. At present i can do MM-DD-YYYY. I need to change this this to DD-MMM-YYYY.
    I know about the to_date function, i tried to apply it to change the format of my whole column by doing the following.....
    CREATE TABLE "IT220_DATEHOLIDAY"
    "DEPARTID" VarChar(2)NOT NULL ENABLE,
    "HOLCODE" VARCHAR2(2)NOT NULL ENABLE,
    "DEPARDATE" DATE,
    to_date('DATE','DD-MMM-YYYY'), <<<change DATE column to DD-MMM-YYYY
    CONSTRAINT "DATEHOLIDAY_PK" PRIMARY KEY ("DEPARTID") ENABLE
    ORA-00902: invalid datatype <<<<This was the error message i received.
    I am aware that the to_date function is supposed to be used to change strings into a certain format. I guess this means you cant do it with columns? Is there anyway i can format the whole column or do i have to do each string of data entered one by one?
    Thanks in advance!

    Hello Jay,
    I'm not sure you hit the right forum, as this doesn't seem to be a problem with APEX.
    Anyway:
    You can't use that function on a table like that, and as you already suggested, the to_date-function expects a string value.
    It seems you also have a misunderstanding of the basic datatypes in the database. DATE is such a datatype and is stored an internal format you don't need to care about. Each time your request the value, the database will give you a string representation according to either your locale or you give a certain formatting mask.
    The same applies to insert or update operations: you hand in either a variable of type DATE or use a function like to_date to create an "object" of type date.
    You may be interested in reading the documentation of the [url http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/toc.htm]Oracle Database Concepts. The section concerning datatype DATE can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/tablecls.htm#CBBGJHJC
    An overview of formatting options can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#SQLRF00212
    So to answer your question: You would format it as part of your insert operation, taking a string and convert it using to_date.
    -Udo

  • SUB Totals within a Dynamic Data Column

    Has anyone ever calculated SUB Totals in a Layout with a Dynamic Data Column?
        The TOTAL for all data is expressed on the Data Column tab of the Layout as C(1):C(1) - 0FISCPER / Posting Period is the Dynamic Characteristic.  When the system actually displays the 12 columns of data for the Year, the formula for TOTAL is also adjusted - no problem here.  But the user also wants SUB Totals, by Quarter, within the Year.
        Any insight or suggections are appreciated !
    Thanks,
    Lyle

    Hello,
    use variables Q1, ..., Q4 for the quarters and create
    data colums as follows
    1 Q1 dynamic = X
    2 Total C(1)
    3 Q2 dynamic = X
    4 Total C(3)
    5 Q3 dynamic = X
    6 Total C(5)
    7 Q4 dynamic = X
    8 Total C(7)
    9 Year Total C(2)C(4)C(6)+C(8)
    Regards,
    Gregor

  • Need help in creating prompt for Month To Date Report.

    <span class="postbody"><font size="2">Hi All <br />I need to create a Month To Date Report using month(Start date & End date) as prompts, By default it has to run on the previous month data or if user selects his own range of dates then it has to bring the data for that range of dates ,one more thing is i am not showing the month and date columns on the report.Can any one help me how to create prompt for this in DeskI XIR2</font></span>

    Could you clarify some things? You are saying you are trying to transform the xml output of a webservice with an xsd, but an xsd is a schema that describes the allowed format of a xml file. If you want to transform xml from one format to an other (from one xsd to an other) you have to use a xsl file. You can make and test this with JDeveloper. Are you calling the webservice from esb or bpel?
    Kind Regards,
    Andre

  • How to involve time in a date column in JDBC OCI 8.0.5.2.

    Hi,
    I need to involve time in a date column in JDBC OCI 8.0.5.2.
    The default date format is like "09-Sep-1999". I could use it
    but just need time involved too, like "09-Sep-1999 10:11:12".
    I tried to use JDBC's Timestamp whose format is like
    1999-9-9 12:00:00.000, just same as the dates selected from my
    table,
    but got an error message "literal doesn't match format string".
    The JDBC document said Oracle's date could be JDBC date,
    timestamp and char.
    Thanks a lot!
    -Ninon
    null

    : The only oracle driver that vcan run with JDK 1.2.x is in the
    OTN
    : download area and is named "816SDK for JDK 1.2"
    : it will work with the JDK 1.2.X using the JDBC 1.22 spec from
    JDK
    : 1.1.X.
    : IT DOES NOT PROVIDE THE FULL JDBC 2.0 FEATURES/ FUNCTIONALITY
    : THAT ARE INCLUDED IN THE JDK 1.2.X CLASSES.
    Does anyone know which versions of Oracle this driver will work
    with? I'm trying to use JDK 1.2 and Oracle 8.04 with the above
    mentioned driver, but it's misbehaving on prepared statements:
    I'm getting a 'ORA-8001 not all variables bound' error even
    though I'm correctly specifying binary data (using
    PreparedStatement.setBytes(..)) for a LONG RAW column...
    Please don't tell me I have to upgrade my Oracle installation in
    order to use JDBC with JDK 1.2.x
    Feedback is greatly appreciated!
    thanks!
    // Tor Kleiberg
    null

  • BEx analyzer 7.x: How to determine first data column in result table?

    Hi,
    we are upgrading to 2004s where the SAPBEXqueries Sheet is not used anymore. Instead there is BExRepositorySheet. Is there a way to determine first data column in result table?
    Regards, Josko.

    hi dinesh......
    please use  'INTO TABLE' instead of  ' INTO CORRESPONDING FIELDS OF TABLE '.  and use ' FOR ALL ENTRIES '............based on relavence ....coz when I set break point  over the select queries it took me long time to execute .......
    becoz u didnt used the for all entries  in select query ............ u r read statement
    READ TABLE I_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_KNVV-KUNNR.  ..... 
    it is reading wrong kunnr value .............even it took long time to execute ......
    use sort where ever required...
    use for all entries .......and check weather the table initial or not......
    use sy-subrc check where ever reqired ..............

  • Attached document for data column in BPS Web application

    Hi,
       I have created layout for a BPS application, the layout has been configured to have the ability to allow the used to create the attached documentd for the data column. when the user open the layout through the planning profile, the icon for those documents is displayed and can be open by click those icons. After we generated the Web applicatios, those icons are gone and the user can not open them any more.
      I notice that there is document subcomponent under BPS-WB, I added that subcomponent to my web layout, it still not work.Anybody know how to display the attached documents on the Web, Is this doable?

    Hi Marc,
       I did exactly what you mention in your responce e-mail, but it still not work coreectly.
    following is my propperty configuration for layout and documents:
    Planning layout (layout_lay01)
    Only ready for output: True
    Row/Cell Selection: Cell
    Event on selection: true
    Document on planning layout (Document1)
    Layout: = layout_lay01
    Only ready for output: false
    When I launch the application through the Tcode BPS_WIF0
    There is no document icon display for each data columns which can been in UPSPL. Instead there is a generic document input/display space under the lauout,however there is no any document display within the box, and I can not input anything within the document box. I changes some of the property for the layout and document, but it not work.
    Did I forget some thing?

  • Header description of dynamic data columns dynamically

    Hi all,
    How is it possible to get Header description of dynamic data columns dynamically??
    Thanks and regards,
    Harry

    Harry,
    Don't have the system right now so going by memory.
    There are 2 parts - you need to see how you specified the text replacement of the variable.  Say on 0fiscper if you specify characteristic value it would show I think 001.2007, 002.2007, etc.  If you use one of the text types, it would be based on the description.
    I always have to think if I need to put the infoobject name or the variable name in the layout definition in the description part.  Off the top of my mind, it would be the infoobject name i.e. 0fiscper for example

  • Current Date column in BEx report

    Hi,
    I need to add a column to show today's day in the report using query designer. I've been trying to add this column by adding structure in the rows section using 0DAT under the selection. But this has caused no data is displayed in the report. Can someone show me the step by step procedure how to add a column like this. Thank you in advacne.
    Sharon

    Hi,
    You create a Formula variable in Report and the wrie code in CMOD, then give that variable in Formula it will display date.
    WHEN 'ZVCURDAY'.
    ** Current Date Value
          CLEAR: l_s_range.
          l_s_range-low = sy-datum.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range
    Thanks
    Reddy

Maybe you are looking for