Year to Date Value to be Calculated from Month Numbers

We have an IP Application running.  We are using a copy of the standard ECCS Transaction Data Cube to do the Planning by Consolidation Item (Profit & Loss and Balance Sheet).
We have two key figures - Month Value and YTD Value.
On the planning layout when the user enters the for the month value we need the key figure for the month to be updated as well as the YTD value to be updated based on the entries in the for the month key figure from Jan of the year to the month of entry.
Is this possible either on the layout or through a FOX function.
Thanks a lot for your help in advance.

Would you be able to share some sample code if you have any?
Thanks

Similar Messages

  • How to fetch year till date value for earning for current ,last and year

    hi,
    how to fetch year till date value for earning for current ,last and year before that from payroll result
    plz reply soon,
    pratyush

    Dear Pratyush,
    Pick this from CRT.
    Use LDB PNPCE & Fire event GET PAYROLL &
    then you can pick from CRT.
    Hope this helps.
    Kindly reward in case useful.
    Regards & Thanks,
    Darshan Mulmule

  • Month-to-Date and Year-to-Date values in Query

    Hello experts,
    One of our BI reports has the following requirement: the user should be asked for the report date. After the user inputs the date, the report shows the key figures in three different "flavors": one is the values for that date, the second one is the cumulate values from the first day of the month of the report date to the report date itself, and the third is the cumulate values from the first day of the year of the report date to the report date itself.
      I created my report date variable based on 0CALDAY. Then I searched for SAP-exit variables that would help me achieve this, but could not really find any, except for 0P_ABO10, 0P_ABO11, 0P_ABO12 variables, all of them have as description "Start of Key Date Year". I tried creating a few selections in which the dates taken were defined as a range from each of these variables to the report date variable (for the year-to-date values), but I got the error "Variable 0P_ABO10 could not be substituted". I also got this error for the other two variables. And I could not find any SAP-exit variables like "Start of Key Date Month", in order to do the Month-to-Date part. My next try was to use the field "Key Date" with a variable in it, instead my own report date variable based on 0CALDAY, but it gave me the same errors.
    I searched the forums and found a few threads that looked useful, like
    First and Last day of month and
    1st day of month / 1st day of week variables
    However, they require some ABAP coding, and I do not know where to place the code (actually, I do not know where to work with ABAP code), and I also believe that I would have to do some changes to it.
    Any suggestions?

    Hi Pedro,
    You have to create customer exit in T_Code: CMOD
    1. Create a Z project
    2. Select RSR00001 as enhancement type.
    3. Go into include ZXRSRU01
    4. create a code like
    Here A is your variable based on 0calmonth with type customer exit and B is variable for 0calday.
    Try to write logic for your case taking this as example.
    WHEN 'A'.
        IF I_Step = 2.
          Loop at I_T_VAR_RANGE into L_T_VAR_RANGE where VNAM = 'B'.
            Concatenate L_T_VAR_RANGE-LOW(4) '001' into D1.
            Concatenate L_T_VAR_RANGE-LOW(4) '012' into D2.
            Clear L_S_Range.
            L_S_Range-low = D1.
            L_S_RANGE-high = D2.
            L_S_RANGE-sign = 'I'.
            L_S_RANGE-opt = 'BT'.
            Append L_S_Range to E_T_Range.
          ENDLOOP.
        ENDIF.
    If you want exact code I can help you in that.
    Thanks,
    Kams

  • Elapse days - calculation from month and year

    Duplicate thread ...
    coding  required for converting month into days
    I have Month and year field in my DSO --Year( 2009), Month(4)
    I want below logic to calculate -
    MTD qty % = (qty * elapse days) / no of days in month
    so from the above, I want to know,
    1. How can we get the no of days from the above 2 objects (year and month).
    2. Elapse days are the days that are over from current date to Ist day of that month.
    eg: current date - 04.03.2009 , 1st day of the month - 04.01.2009,
    elapse days = 2. (you need to consider all days in the month, not only working days)
    so my questions is how can we get, # of days n a month from above 2 fields and elapse days based on the above condition.
    also want to know, where can I have the logic in transformations or query level.
    please provide your suggestions.
    Thanks,
    Pra
    Edited by: Arun Varadarajan on Apr 5, 2009 10:44 PM
    Edited by: Arun Varadarajan on Apr 5, 2009 10:45 PM

    Hello,
    I think the sample program below does what you ask: it finds the days in the month (bit of an overkill to use function modules for that) and then computes the QTD.
    Note that the internal string representation of a data variable is always YYYYMMDD, regardless of the "externalized" form (e.g. yyyy/mm/dd or dd.mm.yyyy), so this code will work regardless of your custom date format.
    Regards,
    Mark
    REPORT  zqty_to_date.
    PARAMETERS:
      p_date     TYPE dats,
      p_qty      TYPE i.
    DATA:
      days      TYPE i,
      n_year    TYPE numc4,
      n_month   TYPE numc2,
      n_day     TYPE numc2,
      qtd(6)    TYPE p DECIMALS 1.
    START-OF-SELECTION.
      n_year = p_date+0(4).
      n_month = p_date+4(2).
      n_day = p_date+6(2).
      PERFORM days_in_month USING n_year n_month CHANGING days.
      qtd = ( p_qty * ( n_day - 1 ) ) / days.
      WRITE: / 'Days in month:', days,
             / 'Qty  to date :', qtd.
    *&      Form  days_in_month
    *       text
    FORM days_in_month USING year month CHANGING days.
      DATA: ymod4   TYPE i,
            ymod100 TYPE i,
            ymod400 TYPE i.
      CASE month.
        WHEN 4 OR 6 OR 9 OR 11.
          days = 30.
        WHEN 2.
          ymod4 = year MOD 4.
          ymod100 = year MOD 100.
          ymod400 = year MOD 400.
          IF ( ymod4 = 0 AND ymod100 > 0 ) OR ( ymod100 = 0 AND ymod400 = 0 ).
            days = 29.
          ELSE.
            days = 28.
          ENDIF.
        WHEN OTHERS.
          days = 31.
      ENDCASE.
    ENDFORM.                    "days_in_month

  • Prompt date value with default max from table1.column1

    Hi all,
    How do I prompt user for date of report with default date = max(table1.column1) ? Give me some example of syntax pls.
    Thanks ahead.

    hi,
    Default Date for the Date Prompt can be Static but not dynamic in WEBI.
    Because we can't specify any object/calculation as default value for the prompt.
    I think it's not possible in WEBI.
    Regards,
    Vamsee

  • Calculating HTD(Half Year to date) in Essbase

    Hi All,
    Is there any way in essbase where in you can calculate HTD(half year to date) Values.
    I know in essbase we have Dynamic time series where in you can calculate YTD,HTD(History to date),MTD,QTD,...etc.
    can you guys have any thoughts on as how HTD(half year to date) is achievable in essbase.
    thanks in advance.

    Can you modify your time dimension to look like
    Time
    -1st Half
    ---Qtr1
    ------Jan
    ------Feb
    ------Mar
    ---Qtr2
    ------Apr
    ------May
    ------Jun
    -2nd Half
    ---Qtr3
    ------Jul
    ------Aug
    ------Sep
    ---Qtr4
    ------Oct
    ------Nov
    ------Dec
    If so, you could enable a dts member and set the alias to be hf-t-d
    if you can't add those members, condider adding a dynamic calc member with a formula
    psudo logic would be
    If it is a descendant of Q1 or Q2 then sum Jan to the current month else if it is a descendant of q3 or 4 sum jul to the current month

  • Year to Date Problem on Monthly Loads

    Hi SDN team,
    I have few clarifications necessary.
    I've a query & it uses 2 structures. we decide to use cells using cell editor afterwards.
    We have plan versus actual issue. One row is plan for one full year. We have a plan figure for each month of year 2004, from Jan till Dec. Now I need to create a totals. Is it possible to create total column for this?
    In that column the plan figures ahould be shown as sum for the "year to date-values" - for example from Jan'04 till Apr'04 or Jun'04, not the totals for the whole year.
    Selected Month SEP. Plan from Jan - Dec. Totals: 2*Total. Total we  need: Sum (year to date because of month). If there's any solution for this please let me know.

    Hi, You need to add the YTD logic/functions between the 2 statements... Please try this... I've added the crude logic here. Pls. refine as you need for your requirement.
    WHEN 'VAR4JUN'.
        IF I_STEP = '2'.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                      WHERE VNAM = 'ZYOUR_VARIABLE'.
    ** DATA INITIALIZATION **  (This is optional)
            TV4Y = LOC_VAR_RANGE-LOW+0(4). ** YEAR
            TV4M = LOC_VAR_RANGE-LOW+4(2). ** MONTH
    ** FUNCTION **
            CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
              EXPORTING     INPUT  = TV4M
              IMPORTING       OUTPUT = TV4M.
    ** DATA LOGIC FOR YTD**
            IF TV4M= '06' OR TV4M= '07' OR TV4M= '08' OR
                TV4M= '09' OR TV4M= '10' OR TV4M= '11' OR TV4M= '12'.
                      CONCATENATE TV4Y '06' INTO L_S_RANGE-LOW. ** Also for HIGH
            ELSEIF TV4M= '01' OR TV4M= '02' OR TV4M= '03'.              
                      TV4Y = TV4Y - 1.
              CONCATENATE TV4Y '06' INTO L_S_RANGE-LOW.. ** Also for HIGH
            ENDIF.
                    L_S_RANGE-SIGN = 'I'.
                    L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
          ENDLOOP.
        ENDIF.

  • Year-to-Date using mdx

    Hi,
    I am new to mdx and struggling with the syntax.
    I have made the below (simple) query wich works fine.
    select {(EJV1, Dec, [RUBRIEK 5] )} on Columns,
    Descendants([109]) on rows
    From Resultat
    where (FY10, Prognose, [geen klant], [Geen omzet])
    Now i would like to have a year to date value.
    When i use the query below i see all the separate months.
    How can I adjust this query so the period values are aggregated?
    select { (YTD([Dec]))} on Columns,
    Descendants([109]) on rows
    From Resultat
    where (FY10, Prognose, [geen klant], [Geen omzet])
    Thanks.

    We use a VALUE dimension to dynamically calculate YTD/QTD/Thousands/Millions...
    Our ASO database has P&L and B/S data so this YTD Member Formula handles them differently:
    IIF(IsLevel([TIME].Currentmember, 0),
         IIF(IsAncestor([Balance_Sheet_Accounts ], [ACCOUNTS].Dimension.CurrentMember),
              [TIME].CurrentMember,
         Sum(PeriodsToDate ([TIME].Generations(2), [TIME].Currentmember))
    0
    This lets us query with Excel as if we had the Dynamic Time Series functionality of BSO.
    Edited by: baboland on May 20, 2010 1:53 PM
    Edited by: baboland on May 20, 2010 1:54 PM

  • Extracting year and date

    I am working on the following query
    SELECT report_date, EXTRACT (MONTH FROM report_date) FROM program_details;
    SELECT a.customer_id, a.report_date as change_date
    FROM program_details AS a
    LEFT JOIN program_details AS b
    on a. customer_id = b. customer_id
    AND EXTRACT (MONTH FROM a.report_date) = EXTRACT (MONTH FROM b.report_date) - 1
    AND EXTRACT (YEAR FROM a.report_date) = EXTRACT (YEAR FROM b.rpt_date )
    WHERE a.code_status = 'Gold' and b.code_status = 'Plat'
    AND a.report_date >= '2007-12-01 00:00:00.0'
    AND a.report_date < '2009-01-01 00:00:00.0'
    I have a table with customer id, yyyy-mm-dd for many years , and status as gold silver or platinum. and I need to work out the month that the status changed, and return a field as year-month.
    I am trying to extract the year and date that a customer changed from gold to plat but I am not sure how date arithmetic works. I need to have output like : customer_id and year-month but I keep just getting month.
    I know this is vague, but if you could help with the part of the query that delivers year and month back that would be great.
    Thank you very much

    Hi,
      1  SELECT a.customer_id, to_char(a.report_date, 'yyyy-mm') as change_date
      2* FROM program_details a
    SQL> /
    CUSTOMER_ID CHANGE_
              1 2009-06Bartek

  • How to set the date value in textbox

    i want to assign a date value which is fetched from database.the value is not set to that particular textbox

    Dear
    please kindly refer to the following sample:
    Dim oItem As SAPbouiCOM.Item
    Dim oEdit As SAPbouiCOM.EditText
    Select Case pVal.FormType
    Case "60006"
    If (pVal.ItemUID = "Btn1" And
    pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK And _
                        pVal.BeforeAction = False) Then
    oForm = SBO_Application.Forms.Item(FormUID)
    oItem = oForm.Items.Item("EdTxt")
    oEdit = oItem.Specific
    Dim a As String
    a = Microsoft.VisualBasic.Today.ToShortDateString
    oEdit.String = a
    End If
    End select
    best regards,
    xiaodan an
    sap business one forum team

  • Year to Date query

    SELECT T0.CardName, sum(T1.Price) [Year To Date], '0' [Previous] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocDate Between DATEADD(year,-1,GETDATE()) AND GETDATE() GROUP BY T0.CardName
    UNION
    SELECT T2.CardName, '0' [Year To Date], sum(T1.Price) [Previous] FROM OINV T2  INNER JOIN INV1 T1 ON T2.DocEntry = T1.DocEntry WHERE T2.DocDate Between DATEADD(year,-2,GETDATE()) AND DATEADD(year,-1,GETDATE()) GROUP BY T2.CardName
    ORDER BY T0.CardName asc
    Gives me, for example:
    A    100      0
    A     0        150
    B     200     0
    B     0        50
    C    300      0
    D     0         550
    How would I go about joining them together into:
    A    100    150
    B    200    50
    C    300    0
    D    0       550
    Thanks,
    Jason

    SELECT T1.CardName, sum([YearToDate]), sum(Previous)
    FROM OINV T1, (
    SELECT T0.CardName [BP], sum(T1.Price) [Year To Date], '0' [Previous] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocDate Between DATEADD(year,-1,GETDATE()) AND GETDATE() GROUP BY T0.CardName
    UNION
    SELECT T2.CardName [BP], '0' [Year To Date], sum(T1.Price) [Previous] FROM OINV T2  INNER JOIN INV1 T1 ON T2.DocEntry = T1.DocEntry WHERE T2.DocDate Between DATEADD(year,-2,GETDATE()) AND DATEADD(year,-1,GETDATE()) GROUP BY T2.CardName
    ) as d(BP, YearToDate, Previous)
    WHERE d.BP = T1.CardName
    GROUP BY T1.CardName
    ORDER BY T1.CardName
    Solved.

  • Filtering an EVDRE report based on a Data Value

    Everyone,
    I have a report that has accounts in the columns without expansion. I am capturing various status codes in one account and I need to know how to filter the report based on a data value that is retrieved from the database for this account.I am also using the EVdre sort functionality along with an EVSUB in the after range which  sub totals the Organization and Materials Dimensions in the rows.  When I try to use native Excel to filter  based on the value of the Status Code Account  the report will only sort the top section of the report. As soon as it hits the Subtotals it stops filtering. Is there a way to filter the report in EVDRE based on the data value that is returned from the database.
    The account that I want to filter on is Status Code. We can have two values in it either 10 = Submitted or 30 = Business Case. The users want to be able to filter the report to only show the status code of 10 (Submitted) for their Executives to review.
    Edited by: eleasha counts on Aug 3, 2011 12:22 PM

    Hi eleasha,
    I don't know if you will entertain FORMATRANGE.
    But you can use formatrange to hide those rows you donot want to see.
    You can use the CRITERIA as VALUE=<<anyvalue>> you want to verify and apply it on rows.
    You can set the PARAMETER value as ROWHEIGHT=0, and apply to ALL.
    Try this with the combinations you need to see.
    Hope this helps.
    Karthik AJ

  • Comparing a date value

    Is there an easy way to determine if a date value is within the current month?
    I usually compare the month and year value of the date to the month and year value of the current date to determine this, but there must be a more elegant way.
    Thanks
    Frank

    This is the only way I can think of...
    if month({datefield})+" "+year({datefield})=month(currentdate)+" "+year(currentdate) then "yes" else "no"
    Regards,
    Zack H.

  • Had a hard time setting up a bar chart with date value

    Just wanted to achieve this simple chart with a date value instead of text string or numbers, which is quite simple to achieve in Excel see screenshot.
    With flex 4, here's my code snippet, what do I missed? Please give me a hand, thanks  alot.
      [Bindable]
       private var scheduledata:ArrayList = new ArrayList([
        {name: "ward1", meeting: "1/1/2008", seminar: "8/12/2008"},    
        {name: "ward2", meeting: "2/1/2009", seminar: "9/24/2009"},
        {name: "ward3", meeting:"3/1/2011",  seminar: "10/30/2011"}
      <mx:BarChart id="bar" height="100%"
          showDataTips="true" dataProvider="{scheduledata}">
       <mx:verticalAxis>
        <mx:CategoryAxis categoryField="name"/>
       </mx:verticalAxis>
       <mx:series>
        <mx:BarSeries yField="name" xField="meeting" displayName="meeting" />
        <mx:BarSeries yField="name" xField="seminar" displayName="seminar"/>
       </mx:series>
      </mx:BarChart>

    Thank you all for those who tried to help. I figured it out by picking it up from (http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf65a29-7ffb.html). Just need to add a DateTimeAxis to it! Though there's bug to it that the datetimeaxis format will only display mm/yy regardless you chose Days, Weeks or Months. Somehow I will need to tackle that. 
    <mx:horizontalAxis>
    <mx:DateTimeAxis dataUnits="Days""/>
    </mx:horizontalAxis>

  • Pages Merging from Multiple Numbers Tables

    I'm trying to merge data into a Pages document from a Numbers document.
    My Numbers document has 2 tables.
    When I select a location in my Pages document where I want some data from Numbers to appear, and then select the Link button in the Pages Inspector, and then select Choose, and then select Numbers Document in the "Select Mail Merge Source" window, only 1 of the 2 Tables inside Numbers is offered as a choice from which to merge data from Numbers.
    What do I have to do so that in the "Select Mail Merge Source" window, both Tables appear as choices from which to pull data?
    Thanks.
    Neil

    Here are some link that will give you information
    http://discussions.apple.com/thread.jspa?messageID=10161846&#10161846
    http://discussions.apple.com/thread.jspa?messageID=9788717&#9788717
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=142

Maybe you are looking for

  • Profit center substitution in delivery from Purchase Order

    Hi all Hi have a stock transfer process between two company (1 sending company and the different target companies). I must change the profit center of sending company following the target company code (profit center A for target company A, B for B,et

  • Disable DSN for specific messages

    Hi, i have a problem, where i wish to disable DSN for specific internal users. Scenario : Interal User a sends a mail to special address c, if mail host of special address c is not available or anything else i wish that internal user a is never infor

  • Impossible to detect an AUTO_INCREMENT column in a table of PostgreSQL DB.

    Hello, I need to detect an AUTO_INCREMENT column in a table of PostgreSQL DB. Note : PostgreSQL uses sequence number to create an AUTO_INCREMENT column. From a ResultSetMetaData, I call the methode isAutoIncrement(int index) which returns true if the

  • QT Pro audio anomoly w ADVC-100

    iMac can capture a DVR Sound and Video from recorded DVD via ADVC-100. Sound and Video come in fine with FCE & iMovie. Can't seem to get sound to come in {or out} with QT Pro. Preferences are set to ADVC-100 and iMic USB {just as they are for the app

  • Issue booting from Core install CD on AMD64

    I fear this may be my sketchily-supported Emu1212m sound card causing issues again. I am unable to get the core CD to boot at all on my machine. I took a photograph of the error message (click the thumbnail below for the full image): For the record,