Dynamic selection of Calendar month/year

I need to create a dynamic combo for calendar month/year, which will display the last 3 months.
I have a query that displays the cumulated amounts for the last three months and I need to have a combo with the option to filter the query for only one of these months...
How can I do that in Visual Composer?
Thanks in advance,
Cris

Hi Cris,
The simplest way is to create a service that's returns the correct month and use it as dynamic list for the drop-down.
Hope it helps,
Shay

Similar Messages

  • FM to get previous fiscal month/year and calendar month/year for a date.

    Hi All,
    I am having a requirement to extract some data based on either the previous fiscal month/year or the previous calendar month/year. There is no company code input to find the fiscal/calendar month/year.
    At selection screen, user can select either fiscal or calendar selection.
    Based on the selection, the data will be extracted.
    For the system date, we need to calculate previous fiscal month/year or previous calendar month/year and populate the calculated data back to the selection-screen.
    Can you one of you please suggest an FM to find previous fiscal month/year and previous calendar month/year.
    Thanks in Advance,
    Regards
    Gowthami

    Hi Gowthami,
    You can use following function module to calculate previous / next day or month or year.
       call function '/SAPHT/DRM_CALC_DATE'
          exporting
            date      = sy-datum
            days      =
            months    =
            sign      = '-'
            years     =
          importing
            calc_date = .
    Here, you can give '-' to sign, if you want previous day / month / year.
    Here, you can give '+' to sign, if you want next day / month / year.
    And depending upon your requirement, you can pass suitable value to days / month / year.
    e.g. To calcualte last month,
       call function '/SAPHT/DRM_CALC_DATE'
          exporting
            date      = sy-datum
            days      =
            months    = 1
            sign      = '-'
            years     =
          importing
            calc_date = wv_prev_month.
    so it will give '23-01-2008' . Then convert it in the required format as per your requirement using string function concatenate.
    Hope this help you.
    Regards,
    Anil

  • Need to display "Calendar Month/Year" at report level from Calendar Day

    Hello Experts,
    I have a scenario in which I have 0CALDAY (e.g. 01.01.2009) along with other fields available in my report. My requirement is to display "Calendar Month/Year" (01.2009) in my report. Is it possible to have "Calendar Month/Year" in my report from 0CALDAY, by making changes to the query, as I cannot remodel the underlying InfoCube.
    Many Thanks,
    VA

    What you mean with huge - 100 Mio dataset?
    The import of the new infocube will be also take a long time - the database must be insert a new field for every dataset.
    => is this a big infocube, then don't use virtual infoobjects.
    => on a big infocube is important to have a good datamodel - please insert always all 11 infoobjects for the time dimension.
    Sven

  • To Display "Calendar Month/Year" at report level from Calendar Day

    Hello Friends,
    I have a scenario in which I have 0CALDAY (e.g. 01.01.2009) along with other fields available in my report. My requirement is to display "Calendar Month/Year" (e.g. 01.2009) in my report.
    Is it possible to have "Calendar Month/Year" in my report from 0CALDAY, by making changes to the query, as I cannot remodel the underlying InfoCube?
    Many Thanks,
    VishwA

    HI Vishwa,
    Hope it will helps.
    How to get month from CREATE DATE field??
    Regards,
    SVS

  • Dynamic update of calendar month in titles

    Hi,
    I'm running a YTD report. When I open the report, I have the calendar/month button defaultet to the previous month (e.g.03/2005). If I select another month e.g.11/2004. I need to calculate YTD current year for selected month 11/2004, YTD previous year e.g. 11/2003, total previous year e.g. 2003, Variance and update the columns with the months e.g.YTD112004, YTD112003, TY2003, VAriance%. How do I translate the month, I selected to the columns title and values? Could you please explain the entire process?
    Thx,
    Ramona

    Hello all ,
      I am new in BW, in learning stage, working on devlopment server 3.0,I have created the generic extracter view with vbrk, vbrp data ,While uploding the data from PSA to cube system gives the error the sid is not found for perticule type of Unit,
    so i wanted to delete the complete record in Transfer rule , How can i do with the coding .
    system soding in unit as follows :
    FORM INVERT_UNIT
      USING    I_RT_CHAVL_CS      TYPE RSARC_RT_CHAVL
               I_THX_SELECTION_CS TYPE RSARC_THX_SELCS
      CHANGING C_T_SELECTION      TYPE SBIWA_T_SELECT
               E_EXACT            TYPE RS_BOOL.
    $$ begin of inverse routine - insert your code only below this line-
      DATA:
        L_S_SELECTION LIKE LINE OF C_T_SELECTION.
    An empty selection means all values
      CLEAR C_T_SELECTION.
    Selection of all values may be not exact
      E_EXACT = RS_C_FALSE.
    $$ end of inverse routine - insert your code only before this line -
    ENDFORM.
    Regards,
    Milind

  • BEX Query: by selection of actual month/year also shows month/year-1

    Hi
    When I set the selection value 11.2010 or also 11/2010, as result of the Query I get the values for 11.2010 but I also receive 11.2009.
    This also when I use the selection with 11/2010, I get also 11/2009 too.
    Can someone tell me how I can set the query, that it will stick with my values and not add the previous year?
    Thank you very much for your help.
    Petra

    Check whether the variable created for month year is a customer exit Variable.
    In a customer exit variable the code can be written such as to bring the data from current year current month to the last year current month.

  • Convert date format from MONTH-YEAR to  dd/mm/yyyy

    Dear All
    i want to get parameter in form of MONTH-YEAR AND WANT TO CONVERT DATE INTO 'THIS FORMAT dd/mm/yyyy' IT GIVES ME ERROR PLEASE GUIDE.
    SELECT
    TO_CHAR (PTP.END_DATE,'MONTH-YY') ,
    to_date ( TO_CHAR (PTP.END_DATE ,'DD-MONTH-YYYY') ,'dd/mm/yyyy'),
    --- i want to gent parameter in from of MONTH-YEAR AND WANT TO CONVERT DATE INTO 'THIS FORMAT dd/mm/yyyy' IT GIVES ME ERROR PLEASE GUIDE
    to_date ( TO_CHAR (PTP.END_DATE ,'MONTH-YYYY') ,'dd/mm/yyyy'),
    ADD_MONTHS((to_date ( TO_CHAR (PTP.END_DATE ,'MONTH-YYYY') ,'dd/mm/yyyy'),-1)
    --- i want to gent parameter in from of MONTH-YEAR AND WANT TO CONVERT DATE INTO 'THIS FORMAT dd/mm/yyyy' IT GIVES ME ERROR PLEASE GUIDE
    ptp.END_DATE PERRIODS_NAME
    from per_time_periods ptp
    Regards
    Edited by: user10941925 on Nov 28, 2011 12:23 AM

    Hello just check
    SQL> select hiredate from emp;
    HIREDATE
    17-DEC-80
    20-FEB-81
    22-FEB-81
    02-APR-81
    28-SEP-81
    01-MAY-81
    09-JUN-81
    09-DEC-82
    17-NOV-81
    08-SEP-81
    12-JAN-83
    03-DEC-81
    03-DEC-81
    23-JAN-82
    14 rows selected.
    SQL> select to_char(hiredate,'month-year') from emp;
    TO_CHAR(HIREDATE,'MONTH-YEAR')
    december -nineteen eighty
    february -nineteen eighty-one
    february -nineteen eighty-one
    april    -nineteen eighty-one
    september-nineteen eighty-one
    may      -nineteen eighty-one
    june     -nineteen eighty-one
    december -nineteen eighty-two
    november -nineteen eighty-one
    september-nineteen eighty-one
    january  -nineteen eighty-three
    december -nineteen eighty-one
    december -nineteen eighty-one
    january  -nineteen eighty-two
    14 rows selected.
    SQL> select to_char(hiredate,'dd/mm/yyyy') from emp;
    TO_CHAR(HI
    17/12/1980
    20/02/1981
    22/02/1981
    02/04/1981
    28/09/1981
    01/05/1981
    09/06/1981
    09/12/1982
    17/11/1981
    08/09/1981
    12/01/1983
    03/12/1981
    03/12/1981
    23/01/1982
    14 rows selected.
    SQL>

  • Report filtered by month/year

    To gurus:
    I am creating a pivot table report that must be filtered on 'page section' by month/year.
    I am trying to use the specif colum formula upon "Service Request"."Opened Date" to group the result by this specific filter with no sucess.
    well, I can group by 'month' or 'year' but not the both as well.
    Could someone help me?
    Thanks in advance.
    Mtb

    While creating a report, on the left of the screen, you have access to the fields. Fields are classified by entity (Service Request, Account, ...) and you have to click the "+" to display the fields of an entity.
    Here you have an entity named Date Opened. If you click on the "+", you have fields such as Calendar Month/Year, Calendar Week/Year, Calendar Quarter, ...
    It replace the job of the cast...
    Max

  • Dynamic calc to sum months across years

    I have an Essbase 6.5.5 cube with a periods dimension containing months and weeks as stored members, tagged as time. I also have a year dimension that contains fiscal years and these members are also stored. I need to add together the first month of this year and the last month of last year.
    I can do this:
    M12->LY + M01->TY
    This gives me the right answer and I could setup IF statements to cross dim to the correct LY value, but I would like the formula to dynamically select the correct LY based on the TY year the user sets up in their query. I tried a few combos using @prior and @shift and it is not working correctly.
    Here's what I thought would work:
    M01 + (@SHIFT(Year,-1));
    This formula results in summing just the M01 and nothing from LY. Any thoughts on how to set this formula up?
    Edited by: user11908498 on Sep 16, 2009 5:55 AM
    Edited by: user11908498 on Sep 16, 2009 11:42 AM

    My mistake Gary, the periods dimension is tagged as time and contains months and weeks as stored members. The year dimension contains fiscal years as stored members. I have updated my OP to state that correctly.
    Using your formula:
    "M01" + @SHIFT("M12", -1, @CHILDREN("Year"));
    I'm still just getting the answer of the data contained in M01.
    M12 is in the period dimension tagged as time.
    Year is the fiscal year dimension as a stored member.
    What I want to get is the sum of M01->TY + M12->LY without hard coding the year in a cross dim statement. It seems like this should be a simple formula, but its not working for me.

  • Why can I NOT select March 2013 Month Display in iPad's calendar ?

    Why can I NOT select March 2013 Month display in iPad's calendar ?

    Just found out that I had subcribed for a calendar which shows the numbers of the calendar weeks. Turned this off and no crash anymore.
    How can I get the number of calendar weeks in a different way. So that no crashes occur?

  • Change of Month names as per selection of Month / Year

    We have the following requirements:
    1. Change of Month names as per selection of Month / Year e.g. If the user select April 08 then the column name should be April 08, at the same time the next column should be April 07.
    2. Next there are two in -line totals as per different logic as recurring rows. e.g Row header is Total and it totals the items in the column, next row header is Comparable total and it is based on checking the adjacent column values for doing the total.
    Please let us know if this is feasible and can be done using BI Publisher. If you have any alternate way of doing it using OBIEE also , please share.

    Hi,
    The parameter / prompt used is for month which can have values from JAN , feb, MAR, APR,....... DEC. and the other PROMPT being YEAR e.g. 2006, 2007, 2008.
    The Column Name of the Report SHould get changed as April 08 if selected as month APril and year 2008.The subsequent column of the report should be April 2007. The same applicable for selecting any month/ year
    Layout of Report as below
    SALES
    || April 08 || April 07
    Shop1 100 200
    Shop2 300 100
    Thanks
    NJ

  • Dynamic filter by Country, month and year

    Hi,
    I have a file extracted from SAP BI and incrusted in xls format in Xcelsius.
    I have to filter data by Country, year, and month.  I´ve seen the blog of Ingo Hilgefort 'Creating an Xcelsius dashboard on top of SAP BI that has a similar expanation of what I need to do. 
    Unfortunatelly, the problem I ´m facing is how to organize the data including the months in the spreadsheet incrusted in the Xcelsius.
    What I have at the moment in the spreadsheet is a column with countries (9),  an one column by KPI (10).  Beside the last column I have the inserted data column for the countries so in the dashboard I can pick a country and shows me the KPI´s by country.  What I still don´t found is how to make the selection also by month and year.
    If anyone could help, I would be grateful.
    Thanks in advance,
    Diego

    Charles,
    It seems to be what i´m looking for.  It is perfect to see the KPI´s by country and month in a year.
    But with that spreadcheet i still cannot choose only the KPI´S year values by countries (independently of the month).
    Another question I would like to make to you (as i told you i´m making my first steps in Xcelsius) is if you write the formula =BUSCARV($C$7;$C$17:$G$23;5;FALSO) manually into the excel.
    Thanks in advance,
    Diego

  • Month/year input field in selection screen

    Hi,
    Can anyone tell how to declare an input field in selection screen in the format month/year with out day.
    Thanks.
    Prasad.

    hi ,
    I have the same doubt ,
    but its taking invalid input also as in if i enter 13/2006
    Can it be avoided,
    also can the calender be displayed at F4 on such field.
    Thanks in advance
    Regards
    Bijal

  • Bex query- Dynamic selection of next 4 periods according to Month drilldown

    Dear All.
    I am working in BI 7.0.
    I want to do a report which shows Begining inventories and Forecast. The report will be drill down by Year/month which filters Begining inventory. For Forecast, I would liek to see 5 months of forecast in 5 different colums, starting from the month of begining inventory.
    As an example:
    Month     FORECAST1 FORECAST2 FORECAST3 FORECAST4 FORECAST5                    
    01.2009     01.2009     02.2009     03.2009     04.2009     05.2009
    02.2009     02.2009     03.2009     04.2009     05.2009     06.2009
    03.2009     03.2009     04.2009     05.2009     06.2009     07.2009
    04.2009     04.2009     05.2009     06.2009     07.2009     08.2009
    The colums month is the drill down of Year/Month characterisitic. The values on forecast represent the selection of period for each column for the forecast data.
    How could I build this? Is there any way to do this?
    Thanks a lot and best regards,
    Alfonso.

    This report is similar to YTD report I hope. But this will have to be done the hard way only. Why not consider like this..
    Your Existing Query O/p:
    >Month FORECAST1 FORECAST2 FORECAST3 FORECAST4 FORECAST5
    >01.2009 01.2009 02.2009 03.2009 04.2009 05.2009
    >02.2009 02.2009 03.2009 04.2009 05.2009 06.2009
    >03.2009 03.2009 04.2009 05.2009 06.2009 07.2009
    >04.2009 04.2009 05.2009 06.2009 07.2009 08.2009
    Trial Solution 1 : Considering you enter a particular Month-Year (say Jan 2009), you'll get the data like this, best way is to think in SWAP Axis approach. Helps when most reports looks terribly difficult to move on. Considering you create a 0CALMONTH varibale X, then you need to add X1, X2 and so on.
    O/p:
    >MonthForcst | 01.2009 | 02.2009 | 03.2009 | 04.2009 *** This can be done by using VARIABLES. Create 0CALMONTH Variables
    >FORECAST1 | 01.2009  | 02.2009 | 03.2009 | 04.2009  |
    >FORECAST2 | 02.2009 | 03.2009  | 04.2009  | 05.2009 | 
    >FORECAST3 | 03.2009 | 04.2009  | 05.2009  | 06.2009 |
    >FORECAST4 | 04.2009 | 05.2009 | 06.2009 | 07.2009 | 
    >FORECAST5 | 05.2009 | 06.2009 | 07.2009 | 08.2009|
    Trial Solution 2 : User Customer Exits. Design a exit which will populate each Month's data (Note: Here data is aggregated on basis of Month you have assigned). For particular HEADING (i.e. 'MonthForcst' you need, plan your variables by using multiple inputs for which all month you need.) If you need any help in Customer Exit for this kind of solution, I'll attach a sample code as here on request. This is the best way, as you can always transfer data through the exit.
    Example. If you want to select Apr`09, as month selection will vary through the year - You need to get the values for selected period to end of year. Then, design it so that choosing Apr`09, system will gather data for 2009 & based on availiablity of data it must populate the MONTHS/Forecast directly.

  • Validation problem with the selected Month-Year and Days in the Month.

    Hi,
    I am unable to figure out the logic for the below senario.
    There are two fields Period and Date
    If Users sets the Period to FEB-11
    and User has to select the Dates of the February Month only and if he selects any other month It should throw an error.
    How could I restrict the user to not enter any other date from the selected period.
    Please suggest.
    Thanks,
    Krishna

    Hi Gyan,
    Thanks for the update.
    I am just tring to copare the values
    able to get the period value and unable to compare to the date format.
    just look at the below code with the output of sop
            OAMessageTextInputBean mtb =
            (OAMessageTextInputBean)webBean.findIndexedChildRecursive("item1");
                OAMessageDateFieldBean mtb1 =
                (OAMessageDateFieldBean)webBean.findIndexedChildRecursive("item2");
            String period = (String)mtb.getValue(pageContext);
            System.out.println("Value of Period:::"+period);   // FEB-11 is the out put
               Date date = (Date)mtb1.getValue(pageContext);
                System.out.println("Value of Period:::"+date); // 2011-02-09 is the output
    // Converting the date to string using SimpleDateFormat
                DateFormat df = new SimpleDateFormat("dd-MM-yyyy");
                String date1 = df.format(date);
                System.out.println("String Date::"+date1);
                String date2 = date1.substring(3,5);
                System.out.println("SubString::"+date2);
           // 02 is the out put I am not able to Format the month in SimpleDateFormat("dd-MON-yyyy") to get the
          //  month as FEB is there any converter.
                String date3 = date1.substring(8,10);
                System.out.println("SubString2::"+date3);
         //11 is the out put
            if (period.equalsIgnoreCase(date2.concat(date3)) )
      // after concatinating the format is 02-11 so its going to exception
                System.out.println("Date in the same Period");
            else {
                throw new OAException ("Date Selected is out of range::");
            }I am not able to Format the month in SimpleDateFormat("dd-MON-yyyy") to get the month as FEB is there any converter.
    The logic is working fine but the month is not getting converted.
    Thanks,
    Krishna

Maybe you are looking for

  • How to print double-sided on a CANON Pixma MG5320 with an iMac OSX 10.8.2?

    If there is someone who works w/ this type of printer, your help would be greatly appreciated by this OLD lady (nearly 80)

  • Fed up with blocked emails and blacklisted IPs from Verizon

    Have been struggling with blocked emails and getting no help from Verizon.  When sending emails via Outlook, most are rejected whether we create them or just forward them.  Sometimes we get a spam notice, but most of the time they just disappear.  Ha

  • How can I access my user folder on a second boot partition?

    Hi there. Thank you for reading this. I am at a bit of a loss although I have searched several forums to find someone having the same problem: I use my Macbook Pro in the office and at home. To keep things strictly apart and have to separate Time Mac

  • Would you get a macbook air today?

    I heard rumours that there would be new macbook airs on or around March. I am 80% sure about this because intel will release its Ivy core on March which apple planned to use for the new macbook air and pro. I actually planned to get it on Christmas b

  • Photos not centered when printed

    Every time I print a photo with iPhoto either the top (in Portrait mode) or the left side (in Landscape mode) is shortened. I cannot find an adjustment to correct the lack of centration. Can anybody help me with this?