How to fill a prompt in webi with current date?

A webi report is being generated on BEx Query.
IN BEx query variables are defined for some date fields to prefill them with current date.
Foe ex. there is license start date. For this field variable is defined so that in variable screen License start date is automatically filled with greater than or equal to current date(which is system date). WHich is a mandatory variable.
On BO side, a webi report is being developed on a Universe (based on this BEx query).
When the webi report is run, the license start date(mandatory variable in BEx) is automatically prompted, but date is not getting prefiiled with current date.
How to prefill this prompt with current date?
the prompt should be like
LIcense start date >= <current date>

Hi,
Yes, it isn't possible to reference anything like 'Current Date' in the universe (like you would with a SQL data source).
The solution I have seen recently goes like this, I don't know the exact details (so I might have some terminology wrong), but someone with ABAP skills should get what I mean.
Assuming you want to filter on 0CALDAY.
In ABAP, create a customer EXIT that calculates the current date as a number (so today might be 40651). Do the same for 0CALDAY.
In the BEx create a formula variable that references each of those, then a Formula Key Figure (I forget the exact name of them) that's just the current day number minus the 0CALDAY number. This gives you the 'age' of that row of data.
Your Webi report can then have a built in filter (or prompt with a default value) of, say Age <= 30. The report can be scheduled and will always run with the last 30 day's data.
We actually did the customer exists to show the 'age' in months.
Sorry I can't explain it any better, but it's working great for us.
Hope that helps.

