How to calculate the previous year YTD balance in profit & loss statement

Dear all,
I would like to seek for advice on how to calculate the previous year YTD (Year to date) balance in profit & loss statement
For example, if I enter May 2009, the YTD value should be a sum up of value from Jan to May.
I have tried the current year YTD could be set in column selection dimension "financial period"
FACT PER( Code = YearFirst(@Per):@Per )  Order By PER.Code Descending
Then, I tried the previous year YTD in another column using
FACT PER( Code = YearFirst(@Per-12):@Per-12 )  Order By PER.Code Descending
But it failed -> Abnormally display three column, while the financial period I enter 200903 in parameter @Per
Would anyone kindly help me on that?
Regards,
Simon Chiu

Dear Jim,
Thanks for your reply.
However, the problems still cannot be solved.
My expected output is 1 column listing the YTD value from previous year.
I have tried two times using both the Code = YTD(@Per-12) and Code = YearFirst(@Per)-12:@Per respectively. However, the Excel display various column.
I am using Financial Period 200903. In the last three column, it display the data in Financial Period 200901, 200902 and 200903 respectively.
For the current year, the YTD is correct and show 1 column listing the sum of account in the Financial Period 200901, 200902 and 200903
Would you kindly advice the code setting and how to set? Also, how I can access the syntax builder?
Regards,
Simon Chiu

