How to extract numeric equivalent of closing fiscal period?

Hello gurus,
We have a requirement to calculate YTD returns by using the numeric equivalent of closing fiscal period for eg jan would be 1, feb would be 2 etc.
What's the easiest way to do this? Appreciate your help.
Malli

Thank you for the response Ashish.
The source infoobjects of Time dimension that we have are fiscal year/period (of the format 002.2005,003.2005 etc)and posting period (of the format 1,2,3,etc)Both of these require user inputs.
Our requirement is to get the numeric equivalent of the closing period that the user enters.
I am not sure how to do it with our info-objects.
Would appreciate your help.

Similar Messages

  • Last Closed Fiscal Period

    Hi All
    How can I identify the Last Closed Fiscal Period in a query variable ?
    eg. The current calendar month is Feb which is Fiscal period 11 (Variant is Z3). However Finance still have January open so they want to report YTD figures up to and including December (Fiscal periopd 9).
    I have created a user exit variable (with help from SDN) that works out the YTD range for the fiscal periods but it uses system date to calculate current period. Therefore, the current fiscal period is coming out at 11 but I need 9. When the Month End occurs on Friday the current fiscal month should become 10.
    All help appreciated.
    Asif

    Hi Surender
    I need a variable that does not have any user interaction, and will determine the range of periods that constitute the current fiscal year. The range should start at 1 and end at the last closed fiscal period as maitained on R3.
    I have decided to bite the bullet extract the table T100B from R3. It contains details on all open periods.
    I am trying to load it as master data. Its the first tme I have done this type of work so taking some time.
    I have created the extractor and a characteristic with attributes to hold this info. I then plan to read this data in the variable to work out the range.
    If there is a simpler way to do this then please advise.
    Regards
    Asif

  • Option to show values up to last closed fiscal period or up to current date

    Hello,
    How would I create a query that would ask if I want it to calculate values 'up to the current date' or for the 'latest closed fiscal period'.
    Currently I have setup a report, within which, has restricted key figures that will give the 'Period to date', 'Year to Date', and 'Last Year Year to Date' values for some RKFs, however, it would be very helpful if this report could be setup so that the user could choose whether the report provides:
    1. Values only through the last closed fiscal period
    or
    2. Values up to the current date.
    <b>For example</b> if we are in period 7 of 2006, the user could have the report show all values up to the last closed fiscal period, which in this case would be period 6 of 2006.
    Or the user could have the report show all the values up to the current date.
    Hopefully I have been clear,
    Thanks,
    Nick
    Message was edited by:
            Nick Bertz

    Nick,
        What is the problem you are facing? As San mentioned you can only report till Last Fiscal Period using Customer Exit Variables(Calculate Current Fiscal Period using Current Month and Fiscal Year Variant).
    Or as you mentioned you can create restricted Key Figures using Date or month (YTD etc)
    If i miss your requirement, please guide me.
    Regards,
    Nagesh Ganisetti.
    *Assign Points if it helps.

  • How to  Create  a selection variable for Fiscal period/year range

    How to  Create  a selection variable for Fiscal period/year range. The idea is to filter the query results using a fiscal period/year range user input rather than a full fiscal year input.

    Hi Priya,
    Open the query in a query designer -> in the left hand side you would find the fiscal year period under the time dimension -> right click -> create variable -> create the variable.
    The better option would be use any of the SAP provided variable. You would find them under the Fiscal year period in the left hand side in the query designer.
    Bye
    Dinesh

  • What FM to use to check on closing fiscal period?

    Hi Guys,
    Any function module to use to check on the fiscal period is closed or not?
    Thanks.

    Hi,
    Check:
    https://forums.sdn.sap.com/click.jspa?searchID=1165790&messageID=2923726
    CHECK_PERIOD_POSTINGS
    FI_PERIOD_CHECK
    Regards
    Subramanian
    Message was edited by:
            Subramanian PL

  • How to Create Dynamic Columns based on Fiscal Period

    HI BI World;) We are on BI &.0
    I have a requirement to create a time series BI query
    It must take the variable value (range) from the user abd create all months within this range in a time series displaying the key figure value for the respective periods.
    I have so far added the fiscal year period characteristic  to the columns with the key figure under this and the fiscal/year period is on a restiction in the filter area by a variable (range)
    When I run this query it only shows the fiscal periods which have a value for the key figure. Is it possible to show all fiscal periods and have blank columns where there is no value for the respective key figure/period.
    I have tried using master data for the fiscal period but this does not work as has some junk values.
    Any ideas? I need to show alll periods between the dates whether they have values or not.
    Best,
    Stevo
    Points will be awarded.
    Thanks in advance

    Hi,
    Try restricting the fiscal period inside the keyfigure and in the output format try drill across of fiscal period.
    in tne fical period char properties try masterdata relationship option.
    Thanks,
    Arun.

  • How to get the last day according to fiscal period input in selection scree

    Hello expert
    how to get the last day of fiscal period input.
    the fiscal period inculdes 1-16
    when fiscal period is greater than 12, only calculate the last day of 12nd month
    your solution will be apprecaited, FM existing?
    thank you
    Kevin

    Hi,
    when you give a particular date in any month
    the following fm will give you the last date of that month
    here you can give
    R_FDATE-HIGH  as 01 and month as the period you wnat and year for current year
    concatenates '01'  month year  into r_fdate-high separated by '.'.
    then it will give g_ltdt for that month and year which wil be the last date of that month
        CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
          EXPORTING
            DAY_IN            = R_FDATE-HIGH
          IMPORTING
            LAST_DAY_OF_MONTH = G_LTDT
          EXCEPTIONS
            DAY_IN_NO_DATE    = 1
            OTHERS            = 2.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    thanks & regards,
    Venkatesh

  • How to Get the numeric equivalent of Year and Month with this format....

    Hi Experts!
    I just would like to know how to get the numeric equivalent of the Year and Month if the given format is like this....
       31-May-07
    where:
    31 is the Day
    May is the Month
    07 is the Year
    Is there a function in ABAP to do this? I wouldn't mind hardcoding for the Month, but what I'm after is the year.... they only gave me 2 digits for the year... and I would like to extract 4 digits from it... do ABAP still recognize it as '1907'? I think not...
    Please help me on this experts and Thank you in Advance!!!
    More Power!

    Hi Jayson,
    You can require 2007 or 2017 or 2027..
    or 1937 . or 1947 .. so on,
    so just put a logic based on this. Just hard code as
    lets say value is 31-May-07 (9 char field)
    Case field+7(1).
    WHEn 0.
    concatenate '200' field+8(1) into year.
    WHEN 1.
    WHEN 2.
    WHEN 3.
    jsut code like this and check the syntaxes.
    Reward points if useful.
    Regards,
    Atish

  • Planned dep in closed fiscal year

    Hi
    We have done a change(reduced the useful life) in the useful life of the asset in the Fiscal year 2009 in the  month of June,which impacted the  previous year depreciation amount.The planned  dep value got increased in december 2008 .In the posted value tab in asset explorer for year 2008 it displays the planned dep in dec 2008 which is not yet posted.We donot need this depreciation to be posted.We need to delete the planned dep.Financial year and Asset year till 2009 are closed.
    Please advice how to get the planned dep line removed from year 2008 which effects the net book value.

    Hi,
    Are you absolutely sure the changes were made when the fiscal year was closed. Maybe you need to also check if the depreciation area(s) affected was/were open at the time (OAAR). It should not be possible: if the fiscal year and all depreciation areas are closed, changing the useful life should not affect these closed years/depr.areas.
    Changes to depreciation conditions (e.g.useful life, dep.key) only affect the planned depreciation in open fiscal years. There is no specific transaction.
    The adjustment for the depreciation of the closed fiscal year will be reflected in an adjustment posting in the next period due for depreciation posting in a catch-up posting (or smoothing if indicated). For the open fiscal years the newly calculated depreciation will be distributed equally over the remaining useful life.
    Therefore it sound to me very peculiar that planned depreciation should have been created in your closed fiscal year due to a change of useful life. Please review your change documents to ensure depreciation areas and fiscal  years were closed at time of change u2013 and have not been reopened either via OAAR or OAAQ.
    To answer your last question regarding if change of useful life will affect deprecation in 2010:  provided that it is the only open fiscal year and is in fact the current fiscal year, then yes, it will affect the planned depreciation in 2010 and in the remaining useful life.
    Kind regards,
    Brigitte

  • How to extract an integer or a float value from a String of characters

    Hi i have a problem getting to a float value within a string of characters..
    for instance the string is
    "numberItem xxxxxxxxx 700.0" (each x is a space..the forum wouldnt let me put normal spaces for some reason)
    how do i store 700.0 in a float variable
    remember the string is obtained from an inputfile
    so far i got the program to store the inputfile data line by line in a String array..i tried tokenizing the string to get to the the float value but since i have mulitple spaces within my string, the token method only gets "numberItem" from the above String
    This is all i have so far:
    String c;
    String Array[] =new String[g]; (i used a while loop to obtain g(the nubmer of lines in the file))
    while((c=(cr.readLine()))!=null)
    Array[coun]=c;
    it would be reallllllllllllllllllllllllllllllllllllllly easy if there was a predefined method to extract numeric values from a string in java..
    Edited by: badmash on Feb 18, 2009 5:50 PM
    Edited by: badmash on Feb 18, 2009 5:50 PM
    Edited by: badmash on Feb 18, 2009 5:55 PM

    badmash wrote:
    Hi i have a problem getting to a float value within a string of characters..
    for instance the string is
    "numberItem xxxxxxxxx 700.0" (each x is a space..the forum wouldnt let me put normal spaces for some reason)
    with the space included
    how do i store 700.0 in a float variable
    remember the string is obtained from an inputfile
    so far i got the program to store the inputfile data line by line in a String array..i tried tokenizing the string to get to the the float value but since i have mulitple spaces within my string, the token method only gets "numberItem" from the above StringHuh?
    Not true.
    Anyway why not use string split, split on spaces and grab the last element (which by the format you posted would be your 700.0)
    Then there is the Float.parseFloat method.
    It is easy.
    And another thing why not use a List of Strings if you want to store each line? (And why did you post that code which doesn't really have anything to do with your problem?) Also in future please use the code formatting tags when posting code. Select the code you are posting in the message box and click the CODE button.

  • Depreciation Run for closed fiscal year

    Hi All,
    We bought some assets on 2005 through direct purchase and these assets are in under operation, but not having the asset master record in the SAP system.
    Now we have decided to bring these assets into the system as the capitalised date is 10 Nov 2005 and for this purpose, we had created the asset master record and applied the t.code: ABNAN to post the values to these assets.
    <b>"My concern is about how to provide the depreciation run to these assets for the closed fiscal year from 2005 to until Nov 2007.The present closed period in the production system is 2006".</b>
    I request you to all kindly give your values on the above mentioned issue.
    Thanks with regards,
    Ran

    Hi
    Just give the dep start date as 10 Nov 2005 and run the dep for the current posting period the depreciation will get posted for the year 2005 and upto the current period,in the current posting period.
    As the past reriods are all closed you cannot post dep in the year 2005.
    You will have the whole dep for that particular asset posted in the current posting period.
    Hope this helps
    Good Luck
    Hari

  • Without run depreciation they have closed fiscal years

    Hi all
    In my development system without Depreciation Run they have closed fical years.
    They did not run depreciation from 2003 and 02 period.
    present fiscal year is 2007.
    How can go back and how can i run depreciation from 2003. Please tell me clearly.
    It is very urgent.
    Thanks in advance.
    Krishna

    Hi,
    as far i know,
    you cannot close fiscal year without running depreciation until period 12.
    you said that your present fiscal year is 2007? is it FI Fiscal Year or Asset Fiscal Year?
    If 2007 is FI fiscal year and your Asset fiscal year is 2003 then you want to run the depreciation for 2003, You must open FI fiscal year for 2003 until 2007.  Use t-code : OB52 to open FI fiscal year.
    You can check the last closed fiscal year for ASSET in t-code : OAAQ.
    Hope it can help.

  • Reg: Extract Date for  the closed periods

    Hi,
    In FI/CO, Every Financial year accounts have been closed.
    Now issue is I want do extract the data for a particular period of which is closed (2002) By using some standard prog.  It is giving an error msg that the input date is closed. How to over come this as a technical guy.  They require the data for 6 months in 2002.
    Regards
    Reddy

    Hi Santosh,
    Thanks for your Questions. Below are the explainations:
    1. Can you expalin how your system is behaving at the moment?
    A. Presently the GR Processing time is 1 day for a material in Plant. So, if the user wants to produce on Wednesday (Planned date in PR, provided by the MRP run), then the delivery should be on Tuesday (Because GR processing time is 1 day). In  the same way, he dont wants the delivery to be on Friday. I mean, if he wants to produce on Monday,  he wants the delivery to be on Thursday.
    Only Friday, he don't wants to make the Delivery.(The delivery date should not show Friday in PR's).
    2. Pls explain your original MRP view and planning calendor setting...
    A. For solving of the above issue, we changed the Lot size to copy of "PK" - Period lot size acc to planniong calendar. Then we maintained the Planning calendar, in which the periods are for every Monday, tuesday, wednesday and thursday. Expecting, the delivery  should be excluded for friday, the friday in the planning calendar is not given as a period.
    The scheduling paramter in the Lotsize is tried with both the options (period start = Deliery date and period end = Delivery date).
    Later removed "PD" in MRP type and tried with "R1" Time phase req. But, the precondition for this is to maintain "Forecast req". This is also done. But, then, the system for this material is not responding to the MRP run. It is asking to run the forecast model. We ar not using SOP.
    3. The results thst you get with current setting?
    A. For the planned date in PR of Monday, the delivery date in PR is on the day before monday. i.e., Friday (Saturday and sundays are holidays).
    4. Expected results...?
    A. For the planned date in PR of Monday, the delivery date in PR should be Thursday (the day before monday production).
    Hope, i am clear in my explaination. Please revert back, if you need any more information.
    Thanks and Regards
    Surendra Chakka

  • How to open and closed posting period??

    Dear Gurus,
    Pls help me, how to open and closed posting period.when and how we used special period.
    Regrds
    Mahesh

    HI,
    Tcode is ob52
    here we generally provide the following details
    a/c type from a/c to a/c from period year to period year from period year to period
    +                                    1            2007   12         2007      13       2007   16
    + implies it applicable to all account types
    generally we can have maximum 4 special periods and total no of periods(normal+special) should not exceed 16
    generally we use special periods for year end adjustments like tax adjustments
    if it is useful assign me points

  • How to Extract Data for a Maintenance View, Structure and Cluster Table

    I want to develop  3 Reports
    1) in First Report
    it consists only two Fields.
    Table name : V_001_B
    Field Name1: BUKRS
    Table name : V_001_B     
    Field Name2: BUTXT
    V_001_B is a Maintenance View
    For this one I don't Find any Datasource
    For this Maintenance View, How to Extract the Data.
    2)
    For the 2nd Report also it consists Two Fields
    Table name : CSKSZ
    Field Name1: KOSTL (cost center)
    Table name : CSKSZ
    Field Name2: KLTXT (Description)
    CSKSZ is a Structure
    For this one I don't Find any Datasource
    For this Structure How to Extract the Data
    3)
    For the 3rd Report
    in this Report all Fields are belonging to a Table BSEG
    BSEG  is a Cluster Table
    For this one also I can't Find any Datasource,
    I find very Few Objects in the Datasource.
    For this One, How to Extract the Data.
    Please provide me step by step procedure.
    Thanks
    Priya

    Hi sachin,
    I don't get your point can you Explain me Briefly.
    I have two Fields for the 1st Report
    BUKRS
    BUTXT
    In the 2nd Report
    KOSTL
    KLTXT
    If I use  0COSTCENTER_TEXT   Data Source
    I will get KOSTL Field only
    what about KLTXT
    Thanks
    Priya

Maybe you are looking for

  • How to install oracle10g grid control on windows

    i want, how to install oracle10g R3 grid control on windows in my server ,i have 4 database ..oracle10g R2 ..is running...

  • HT4437 air play only audio not video way

    trying to play a movie i rented from my phone on the apple tv but i only get audio no pic y

  • Imovie to one step idvd transfer

    I used the easy imovie option to transfer 60 minutes of minidvd data to an external hard drive..it seems to play well..However when I then transferred the movie to one step idvd, the sound track did not transfer..or rather the track is garbled..Is th

  • Blue arrows on all adobe files

    I cannot open adobe files, have uninstalled and reinstalled.  all my adobe files now have 2 blue arrows on them This is the error message Adobe cannot open file because it is not a supported file or it has been damaged (for an example sent as an emai

  • 3B2 to InDesign Conversion

    I have a 3B2 document with me. I need to convert the 3B2 document to InDesign. Can someone help me out to convert the document or is there any tool available on the website?