Shift value of the month

Hi all!
Our client requirment is dividing Year into 2 parts
We have substitution variable &CurrMonth="Jan" and we need make calculations in the next way
Fix(&CurrMonth:&CurrMonth+3 month)
one type of culculations
enfix
Fix(CurrMonth+3 month:EndofaYear)
another type of culculations
enfix
Does anybody know how can I shift value of the month?
How can I get &CurrMonth+3 month?
Regards
Sasha

I realized that I need 3 Substitution variables
&CurrMonth
&CurrMonth+3
and &CurrMonth+4
because I should divided Year in 2 parts and variable &CurrMonth+3 included in all of them
Fix(&CurrMonth:&CurrMonth+3 month)
one type of culculations
enfix
Fix(CurrMonth+4 month:EndofaYear)
another type of culculations
enfix
Can you tell how can I change my substitution variables automaticaly?
Edited by: Softperson on 14/7/2009 11:20

Similar Messages

  • I would like to find out if there is a formula to get the last value of the month.

    Post Author: Ajit Pawar
    CA Forum: Authentication
    Hi All,
    I am using BO 6.5 i would like to know is there any formula which will give last value of month in report.
    Further I would like to confirm if the formula I am to use for Max and Min is correct as:
    Minimum =Min([Q1].[ValueAvg] In ([Q1].[Parameter];[Q1].[Element];[Q1].[Date]))
    Maximum = Max([Q1].[ValueAvg] In ([Q1].[Parameter];[Q1].[Element];[Q1].[Date]))
    where Q1 is the query name.

    If you did not back up your iTunes library, the short answer is no, as the iPhone is designed to delete the music data when connecting to an new computer / hard drive.
    .......however there are some 3rd party softwares designed to do this, and if you seek these out, they will likely work for you. 
    Here is one I found by google searching - http://thelittleappfactory.com/irip/index_irip1.php

  • How to get the month value in a date?

    I am retrieving a Date from the database using the getDate() method! However, I want the value of the month in this obtained result, which i want to compare with an integer!
    I dont see any other option but to use the deprecated getMonth() method on this Date object! Or rather get the date as a String & apply the substring methods to get the reqd value!
    Is there any other go on this?

    Hi
    You can use GregorianCalendar.
    Date d = new Date();
    Calendar c = new GregorianCalendar();
    c.setTime(d);
    System.out.println(c.get(Calendar.MONTH)+1);
    -nmw-

  • Cumulate value at the Query Level

    Hi.
    I have a scenario where the user enters the value for Cal Month. With this the query fetches the value for a key figure for the month (based on last value exception aggregation on CALWEEK). Now with this user entry I need to also fetch the cumulative value (YTD) for the same key figure for all the months till the month entered by the user. Subsequent to that I have to calculate the average value of the YTD Value (Average = YTD Value/Number of months). I can not add another Key Figure for cumulation in the cube as there are many many Key Figures like this. Please suggest.
    Cheers
    Anand

    Thanks Ravi.
    I am not sure I understand. I need to calculate both for the month and YTD using the same user entry - that is the month.
    Basically the variable has to pass one value to the first column and a range to the next like this
    User Entry = CalMonth (mm/yyyy)
    CHAR        Column 1           Column 2
    value           For the month     YTD
    Cheers
    Anand
    Edited by: Anand Nataraj on Oct 28, 2008 4:40 PM

  • Rolling 18months report based on the month prompt.

    Hi All,
    In one of the requirements in OBIEE, I have to create a report of rolling 18months. Now the challenge is that I will not be taking sysdate in here to calculate the rolling 18 months. I need to take the value of a month prompt on dashboard for calculation and fetch the 18 months rolling data in the report.
    E.g: If the user selects Dec-2009 in the month prompt on dashboard, I need to fetch data from July-2008(which is 18 months from Dec-2009) to Dec-2009.
    I will be passing the value of the month prompt in a presentation variable in the report, but can I calculate the 18 months prior month on the fly to put in the filter to fetch data? If yes, then how?
    I have also created a calculated logical column in the rpd that calculates 18 month earlier date for each date. Now the question arises, how to use filter on this column so that it selects only the month which will be 18 months prior to the selected month prompt on the dashboard so that the data gets fetched for the report?
    Thanks in advance,
    Sumita

    Hi,
    Please check out the following blog :
    http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obiee/
    Another way I have done it is follows,
    On my time dimension, which is at day level, for each given row (day) I derived the rolling period start date and the rolling period end date (which was always previous friday for a given day).
    I created a simple report with the following :
    Day, Rolling 6mth Start Day, Rolling 12mth Start Day, Rolling 18thmth start day, Rolling End Date.
    With day 'is prompted'
    In the dashboard reports, you use complex filters to say the day range you are interested in is between 'Rolling X Start date' (6, 12 or 18mth) and Rolling Period End date on the filter query created in the step above.
    When the dashboard prompt Go is selected, OBIEE runs the filter query to determine the start and end ranges and these are passed to the dashboard requests to achieve rolling period ranges from a Date prompt. - Im pretty sure you could use a similar method but using a month selector prompt, rather than my day prompt - The theory is the same.
    Good luck !
    Alastair

  • How to lock the month in Planning web forms

    Hi all ,
    we r using the web forms in planning for inputting the data .
    we had a problem here.
    ex:
    User is giving the in put for the month Dec..and again in he is changing the data..so how to lock the in web forms month wise.
    thanks in Adv

    Hi Bunny,
    Do you mean to say that , once the user inputs the values for the month of Dec,after that , you dont want the user to change the values of dec which he had provided.
    Is that what your montly locking means?
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

  • My client current process shift amount is prorating.   Now my client requirement  employee change shift (SE20321D)   to normal (NSO70012) in the mid of the month employee will get shift  full amount,

    Hi Experts,
    Please help me to solve this two issues
    I will give you clearly about my client requirement
    in the current system (existing)  already configured  for shift allowance.
    shift allowance for executive
    Shift Allowance Rates
    2 shift
    3 shift
    RM  240
    RM 330
    shift allowance for non executive
    Shift Allowance Rates
    Category 1
    Category 2
    2 shift
    3 shift
    2 shift
    3 shift
    RM  180
    RM 280
    RM 95
    RM 130
    they are not maintained (there is no any key)   in info type 0014 or info type 0015  they earliest hr consultant  copied to  the Shift Allowance wage types :- 5533, 5534,5535,5536,5537,5538and 5559
    Note : 5533 & 5536 are for Payment.
    Other wage types are for calculation purposes only.
    And they modified (standard LAP9)  YAP9 (copied)  schema written pcr  for shift allowance
    The pcrs are YSH1,YSH2,YSH3,YSH4,YSH5,YSH6,YSH7,YSH8,AND YSHF
    1) So my actual my client requirement (Issue 1)
        In my client current process shift amount is prorating.   Now my client requirement  employee change shift (SE20321D)   to normal (NSO70012) in the mid of the month
    employee will get shift  full amount
    2) client requirement (Issue 2)     Shift Allowance become prorate if the Action (Info type 0000)  in the same month have changes. (Depand the action type)
    Actions are
    WA,WB,WC,WD,WE,WF,WG,WH,WI,WJ,WK,WL,WM,WN,WO,WP
    XO,X1,X2,X3,X4,X5,X6,X7,X8,X9.
    XA,XB,XC,XD,XE,XF,XG,XH,XI,XJ,XK,XL,XM,XN,XP,XQ,XR,XS,XT,XW,XX,XY,XZ.
    Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7
    YA,YB,YC,YD,YE,YF,YG,YH,YI,YJ,YK,YL,YM,YN,YP,YQ,YU,YV,YW,YX,YY,YZ
    Z9,ZY
    Example
    in same month employee changed action on 20.07.2014
    Kindly help me to solve this issues  feel very happy for your help.and if you need any information about issue please let me know i will share to you.
    Thank you
    Raamarao

    Try this, it works very well for me.
    import XMonad.Hooks.ManageHelpers (composeOne, isFullscreen, isDialog, doFullFloat, doCenterFloat)
    myManageHook = composeAll. concat $
    [ [ className =? c --> doCenterFloat| c <- floats]
    , [ resource =? r --> doIgnore | r <- ignore]
    , [ resource =? "gecko" --> doF (W.shift "net") ]
    , [ isFullscreen --> doFullFloat]
    , [ isDialog --> doCenterFloat]]
    where floats = ["sdlpal", "MPlayer", "Gimp", "qemu-system-x86_64", "Gnome-typing-monitor", "Vlc", "Dia", "DDMS", "Audacious", "Wine"]
    ignore = []
    myLayout = tall ||| Mirror tall||| Full ||| tab ||| float
    where
    tall = named "Tall" $ limitWindows 4 $ minimize $ Tall 1 (3/100) (1/2)
    tab = named "Tab" simpleTabbedBottom
    float = named "Float" simpleFloat
    main = do
    myStatusBarPipe <- spawnPipe myBar
    conkyBarProc <- spawnPipe conkyBar
    trayproc <- spawnPipe myTrayer
    xmonad $ ewmh $ withUrgencyHook NoUrgencyHook $ defaultConfig {
    terminal = "urxvt"
    , manageHook = manageDocks <+> myManageHook <+> manageHook defaultConfig
    Last edited by helloworld1 (2012-08-14 05:20:56)

  • Get the values from Day 1 of the Month

    Hi Friends,
    I have a requirement in which I have to Get the values from Day 1 of the Month.
    Ex : If I enter 19 - 07 - 2007.......the report should display Values from 01 - 07 - 2007.
    How to Code ?
    Please provide the Code.
    Thank you.

    Hello ,
              Check this code,
    DATA: test_datum1      LIKE sy-datum,
               test_datum2      LIKE sy-datum.
    WHEN 'TEST1'.
              IF i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
            WHERE vnam = 'TEST2'.
            test_datum1      = loc_var_range-low.
        CONCATENATE test_datum1(6) '01' INTO  test_datum2.
        CLEAR l_s_range.
        l_s_range-low   = test_datum2.
        l_s_range-high  = test_datum1.
        l_s_range-sign = 'I'.
        l_s_range-opt  = 'BT'.
        APPEND l_s_range TO e_t_range.
    hope it helps,
    assign points if useful

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • FM to get the month name based on numeric value

    Hi , Is there any FM which returns the month name when we enter the corresponding numeric value . E.g. if the input is 3 the output must be March

    Hi,
    Try
    DATA: mon_number TYPE numc VALUE '03',
          month_name(20).
    SELECT ltx
      FROM t247
      INTO month_name
    WHERE spras = 'EN'
       AND mnr   = mon_number.
    Hope it helps.
    Regards
    Message was edited by: Shehryar Khan

  • How to get the sales value of the last month in the quarter

    Hi,
    We have a requirement to get the "Sales" value against a quarter. We have 2 tables "Time" and "Sales". We want to display the Sales value against each quarter.
    But this should happen as follows.
    Consider quarter Q1 it should display the value of 3rd month, Q2 should display value for 6th month and so on..
    If in any particular Quarter we dont have a value for last month then it should display the value for 2nd month, if 2nd month value is also not present then it should display 1st month sales value.
    We are using excel as the database.
    Please let us know if anybody has a resolution to this.
    Regards,
    Apoorv Chitre

    hi,make an other column which will be the flag for the last months you want to be displayed...
    so ,in reports,you pass it as hidden column(by filter only the ones which have the appropriate flag),and then voila...
    i hope i helped
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Periodic billing value is not dividing as per the months.

    Hi,
    While mapping periodic billing plan-my requirement is net value 10,000 should split into as per the end date months. But if we see the net value in billing plan  is multiplying with the months as per the year i.e.130,000/- is coming which is wrong.
    But it should come as 10,000/12= PER MONTH VALUE .(NET VALUE IN CONDITIONS/MONTHS).
    Can you guide me to meet the requirement.

    Hi Suman,
    My sales order value is 10,000/- which I would like to charge my customer for the coming 13 months service.
    I have maintained the same in my condition tab (Second screen shot).
    But if I see my billing plan the net value is coming as 1,30,000/-. Means it is multiplying instead of dividing.
    My requirement is 10,000/13 =
    But currently coming as  10,000*13=.
    Hope you got my problem.

  • Conditional inventory value posting once at the end of the month.

    Business Scenario : Our client is a service and facility services unit where in 97% of items are expensed at the time of the GR and assigned to cost objects.
    However we have a requirement to track the inventory (stock as well value once at the end of month). For e,g we will do perpetual inventory for the whole month and do a stock take at the end of the month and post the value.
    Options like UNBW/NLAG/OMS2 materials does not help as the value posting will happen once in a month but stock postings can happen on a daily basis. We are able to expense still take the stock for the materials but not able to post the value after a stock take at the end of the month.
    We are fine for any exits and enhancements as long as it does not disturbs standard SAP.
    Kindly suggests your idea's and suggestions
    Regards
    Swagat Panda

    Hi,
    You need a custom table for storing material issue data and a custom program to run goods issue in the background at month end.
    Create a custom table where  store man can enter  quantity of material issue with material number. Again let store manager check and correct it if anything wrong.Once store manage happy, then you can run automatic custom program ( which you can run only at the month end ) which posts the goods issue in the background  taking data from custom table.
    Regards,
    Biju K

  • 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?

  • Last Month value for the keyfigure in Report

    HI ALL,
    how do we get keyfigure value for the last month in the report.
    for ex:  for  amount keyfigure should come for the last month  rest of the key figures should come for the current month values.
    SBU |    AMOUNT (LAST MONTH VALUE) |      QTY(CURRENT MONTH) |     NETPROFIT(CURRENT MONTH)
    The above shown is ex as i required in same manner. Even i restricted with calmonth offset value -1 in keyfigure but it is not working. please help me to get solution .
    Thanks
    Pinky Reddy

    Hi Pinky,
    It is not advisable to use offset to get the previous month value.This is not effective in the case when your current month is Jan & u have to get the previous year's dec month value.It is always better to opt for Exits
    Do use the code mentioned below.
    Note:- ZCUSMFIS3 - Variable in the selection screen for entering current month
               'ZPREVPER - Variable with which the amount key figure has to be resticted.
      WHEN 'ZPREVPER'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                                  WHERE VNAM = 'ZCUSMFIS3'.              
            V_PERIOD = LOC_VAR_RANGE-LOW+4(3).
            V_FYEAR = LOC_VAR_RANGE-LOW+0(4).
            V_FVARIANT = 'B1'.
            V_FISCPERYEAR = LOC_VAR_RANGE-LOW.
            IF V_PERIOD = '001'.
              V_PERIOD = '012'.
              V_FYEAR = V_FYEAR - 1.
              CONCATENATE V_FYEAR V_PERIOD INTO V_FISCPERYEAR.
            ELSE.
              V_FISCPERYEAR = V_FISCPERYEAR - 1.
              LOC_VAR_RANGE-LOW = V_FISCPERYEAR.
            ENDIF.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW. "YYYYMMDD - DD will indicate the no of days
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
    Hope this provides the solution for your requirement.
    Regards,
    Saswati.

Maybe you are looking for