Similar Messages

  • How to display the Previous years

    Hi
      CJE0 - 12KST1A costs:budget/actual/commt/rem.plan/assd
    How to display the previous years budget in above mentioned report. at present the report is showing only cumulative value of previous years,2009 and 2010.....
    My requirement is from 2005 to 2009 i want display the value in this report, please through some light on this.
    Thanks
    S.Murali

    Hi
    But i want check the previous years budget for some number of projects not one by one, because the number of project are more.
    The above mentioned solution is for one by one i can check the pervious years budget. But my requirement is collective.
    Thanks
    S.Murali

  • How to define the Previous Year Up to Date in BI 7?

    Dear Expert,
    I have got a BI 7 report requirement which needs to restricted a key figure with Previous Year Up to date.
    I have found a time variable as Current Year Up to Date but not able to find the one for Previous Year Up to Date.
    Is it possible that I can use it as below to restrict the Key Figure:
      ZMP_CTYD (Current Year To Date) -1   (current year to date with the off set set to -1)?
    If this is not a right way, could you let me know what is the correct way to restrict the Key Figure for Previous Year Up to Date?
    Further information about the requirement:
    I need to get the difference between current year up to date and previous year up to date for a key figure.
    For example, to get the difference between the  amout related to the preiod between Jan 1, 2008 and May 22, 2008 and the amount related to the period between Jan 1, 2007 and May 22, 2007.
    Thank you very much!
    Arthur

    Hi,
    YTD and CTD are different. One is all the way till year end and the other one is through current period. One way of doing this is to define your restricted KF definition. You can use the existing Variable that you already have and insert / restrict posting period from 'time dimension"  1 - 16, in most cases there are 16 period, or 1 to "latest period" depending on what you have. The key here is your " POSTING PERIOD" restriction
    Hope this helps
    assign points if helpful

  • How to populate the data or details of only the present year and the previous year with respect to the given RATNG?

    Hi All,
    I have created a form with 5 blocks (namely ENQACMHDR, ENQACMDTL, ENQACEHDR, ENQACEDTL, ENQACSPEC), where i have 8 push buttons (namely ENTER_QUERY, EXEC_QUERY, CLEAR, FIRST, NEXT, PREVIOUS, LAST & EXIT).
    This form is created just for viewing purpose only. So after I execute, all the blocks have been blocked against insert & update.
    I query on 2 fields that is 'ENQNO' and 'RATNG' (Both the fields belong to the block ENQACMDTL).
    When I click on 'EXEC_QUERY' directly, all the data of all the years populates.
    But the user wanted the data to be populated from only the present year and the previous year.
    So , on 'WHERE Clause' of the property_palette of 'ENQACMDTL' block , I put in the following condition:
    SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR( ADD_MONTHS(SYSDATE,-12) , 'YYYY') OR SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR(SYSDATE, 'YYYY')
    PROPERTY PALETTE (ENQACMDTL block)
    WHERE Clause
    SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR( ADD_MONTHS(SYSDATE,-12) , 'YYYY') OR SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR(SYSDATE, 'YYYY')
    Now the data of only the present year and the previous year is being populated. Its ok with the field of 'ENQNO'.
    The problem is when i query on field 'RATNG' . 'RATNG' is a Text_item with Number of Items displayed=5. (5 rows)
    The following are 2 columns of a Table (Name=ENQACMDTL) in Database.
    ENQNO
    RATNG
    2013900054
    500KC2
    2013900047
    800KC4
    2013520018
    750KC6
    2012900037
    1000KC2
    2012520109
    500KC2
    2012140019
    750KC6
    2011540036
    500KC2
    2011100030
    1000KC2
    2006100007
    90KD8
    2006750014
    750KC6
    2006900072
    500KC2
    The first 4 numbers of 'ENQNO' denotes the year. There are more than a lakhs of records.
    So when i query on the field 'RATNG',
    Example:For RATNG=500KC2;
    I click on ENTER_QUERY, On the field of 'RATNG' , i put in the value 500KC2 and click on  EXEC_QUERY; Details with respect to 500KC2 is displayed as well as all the other unwanted RATNG like 750KC6, 1000KC2 (which belongs to the ENQNO of the present year and the previous year) also gets displayed.
    I want details of only RATNG (500KC2) to be displayed, but only of the present year and the previous year, that is 2013900054, 2012520109 (ENQNO).
    Other than 500KC2 RATNG, no other RATNG must be displayed.
    The RATNG=500KC2 is also present for ENQNO=2011540036 , 2006900072. But I dont want these to be displayed.
    I want only the data or details of the present year and the previous year to be displayed or populated with respect to the given RATNG.
    Can You Help me or tell me what do i do for this?
    Hope I'm clear with my question!!
    If my question is not clear, let me know plz.
    Thank You.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    Oracle forms 6i.

    On key-exeqry you have to program.  Delete all other trigger codings for checking your condition.
    It dint work on key-exeqry.
    I tried key-exeqry on form trigger, block (enqacmdtl) and also on field(:enqacmdtl.enqno) , but none of them worked.
    It did not display the message.
    I have a 'PUSH-BUTTON:EXEC_QUERY.
    For EXEC_QUERY, Trigger : WHEN_BUTTON_PRESSED;
    I added the following code:
    if to_number(substr(:enqacmdtl.enqno,1,4))<to_number(to_char(add_months(sysdate,-12),'YYYY')) then
         message('The Rating is not present for the present year and the previous year');message(' ',no_acknowledge);
         raise form_trigger_failure;
    else
         execute_query;
    end if;
    It is working fine and the message is being displayed.
    But again I have a new problem and that is;
    On the field :enqacmdtl.enqno, when i enter the '2013%' and press 'EXEC_QUERY', it works fine.
    but when i enter '2006%' and press 'EXEC_QUERY', it shows the following error
    FRM-50016: Legal characters are 0-9 - +E. It does not display the message also.
    but when i enter the complete number, '2006580002', then it works fine , that is it displays the message (The Rating is not present for the present year and the previous year).
    The problem is because of '%', only when i put in the restricted data (which does not satisfy where condition).
    How do i solve this?
    Thank You Priyasagi.

  • How can I view my phone calendar for the previous year via my laptop?

    I have to extract appointments for tax purposes and as this is my first smart phone (Samsung Galazy S3), I have no clue if this is possible or where to look? I thought when my phone did its back up it backed up everything...now I'm guessing just my contacts?
    PLEASE HELP! TIME SENSITIVE!

        Help is here, sbsue! Lets see if we can figure this out. Which calendar are you using? Is it the one on your S3? If so, did you back up by going in settings > accounts > Gmail accounts and sync? If the calendar was synced, log on google.com/calendar to view the previous year. Let us know which calendar was used so that we can better assist.
    Thank you,
    LenaA_VZW
    Follow us on Twitter @VZWSupport

  • How to calculate the Current APC (Acquisition and Production Cost)

    Hi,
    Please help me how to calculate the Current APC.
    The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
    The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
    The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line “Acquisition Value” and column “Posted values”.
    I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic.
    Please help me.
    Thanks in advance,
    Satish

    Hi,
    you'll find the logic in fm FI_AA_VALUES_CALCULATE
    A.

  • How to calculate the Current APC

    Hi,
    Please help me how to calculate the Current APC.
    The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
    The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
    The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line “Acquisition Value” and column “Posted values”. 
    Thanks in advance,
    Satish

    Hi,
    I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic where it is being done.
    Please help me.
    Thanks in advance,
    Satish

  • Function module which could calculate the previous month's start date.....

    hi,
    I want a function module which could calculate the previous month's start date and end date...
    Say todays date is  like 29.05.2007(start date) it should return
    01.04.2007 and 30.04.2007...
    IS there any FM for this ... or how to go about this scenario ???
    thanks in advance
    samm

    See the below Logic :
    DATA :g_date(2) TYPE n,           " Date
          g_month(2) TYPE n,          " Month
          g_year(4) TYPE n ,          " Year
          g_bill_low(10) TYPE n,       " From date
          g_bill_high(10) TYPE n,      " To date
          g_month1(2) TYPE n,         " Month
          g_year1(4) TYPE n,          " Year
          g_date1(2) TYPE n,          " Date
          g_year2(4) TYPE n,          " Year
          g_datum LIKE sy-datum.      " System date
    RANGES : r_bdate  FOR vbrk-fkdat.             " Billing date
      g_datum = p_date + 10.
      g_month = g_datum+4(2).
      g_year = g_datum+0(4).
      IF g_month = 1.
        g_year = g_year - 1.
        g_month = 12.
        g_date = 1.
      ELSE.
        g_month = g_month - 1.
        g_date = 1.
      ENDIF.
    Passing the date to billing date-low
      CONCATENATE  g_year g_month g_date  INTO g_bill_low.
      r_bdate-low = g_bill_low.
      r_bdate-sign = 'I'.
      r_bdate-option = 'BT'.
      g_month1 = g_datum+4(2).
      g_year1 = g_datum+0(4).
      IF g_month1 = 1.
        g_year1 = g_year1 - 1.
        g_month1 = 12.
      ELSE.
        g_month1 = g_month1 - 1.
      ENDIF.
      CASE g_month1.
        WHEN 1.g_date1 = '31'.
        WHEN 3.g_date1 = '31'.
        WHEN 4.g_date1 = '30'.
        WHEN 5.g_date1 =  '31'.
        WHEN 6.g_date1 = '30'.
        WHEN 7.g_date1 = '31'.
        WHEN 8.g_date1 = '31'.
        WHEN 9.g_date1 = '30'.
        WHEN 10.g_date1 = '31'.
        WHEN 11.g_date1 = '30'.
        WHEN 12.g_date1 = '31'.
      ENDCASE.
      g_year2 = g_year1.
      IF g_month1 = 2.
        g_year2 = g_year2 MOD 4 .
        IF g_year2 = 0.
          g_date1 = 29.
        ELSE.
          g_date1 = 28.
        ENDIF.
      ENDIF.
    Passing the date to billing date-high
      CONCATENATE  g_year1  g_month1  g_date1 INTO g_bill_high.
      r_bdate-high = g_bill_high.
      APPEND r_bdate.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Posting of depreciation in the previous year 2008

    Hi All,
    My client wants to capitalize some expencess in the previous year as assets, and they would like to caliculate depreciation from 01.01.2008 to 31.12.2008, finally they would like to carryforward those amounts to fiscal year 2009.  My client is following jan-dec as fianancial year.
    The assets involved are product licences and will need to be set up  under asset  numbers 99009 onwards. The amounts to be capitalised in 2008 are as follows:
    XYZ               u20AC12,456.89
    As a full years depreciation of 10% of the total costs was taken for 2008, the capitalisation date should be set at 01/01/2008 to allow the figures to be calculated correctly and the correct npv to be carried forward to 2009.
    Please let me know how to do this activity?
    Thanks in advance
    Regards,
    Prasad

    Go to TCode: OAAQ,
    Open Fiscal Year 2008 and post the entries capitalization entry through JV in 2008. Now run AFAB for repeat run for 12th period.
    Howeve above will change the closing balance of 2008 which may be audited and approved.

  • How to calculate the variance in PO price history?

    hi
    i hav standard report ME1P, since i need to do some modifications in this program i copied to Y prgrm,,,'
    im getting all the values properly...
    but my prblm is im not getting how to calculate the variance? im not getting the logic behid it...
    can anybody expln me in breif plz....
    Regards
    Smitha

    Hi Venu,
    there is another way as well, however, you won't be able to see Variance and Variance% as a saperate keyfigure which is not under the period. Thats the reason I didn't mention it earlier.
    What you can do is, Drag the period to the columns, Now create a structure that has the two keyfigures std price, moving price. Here if you add Variance and Variance%, Then these CKF's would come under period as well, which you don't need. And the system won't allow you to add these CKF's outside this structure. The reason being because the interpretation of the data then wouldn't make any sense here. You can create a new structure as well with these CKF's but they would become a subpart of your previous structure.
    choose the required characteristics in the Rows section. Save it.
    Let us know, Sorry man, can't help u much at this problem.
    regards,
    Sree.

  • How to calculate the individual sums of multiple columns in a single query

    Hello,
    Using Oracle 11gR2 on windows 7 client. I have a question on calculating sum() on multiple columns on different columns and store the results in a view. Unfortunately I could not post the problem here as it keeps on giving error "Sorry, this content is not allowed", without telling where or what it is! So I had to post it in the stack-overflow forum, here is the link: http://stackoverflow.com/questions/16529721/how-to-calculate-the-individual-sums-of-multiple-columns-in-a-single-query-ora
    Will appreciate any help or suggestion.
    Thanks

    user13667036 wrote:
    Hello,
    Using Oracle 11gR2 on windows 7 client. I have a question on calculating sum() on multiple columns on different columns and store the results in a view. Unfortunately I could not post the problem here as it keeps on giving error "Sorry, this content is not allowed", without telling where or what it is! So I had to post it in the stack-overflow forum, here is the link: http://stackoverflow.com/questions/16529721/how-to-calculate-the-individual-sums-of-multiple-columns-in-a-single-query-ora
    Will appreciate any help or suggestion.
    ThanksLooks like you want a simple group by.
    select
              yr
         ,      mnth
         ,      region
         ,     sum(handled_package)
         ,     sum(expected_missing_package)
         ,     sum(actual_missing_package)
    from test
    group by
         yr, mnth, region
    order by      
         yr, mnth, region;I wouldn't recommend storing your data for year / month in 2 columns like that unless you have a really good reason. I would store it as a date column and add a check constraint to ensure that the date is always the first of the month, then format it out as you wish to the client.
    CREATE TABLE test
         year_month                              date,
        Region                     VARCHAR2(50),
        CITY                       VARCHAR2(50),             
        Handled_Package            NUMBER,       
        Expected_Missing_Package   NUMBER,   
        Actual_Missing_Package     NUMBER
    alter table test add constraint firs_of_month check (year_month = trunc(year_month, 'mm'));
    ME_XE?Insert into TEST (year_month, REGION, CITY, HANDLED_PACKAGE, EXPECTED_MISSING_PACKAGE, ACTUAL_MISSING_PACKAGE)
      2  Values (to_date('2012-nov-12', 'yyyy-mon-dd'), 'Western', 'San Fransisco', 200, 10, 5);
    Insert into TEST (year_month, REGION, CITY, HANDLED_PACKAGE, EXPECTED_MISSING_PACKAGE, ACTUAL_MISSING_PACKAGE)
    ERROR at line 1:
    ORA-02290: check constraint (TUBBY.FIRS_OF_MONTH) violated
    Elapsed: 00:00:00.03
    ME_XE?Insert into TEST (year_month, REGION, CITY, HANDLED_PACKAGE, EXPECTED_MISSING_PACKAGE, ACTUAL_MISSING_PACKAGE)
      2  Values (to_date('2012-nov-01', 'yyyy-mon-dd'), 'Western', 'San Fransisco', 200, 10, 5);
    1 row created.
    Elapsed: 00:00:00.01
    ME_XE?select
      2        to_char(year_month, 'fmYYYY')    as year
      3     ,  to_char(year_month, 'fmMonth')   as month
      4     ,  Region
      5     ,  CITY
      6     ,  Handled_Package
      7     ,  Expected_Missing_Package
      8     ,  Actual_Missing_Package
      9  from test;
    YEAR         MONTH                REGION                         CITY                    HANDLED_PACKAGE EXPECTED_MISSING_PACKAGE ACTUAL_MISSING_PACKAGE
    2012         November             Western                        San Fransisco                       200                       10                      5
    1 row selected.
    Elapsed: 00:00:00.01
    ME_XE?Then you have nice a nice and easy validation that ensures you data integrity.
    Cheers,

  • How to set the fiscal year period as default in variables

    Hi All,
    How to set the fiscal year period as default it shoud take previous period when the report is executed.
    And also I need to do the same changes in reporting agent.
    Could you please any one help me.
    Points will be given.
    Thanks!
    Best regards,
    Ajay.

    Hi Ajay,
    Create a customer exit variable.Write the code in the include 'zxrsru01' using system date.
    take the system date from the system date variable and using that you can get the current fiscal year period.use this value and using string commands, you can get period.
    subtract 1 from this value.Using this you can get the previous fiscal period..
    Please let us know, if you need the coding part
    Hope it helps
    Thanks,
    Teja

  • Depreciation - Post in the Previous Year

    Hi,
    I am trying to post the depreciation for Jan 2010, but the system is giving the error that I need to post in the preious year first.
    However when i am trying to post the depreciation for the previous year, its giving the error that previous year is closed. Can anybody help me how to resolve this issue. Thanks.
    Regards,
    S.Sumana.

    Hello Sumana,
    I have encountered similar issue in one of my clients. What you need to do to remedy the situation is that you need to open the Asset fiscal year in OAAQ and then post depreciation month wise till the current year start. For posting depreciation you also need to open the old accounting period but if there were no asset postings in previuos years then you do not have that risk of anything getting posted in books(which are already closed) in those prior fiscal years. This was from books point of view you maintain status quo.
    Close the previous asset years and posting years once you are done with depreciation posting for a particular year.
    After you come upto date you can run the depreciation normally in current year.
    Regards,
    Vijay

  • Does anyone know how to calculate the impedance using waveforms

    does anyone know how to calculate the impedance using waveforms?

    studentproject wrote:
    the waveforms represent the voltage and current values across a capacitive load. I am trying to find out if there is a way to do automatic calculations using the inputs from the waveforms
    Hopefully a single sinusoid tone.  Otherwise things get really interesting.  Also know that impedance is based on the frequency.  I'll have to dig into this again.  I have not had to calculate an impedance in well over 10 years.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • User wants to see the previous year's W-2 forms, while he is accessing the present year W-2 form

    Hi Folks ,
    I need your expertise in resolving the issue,
    Requirement: User wants to see the previous year’s W-2 forms, while he is accessing the present year W-2 form (2011, 2012 and 2013 years)
    Need to get the information whether we could able to get the previous year’s W-2 forms using standard functionality? Or we should use the customize functionality
    If we want to use the custom functionality , please let us know how to do it ?
    Thanks and Regards ,
    Deepak

    you can use the Features UTREL and UTRES
    Read complete configuration & guide document
    W-2 Online User Guide - ERP Human Capital Management - SCN Wiki
    Configuring Online W-2 - Online W-2 - SAP Library

