Displaying current month in prompt

Hi,
I want to show the current month as the default value in Prompt in XI R3.1 Webi. i.e. when the user runs the report, the prompt for "Month" should show the current month (Say March) and if user wants to change it he can change it to someother month.
Pls let me know how to acheive this (May be by doing changes to report or to the Universe).
Regards
Jim

You can try the below step in Universe
Steps
1.You have a date time field = u201CDateXu201D
2.Build another object of the same field in unv = u201CDate X New Objectu201D
code:
case When to_date (Sysdate, "MM") then "Current Month"
end
3.Build Condition in Unv = Date Picker
code:
@Select(Cass\DateX New Object) = @Prompt(u2019Date Pickeru2019,'Au2019,{u2019Customu2019,'Yesterdayu2019,'Last 10 Daysu2019,'Todayu2019},mono,constrained,persistent,{u2019Current Monthu2019})
You can take reference of the below
http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/

Similar Messages

  • Display current month records only

    Hi Experts,
    I have the following requirement.
    Report should display current month records only.
    For example If the report is run on 20090324, It should display records from 20090301 to 20090324.
    That means,  report may run on any date of that month, It should display from 01 (of that month) to current date.
    I have a select statement saying
      SELECT * FROM likp
      WHERE wadat_ist BETWEEN month_start_date AND sy-datum          
        AND vkorg IN s_vkorg
        AND vkbur IN s_vkbur
        AND kunnr IN s_kunnr.
    How to calculate date for month_start_date, so that it can display only current month records.
    Thanks in advance
    Rohan

    Hi Kunta, Suhas, Nandi,
    Thank you for your quick reply, I really appreciate it.
    for this current month records, I need to display a check box saying
    Open orders  and shipments with the current month.
    But where as Selection text is accepting 32 characters only. Is there any possibility to overcome this?
    Thanks in advance
    Rohan

  • Workaround to display current month in calendar

    Hello,
    This is regarding Mr. Krishnamurthy's workaround to display current month in calendar. He asked us to run the URL with some name value pairs attached to get rid of the default "Next" button that the portal will create. But if i add this as a portlet how will i let portal know to run the portlet with these parameter values.
    one way that i'm guessing is to add these parameters to the page and pass the values in the customization page. But can we do without doing this customization and everything. And also how do i display the next month of the calendar in the portal itself(i.e inline rendering). Presently if i click the next month link it takes me out of the portal. Eagerly waiting for suggestions/solutions. Thanks and regards,
    --Ganti.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    Thanks for the reply. Actually, I have the workaround to display the current month with Previous month / Next month capabilities and I thought maybe somebody wants to know about this workaround .
    -Krishnamurthy

  • 'Calendar UI' which will display current month's calendar in one line

    Hi Experts,
    I have to create a calendar in following way. Here I have to display calendar of current month for the employee. The entire month detail has to appear in one line. In fact it is needed for Leave Overview iView.
    Manager needs to view the Leave details of all employees working in his department
       1                 2                  3              4           5         6                 7              8            9               10   11     12     13     14     15  16 17 18 19  20 21  22 23  24  25  26  27  28  29 30 31
       Mon    Tues    Wed    Thurs   Friday  Sat            Sun
    Smith  
    Marteen
    Thomas
    I am not sure how to do it? Do we have any ready made UI element which we can use. I can see Date navigator. However it
    displays the calendar in 4 rows.
    Please help.
    Regards,
    Gary

    Hi Abhinav, Experts
    Thanks. The design of my RFC will be like this:
    1) Input Org Unit, Month, Year
    2) Output
    Pernr (datatype number 8)
    Name (datatype string)
    Day1 (datatype string)
    Day2 (datatype string)
    Day3 (datatype string)
    Day4 (datatype string)
    Day29 (datatype string)
    Day30 (datatype string)
    Day31 (datatype string)
    3) The default value Day1, Day2  etc will be null
    4) I will find out Leave Details. If Leave has been approved for say Day5 then I will populate Day5 = 'AP'.
    5) I will write another logic to make the color of cell as 'Green' for Day5.
    6) In Feb 2011, there are 28 days. There will be another logic to make the Day29, Day30, Day31 invisible for months like Feb 2011.
    Please let me know if this approach is correct.
    Please also let me know how to display day i.e. 01.04.2011 is Friday. In Calendar I have to display
                     1.4.2011  2.4.2011   3.4.2011
                     Friday      Saturday   Sunday
    Smith
    Tony
    I did small Proof of Concept. The table does not look good although displays the information.
    Please help.
    Regards,
    Gary

  • Display Current Month's calendar

    Hello,
    I have a calendar that will display several months worth of data. I would like the calendar to display the current month's data initially and allow the user to scroll back to previous months. Obviously, when you set the start_date and end_date you can only view the curretn month.
    Is there a way to control the month that is initially displayed on the calendar?
    Thanks,
    Curt

    Krishnamurthy,
    This workaround does work quite well and I've implemented it successfully, but I do have a question:
    I need to place this calendar into a page as a portlet. When I click the 'next,previous,current' buttons, it does take me to appropriate month, but opens up in a new page and I need it to stay as a portlet within the page. Have any ideas on how to implement this? I'm using Portal Release 2. Thanks for the help in advance.
    Jeremy

  • Displaying current month with all empty months

    None of the answers I've seen for showing current month in a calendar has given a solid answer. So, here is my question. My objective is to display all calendar months rather they are empty or not, plus I want the calendar to start at the current month. I added coding to display a next month and previous month button, so you should be able to click next or previous month from the current month showing. I have the "Show All Empty Months" checked in the Display Options under Common Options and the start and end date are empty. I have a bind variable in my coding that defaults to the current month but it will not show an empty month. I get the "no rows returned" situation because it doesn't have anything in it. Is there a solution to showing all empty months?
    Also, has anyone found a solution to hide/remove the default Next/Previous buttons? I read in one of the replies that this would be fixed in a forthcoming release. Is this true?
    Thanks for any assistance.

    The calendar works on a sql query result. I had done something similar to what you are looking for by spoofing the sql query to return rows for all the months which I am interested in. I had a query like the following.
    select *
    from scott.emp a , ( select (trunc(sysdate) - 7910 + rownum) dat from user_objects ) b
    where b.dat = a.hiredate (+)
    Hope you can do something similar to this.

  • How to display three months by prompt

    Hi,
    I have a requirement in dashboard,
    there is a prompt of month, if I select one month, there will show three months' data,
    example, if I select '201108', it will display 201107,201108,201109,
    If I use '+' or '-' in month calculation, it has a problem, like across two year, 201012,201101,201102.
    So how can I realize this requirement?
    thank you!

    example, if I select '201108', it will display 201107,201108,201109,
    If I use '+' or '-' in month calculation, it has a problem, like across two year, 201012,201101,201102.I know this is not straight forward but you need to think this in more logical way. I know you have acheived it till the point you are selecting either Jan or Dec month like 201112 OR 201101.
    EG: SUPPOSE I HAVE SELECTED 201112
    Here you need to create a MID report with 3 cols like CURR MTH, PRV MTH, NEXT MTH
    In NEXT MTH apply logic like :
    - Convert 'CURR MTH + 1' to CHAR
    - EXTRACT 2 CHARS from RIGHT
    - IF EXTRACT = 13 THEN CONCAT (EXTRACT 4 CHARS FROM LEFT --- convert to INT and add 1. This will give you 2012 and concat this with 01). Again change to INT
    REPORT will give: 201112, 201201, 201111
    EG: SUPPOSE I HAVE SELECTED 201101
    In PRV MTH apply logic like :
    - Convert 'CURR MTH -1' to CHAR
    - EXTRACT 2 CHARS from RIGHT
    - IF EXTRACT = 00 THEN CONCAT (EXTRACT 4 CHARS FROM LEFT --- convert to INT and minus 1. This will give you 2010 and concat this with 12). Again change to INT
    REPORT will give: 201101, 201102, 201012
    You just need to play with String and CAST function to get it done
    Rest you know..Hope this helps

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

  • IW69 report not fetching all transaction data of current month.

    Dear Guru Ji,
    While doing testing IW69 report, i noticed that it is not displaying current month data. It is only get the data uptil last date of past month data in DEV & QA client.
    I wonder why this is happening?
    I tried using Malfunction start date & notification reference date input. But still the same result.
    Please guide me, what is going wrong?

    Hi,
    The selection option 'notification date' is based on notification date (VIQMEL-QMDAT). Transaction IW69 is used to display notification items - when there is no item data in the notification nothing will be returned.
    -Paul

  • Current Month & Current Year Sales

    hi,
      How to get current month sales & previous month sales if sales measure is available for 2 years. I would like to display current month sales in one column and previous month sales in the second column and difference in the next column. For example, if i take this month as the current month, i have to display march sales in first column, february sales in second column and difference in third column. If you take a query designer, we restrict by month and display that month's value. Please advise.
    Thanks in advance.

    Hi
    create two variables in your WebI report containing if then clauses which restrict your key figures to the actual (or previous) month. Use those variables instead of your key figure directly.
    (NOTE: THIS IS PSEUDO CODE):
    if [0CALMONTH]=CurrentMonth then [KeyFigure1] else 0
    if [0CALMONTH]=PreviousMonth then [KeyFigure1] else 0
    The third column can contain the difference between the first two variables.
    Regards,
    Stratos

  • Have prompt default to the current month?

    One of my prompts displays a list of months; e.g., Jan, Feb, ... Dec. The user selects the month they want to report on. I need the prompt to default to the current month. Is this possible within Web Intelligence?

    What is your data source for your webi report?
    If you are using a universe, you can default the value by following these steps:
    Select default date as today in WEBI
    However if you are using BW then follow the steps in this blog
    Dynamic default values with prompt in webi reports (based on bex queries) in BO
    Regards,
    Josh

  • How to display from JANUARY to Current Month(SEPTEMBER) in dual.

    Hi Dudes,
    I want to display months from JANUARY to Current month
    here my input is sysdate,so it should display from January to sysdate month(i.e) upto september
    how it is possible in a query?

    Hi dudes,thanks a lot for all your help.
    i would like to display all your output which i have i got in my screen
    so it will be helpful for others also
    SQL>select to_char(add_months(to_date('01-01-'||to_char(sysdate,'yyyy'),'dd-mm-yyyy'),level -1),'Month') months
    2 from dual
    3 connect by level <= ceil(months_between(trunc(sysdate),to_date('01-01-'||to_char(sysdate,'yyyy'),'dd-mm-yyy')))
    4 /
    MONTHS
    January
    SQL>select to_char(to_date(to_char('01/'||to_char(to_char(sysdate,'MM')-level+1)||'/'||to_char(sysdate,'YYYY')),'dd-mm-yyyy'),'MONTH')
    2 from dual connect by level < = to_char(sysdate,'MM');
    TO_CHAR(T
    SEPTEMBER
    SQL>select to_char(add_months(trunc(sysdate,'YYYY'),level -1),'Month')
    2 from dual
    3 connect by level <= ceil(months_between(trunc(sysdate),trunc(sysdate,'YYYY')));
    TO_CHAR(A
    January
    SQL>select distinct to_char(dt,'Month') dat from
    2 (
    3 select dt from
    4 (
    5 SELECT TRUNC(SYSDATE,'y')-1+ROWNUM dt
    6 FROM all_objects
    7 WHERE ROWNUM <= ADD_MONTHS(TRUNC(SYSDATE,'y'),12) - TRUNC(SYSDATE,'y')
    8 ) where dt between trunc(sysdate,'yyyy') and sysdate
    9 ) order by to_date(dat,'Month');
    DAT
    January
    February
    March
    April
    May
    June
    July
    August
    September
    9 rows selected.
    SQL>THANKS ALL...

  • How to display records based on current month and last month???

    i have a query that want to display the data for current month and last month. when i try to view the reports, all the data/key figures is return all in 0.00.
    i modify the variables for this current month and last month but still the results is the same. i could not see the data. any advise on how to modify the variables for this current month and last month? i am thinking my variables is wrong.
    for the current month variable:
    the type of variable is characteristic value, processing by customer exit, reference characteristic is calendar year/month.
    thanks for all who are kind to help me here....

    Hi,
       If you install the variables from BC correctly and they are in active state, you can use them directly use them. check for this month the total values at info cube is ZERO or some value. as you told you are getting ZEROS for your input.and check the data at cube level based on your query design, apply all restrictions, fileters and see do you get any data at cube level and compare with report.

  • How to pass current month as the default value in the prompt

    Hi,
    Could you please tell me how to pass the current month as the default value in the prompt.
    I have a report where month is a prompt. By Default it should ahve current month as the default value along with other months.
    Please let me know the syntax for the same.
    Thanks in advance!!
    Regards
    Sindhu

    Hi,
    what datasource do you have? Is it SAP BW or something else?

  • Display three prior months starting from current month

    Hello All,
    I came across the requiremnt:
    The report looks like:
    2014-Jan
    2014-Feb
    2014-Mar
    2014-Apr
    2014-May
    2014-June
    2014-July
    2014-Aug
    2014-Sep
    2014-oct
    2014-Nov
    2014-Dec
    A
    122
    233
    233
    233
    233
    233
    233
    233
    233
    233
    233
    233
    B
    22
    33
    33
    33
    33
    33
    33
    33
    33
    33
    33
    33
    C
    33
    33
    33
    33
    33
    33
    33
    33
    33
    33
    33
    33
    D
    333
    3333
    3333
    3333
    3333
    3333
    3333
    3333
    3333
    3333
    3333
    3333
    The requirement is to display the prior 3 months ,current month, next 3 months.
    Assume that current month is SEPTEMBER, the report should look like:
    2014-June
    2014-July
    2014-Aug
    2014-Sep
    2014-oct
    2014-Nov
    2014-Dec
    A
    233
    233
    233
    233
    233
    233
    233
    B
    33
    33
    33
    33
    33
    33
    33
    C
    33
    33
    33
    33
    33
    33
    33
    D
    3333
    3333
    3333
    3333
    3333
    3333
    3333
    Share your thoughts.
    Thanks

    Hello All,
    I got this resolved using the below formula to get either prior 3 months or the next 3 months from current date:
    3rd month from current date:
    =LastDayOfMonth(RelativeDate(LastDayOfMonth(RelativeDate(LastDayOfMonth(RelativeDate(LastDayOfMonth(CurrentDate()); 1));1));1))
    Prior 3rd month from current date:
    =ToDate(FormatDate(RelativeDate(ToDate(FormatDate(RelativeDate(ToDate(FormatDate(RelativeDate(ToDate(FormatDate(CurrentDate();"MM/yyyy");"MM/yyyy");-1);"MM/yyyy");"MM/yyyy");-1);"MM/yyyy");"MM/yyyy");-1);"MM/yyyy");"MM/yyyy")
    and used these objects to restrict my date field(date object between "Prior 3rd month from current date:" and
    "Prior 3rd month from current date:"
    Thanks,
    Vijay

Maybe you are looking for

  • Packaging data not populated in customs declaration

    Hi all, I'm creating Pro-forma invoice in ECC and as a result Custom Declaration is getting created in GTS. In GTS the Packaging data in item level is coming as empty. So I implemented the BADI /SAPSLL/IF_EX_IFEX_SD0C_R3 and tried to pass the packagi

  • URGENT: Please Help....Can't make or receive calls on Z10

    Hi,  I bought a Z10 about a month ago. Updated it as soon as the 10.2 was available officially and it has been running perfectly. Tonight, however, I was on a call and suddenly the audio went away. I tried disconnecting from the call but it wasn't di

  • Netscape Applet Security showDocument

    I posted this on the programming forum, but I thought I'd try in here also. I am writing a file to the client's filesystem and trying to open that local file in an applet using: url = new URL("file", "", filename); // Open a new browser window target

  • Kimball's bridge table

    Hey guys, Has anyone tried to implement Ralph Kimball's bridge table in OWB? Precisely loading a bridge table from a dimension (or its source) with embedded recursive pointers and hierarchy on a column. The idea here is to have a table holding all th

  • Reinstall upgrade.

    I had Photoshop CS5 as an upgrade from CS.  My computer crashed, I need to reinstall CS5. Reading the forums, I found out I could download CS2 because the activation server is down for CS and CS2. I did so and it is installed. However, CS5 will not i