Similar Messages

  • How to fill forms in adobe reader with lithuanian fonts?

    How to fill forms in adobe reader with lithuanian fonts?
    when i switch on my pc alt+shift to lithuanian language i can only use 2 lithuanian fonts, for other lithuanian fonts i get only blank
    could someone help me to solve this case?

    Adobe Acrobat.  A bit expensive just to change the document background...

  • Create prompt with date-filter and initialize it with current date

    Oracle BI 11 g
    Hi!
    I need to create dashboard prompt with date-filter and initialize it with current date. How can I do that?
    I tried to create repository initialization block and add variable. But I don't know what should I write to DataSource? I tried to use functions Now(), Current_Date, sysdate (for example, SELECT Now() FROM tbl_Calendar) but without results - when I pressed "Test..." button I got errors - something like "Now() is unknown function" or "Incorrect syntax near key word Current_Date".
    After that I tied to use Presentation Variable in Prompt, but also without success ((
    Please, help me.

    I've created Repository Variable "CurrentDate", using SQL-query like this "select convert(varchar(10), getdate(), 104)" and now this variable is being initialized by value "07.04.2011". But I don't understand how to use this varible in DashboardPrompt! What item in list "Default selection" I should choose - "Variable Expression", "Server Variable" or something else? When I chose "Variable Expression" and write "CurrentDate" I got just string "CurrentDate" when preview Prompt. @{CurrentDate} gave me the same result.

  • How to pick the file which is created with current date

    Hello All,
    I have an FTP server where files are created with current date as PO_CONFIRM_20100701.txt.
    Need to pick the file based on current date. How to pick the above file format using file sender adapter. i.e what file pattern can we use so that file will be picked only on today's date
    Regards,
    Sreenivas.

    Hi Srinivas,
    It depends upon the OS you are using. If unix you can see an example script here:
    http://www.computing.net/answers/dos/batch-file-to-rename-files-by-date/5517.html
    If windows an example here:
    http://en.kioskea.net/forum/affich-87157-finding-and-using-file-date-in-batch-command
    You may need to change slightly to fit your exact requirements. But this would make you to start. Else you can also google to get the script. Here is one link:
    http://www.google.com/#hl=en&source=hp&q=scripttorenamefileshavingtodaysdate&aq=f&aqi=m1&aql=&oq=&gs_rfai=CRE9SwTMsTNjiDpzGhgTm65iFCwAAAKoEBU_QC2i-&fp=e0fa4b5da4f245a4
    Regards,
    ---Satish

  • How to i add an image path with spry data set

    hi
    how to i add an image path with spry data set. I made a xml file and then created a data set in html but image won't load
    this is my XML
    <?xml version="1.0" encoding="UTF-8"?>
    <banner width = "185" height = "400">
        <item>
            <image scr = "nui-panforte-recipe_01.jpg" ></image>
            <description>CHOC-COCONUT PANFORTE</description>      
            <text1>Try this delicious GLUTEN FREE Christmas treat</text1>
            <text2>CHOC-COCONUT PANFORTE</text2>
        </item>
    </banner>
    this is my HTML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="../../SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="../../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("recipe_banner.xml", "banner/item");
    //-->
    </script>
    </head>
    <body>
    <div spry:region="ds1">
      <table>
        <tr spry:repeat="ds1">
          <td>{image}</td>
          <td>{description}</td>
          <td>{text1}</td>
          <td>{text2}</td>
          <td>{text3}</td>
          <td>{text4}</td>
          <td>{link}</td>
          <td>{url}</td>
          <td>{target}</td>
        </tr>
      </table>
    </div>
    </body>
    </html>

    It would be helpfull if you actually created an <img> tag to start with
    <img src="{image/@src}" />
    would work.

  • How to get list of company codes with current period not opened?

    Hi,
    How to get list of company codes with current period not opened?
    Is there any way we can check whether the current period is opened for all company codes.
    If not how, can we generate a report which having information of period and company code. Also please tell me, which table will have info on posting periods and company codes.
    Thanks
    Vineeth Varghese

    Hi,
    The MM periods details can be viewed In Table MARV . On the selection screen you have the option of entering the company codes , current period, year current period etc. so make the required entries and you get the all details relevant to MM periods. Also it can be downloaded as a report.Thanks

  • How to initiate java.util.Date with current date

    Hi
    Thank you for readingmy post.
    how i can initiate a Date object with current Date ?
    Thank you

    Please refer to the API for this type of information
    Date()
    Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.

  • Compare Hiredate with Current date in PCR

    As per the requirement I have, a certain type of accrual needs to occur on the employee's anniversary date, this accrual should only happen on the first anniversary. How can I compare hire date with current date ignoring the year, and then ignoring the same logic from second year on-wards.
    Can someone please help me with the possible method of implementing this requirement in a time PCR.

    In my humble opinion, I think that you should achieve that by means of an ABAP program, it should be scheduled to run every day and compare the hiring date with the current date of every employee, then create a batch input to Infotype 2013... it would be easier to track and monitor, since you would have all logs in SM35
    Best regards,
    Federico.

  • How can i change the source code of current date in oracle reports

    Hi All,
    How can i change the source of the current date to the sysdate of the database in oracle reports. I have more than 300 reports. is there any way to change quickly with opening each reports. I am working on reports11g on windows enviornment.
    Thanks in advance.

    benz wrote:
    Hi All,
    How can i change the source of the current date to the sysdate of the database in oracle reports. I have more than 300 reports. is there any way to change quickly with opening each reports. I am working on reports11g on windows enviornment.
    Thanks in advance.You have to use Reports Trigger named BEFORE PARAMETER FORM and write the following sql
    select sysdate into :Parameter_name from dual;
    give your format mask at Parameter_name.
    Hope this will help you
    If someone's response is helpful or correct, please mark it accordingly.

  • Stock Aging report with current date

    Dear Experts
    Can we able to take stock aging report with current date?
    Thanks&Regards,
    Vinoth Raj K

    You're posting in the Portuguese B1 space.
    You might want to post in the English one: SAP Business One Application

  • How to let a prompt vary together with the systemdate when using scheduling

    Hello,
    If I schedule a report to run every month on the data of the previous month I would like to be able to change the prompt date automatically without me changing this prompt date every month. Does anyone know how I can do this?
    thanks in advance
    Thierry Renaer

    Hi Thierry,
    I could only achieve this by setting a condition in the universe to a default date. So if the date equalled the 1st January 1900 then use the system date otherwise use the date in the prompt
    The code would look something like
    test_date = case when @prompt('Enter date:', 'D', {MyClass\MyDate},mono,free,,,) = to_date('01/01/1900', 'DD/MM/YYY')
    then sysdate
    else @prompt('Enter date:', 'D', {MyClass\MyDate},mono,free,,,)
    end
    You can then schedule your report using 1st Jan 1900, but the user can also refresh with genuine dates
    Regards
    Alan

  • How to Create a Table in Oracle with XML data type.

    Dear ALL,
    What are the requirements for creating a table with xml datatype in Oracle: The steps would help very much to know the scripting of the table and how to query and either insert/update and remove data from that table.
    Any help, direction, advise would be highly appreciated.
    Thanks.

    Reffer to this Note.243554.1.
    In a nut shell you will need to run catqm.sql

  • How to compare user entered date with current date

    Hi all
    my requirement is, user allowed select one date, in code i have compare this date with current day date. it should be 15days gap other wise display error message.
    I am worried about how to get current date in code. Is there any code to get current date. please reply me with code or mail me at [email protected]
    Thanx
    keerthi

    Keerthi,
    Use the method <b>getDifference()</b> of the DateHelper.java available here.<a href="http://www.koders.com/java/fid14A61FEB1B45A64E42E1DCAD7070B46AE46340BA.aspx">DateHelper</a>
    1. Create a new folder, say Util under your src folder. (com.xyz.util)
    2. Put this DateHelper.java file in that folder,(com.xyz.util) .
    3. Now, write an import statement for this java class in the required view.
    4. Use the getDifference() method of this class to the difference in days between two days.
    Or
    Simply use this code.
    // Get msec from each, and subtract.
    long diff = currDate.getTime() - selectedDate.getTime();
    int noOfDays = diff / (1000 * 60 * 60 * 24);
    where currDate is today's Date and selectedDate is the Date selected by the User.
    Bala

  • How to handle html:multibox in jsp with ADF Data Binding

    Hi,
    I like to use html:multibox feature in my jsp with ADF Data Binding. I am able to retrieve checked values in the DataForwardAction form. However, when the page is refreshed, the checkboxes are not persistent and yet an error showing
    "JBO-25009: unable to create object type ....oracle.jbo.domain.Array" appears.
    Here is my jsp code:
    <c:forEach var="type" items="${bindings.SystemTypeView1.rangeSet}">
    <c:if test="${Row['SystemGroup'] == type['SystemGroup']}">
    <br>
    <html:multibox property="selectedSystemType">
    <c:out value="${type.SystemType}"/>
    </html:multibox>
    <c:out value="${type.TypeDesc}"/>
    </c:if>
    </c:forEach>
    Can anyone tell me how to handle html:multibox with ADF Data Binding and make the checkboxes persistent.

    Generally this can be done.
    I see a problem with your use case, which has nothing to do with jdev or java:
    How do you identify the user when he comes back to finish the form?
    For this you can't use information like session cookie or IP address because they change.
    So you have to save some information about the user which lets you identify him when he comes back. All other requirements can be implemented by ADF.
    Timo

  • How to tune performance of a cube with multiple date dimension?

    Hi, 
    I have a cube where I have a measure. Now for a turn time report I am taking the date difference of two dates and taking the average, max and min of the date difference. The graph is taking long time to load. I am using Telerik report controls. 
    Is there any way to tune up the cube performance with multiple date dimension to it? What are the key rules and beset practices for a cube to perform well? 
    Thanks, 
    Amit

    Hi amit2015,
    According to your description, you want to improve the performance of a SSAS cube with multiple date dimension. Right?
    In Analysis Services, there are many tips to improve the performance of a cube. In this scenario, I suggest you only keep one dimension, and only include the column which are required for your calculation. Please refer to "dimension design" in
    the link below:
    http://www.mssqltips.com/sqlservertip/2567/ssas--best-practices-and-performance-optimization--part-3-of-4/
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

Maybe you are looking for

  • How do I archive certain albums in iPhoto?

    Hi, I am using a Macbook Intel core 2 duo, so it's a few years old now and my iPhoto '11 is running incredibly slow. I have over 12,000 photo's in the library so what I want to do is archive most of these photo's and get them out of iPhoto. I plan on

  • WLS 5.1/iPlanet 4.1 and JSP

    Hello! We are using Weblogic 5.1 and Netscape's iPlanet as a proxy server. Both the machines are running of seperate NT boxes with static IP addresses. All the changes which need to made on iPlanet side (i.e. copying proxy36.dll, modificatiopn of mim

  • Can ATT or Apple unlock an iPhone 3GS I buy from a friend?

    I want to buy an iPhone 3GS from a friend who had ATT, but the contract is expired. Can I buy the iPhone from him and take it to ATT or Apple to have it unlocked?

  • Sorting a Vector. Can some one guide please?

    Folks, How do I sort the elements in a Vector? If I have a vector containing different names, how can sort this out in ascending order? Please can any one send in a small example that I can modify to suit my requirments. Thanks Ajay

  • Speaker output jack load limit

    Hi all y'all. I bought a Logitech X240 speaker system to replace my X140s because I wanted a little more base from iTunes. The satellite speakers are smaller than my 140s and sound tinny. It seems like running both speaker sets at the same time might