Maybe you are looking for

  • Problem in Call Screen

    hi! all I'm having an executable report in which from the given input a screen opens to enter data. my default selection-screen no. is 1000. user-defined screen no. is 1001. when i click back button the following error occurs. Selection screen ZSDSR0

  • My Mac's Built in iSight is not showing all the options for the camera

    On Flash bashed chat rooms such as Stickam and Tinychat, my camera doesn't respond but when I right click>settings >Camera the drop down box only shows one option (Built-in iSight) when it usually shows three (Built in iSight, USB Class Video and Som

  • My free memory dropped during backup?

    Today I decided to add some music to my iPod Touch 5G, running on iOS 7.1.2. It automatically started to back up, so I let it, because you can never go wrong with having a back up, am I right? Halfway through the process, my free memory went from 15

  • CS3 won't preview Firefox

      I have Dreamweaver CS3 running on MacOS 10.6.2 and can't preview in Firefox 3.6. Is this known? I have looked but not found an answer. Must I upgrade to CS4? Preview works in Safari but not Firefox. Firefox does open. That is to say a Firefox windo

  • Mount MBP to MacPro and MacPro to MBP?

    ooof. i am doing a complete reinstall on both my MacPro (Lion) and my MBP (Mountain Lion). can anyone help me figure out how to get the Finder pane to /see/ the Mac Pro from the MBP and vice versa? is this a Users and Groups set of settings - or some