Fiscal year and posting period

Hai friends,
I have a requirement like this,
when I choose say 02/2008(posting period/fiscal year or posting period and fiscal year) in the Variable.  I also get data for the last twelve months….so my report would have
02/2008,01/2008 ,12/2007…………………………………….03/2007.
This variable should default to current posting period/fiscal year. So when somebody logs in he sees the current month and last twelve months.He can then change it to whatever he wants.
The way I see it is that I have to write a customer exit and create a variable in which in “to” we will have current fiscal year/period and in “from” will have “Current fiscal year/period-12”.
How to do this.
Any help will be rewarded.
Thanks in advance.

Hi,
Your approach is right.
If you want the values to default and allow the users to change it, you should put the code under STEP I.
WHEN 'variable'.
IF I_STEP = 1.
REFRESH e_t_range.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
l_s_range-low =  'Current Value - 11 periods'
l_s_range-high = 'Current Value'
APPEND l_s_range TO e_t_range.
Mathew.

Similar Messages

  • Function module to get posting date from posting year and posting period

    Hi all,
    I need a function module which will return posting date when posting period and fiscal year is passed to it..
    Thanks and regards,
    Puja.

    Hi puja
    try this FM
    this will solve ur problem
    G_POSTING_DATE_OF_PERIOD_GET
    G_POSTING_DATE_OF_YEAR_GET
    FCJ_CHECK_POSTING_DATE
    Cheers
    Snehi Chouhan

  • F.13 -fiscal year vs posting day

    hi,
    in the F.13 screen parameter ,there are parameters named fiscal year and posting day.
    1.what's the relation ship between them?
    2.are they both used as the selection critria?
    3. What will happen if we set the fiscal year with 2008 but the posting day in 2009? is it always no data pick up?
    Please through your lights
    thanks in advance

    Hi,
    If you mention the fiscal year as 2008 and posting date in 2009, the system will pick up the documents.
    It depends on your Fiscal year.
    For example, if your fiscal year is from April 1 2008 to March 31 2009, then if you mention the fiscal year as 2008 and posting date as 02.02.2009(any date upto march 31 2009) the system will pick up the documents(if matching).
    If the fiscal year is from Jan to Dec. and if you mention 2008 in the fiscal year and posting date as a date in 2009, you will not get any reports..
    Hope this is clear..
    Regards,
    Praisty
    Edited by: Praisty on Apr 1, 2009 12:42 PM

  • Return current period based off of current fiscal year and date

    Good Afternoon,
    Is there a way in the webi that I can create a dimension that always reflects the current Fiscal Month based of Fiscal year and date? I have a report that I am trying to show sales for a customer based off the current fiscal month. I would like this report when refreshed to be based off this fiscal month dimension instead of showing each fiscal month or changing it manually. What is the best way to do this?
    I have attached an image that shows current numbers by period (month) and then the YTD Totals. I would like to have my 'Period' column always reflect the current period and the Total column to reflect that months totals based off the period column. So for this period (3), instead of seeing 3 lines for each month I would just see the '3' and the total as $541,310.46, monthly as 412,502.09 and my YTD as 1,080,091.06.
    Any help is always appreciated!
    Thank you,
    Tiffany

    Hi,
    Create a variable
    FlagVar=If([Period]=Max([Period]) In Report;"Show";"Hide")
    And apply block filter of FlagVar=Show
    Are these coming TotalSales  MonthlyGoal YTDSales directly from universe? If they are calculated at report level then you might want to use NoFilter. like =NoFilter([YTDSales])

  • Function module to derive start and end dates from fiscal year and period.

    Hi,
    I want to know a function module to derive start and end dates from fiscal year and period.
    ie: If I have say fiscal year '2010' and period '07', then the start date of this period would be '01.10.2010'.
    Thanks.
    Moderator Messge: Basic Date questions are not allowed.
    Edited by: kishan P on Oct 18, 2010 4:45 PM

    Hi,
    This is one of my exit that display the calmonth (offset -12). Usefull when I have to retrieve in a KF a complete rolling year depending one calmonth.
    S_VMUCMN is my selection variable
    S_TXTCMN_M12 is my text variable calmonth-12
    S_TXTCMN_M0 is my text variable for selected calmonth.
    WHEN 'S_TXTCMN_M12'.
        IF i_step = '2'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'S_VMUCMN'.
            CLEAR l_s_range.
            " First day of the selected month
            CONCATENATE loc_var_range-low '01' INTO l_calday.
            CALL FUNCTION 'YFRBW_FUM_CAL_DATE_IN_INTERVAL'
              EXPORTING
                date      = l_calday
                months    = 12
                signum    = '-'
              IMPORTING
                calc_date = l_calday.
            l_s_range-low = l_calday+0(6).
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Thus, in KF header you have to put the two text variable to display the complete period.
    Hope it helps,

  • Current fiscal year and previous fiscal year restriction in Query  Customer

    Hi ,
    My requirment is disply current year qtrs and previous year qtrs in the report . User will not enter year , date , month or qtr . system should calucualte and disply curremt year qtrs and previous year qtrs .
    I have created ZFISCYEAR reference of a 0FISYEAR year . now I would like to write customer exit for Current fiscal year and previous fiscal year to display current year qtrs and previous year qtrs.
    Could you please provide customer exit code if you have or recomend if you know any other options.
    Appriciate you help
    Thanks

    hi try this
    take into account that I don't know th periv you use could be K4 or one defined by you so I have commented it.
    The coding here is for the current fiscal period for the previous year just to another l_year varibale and populate with offset for instance l_year = l_year - 1.
    so for current year
    WHEN 'CURRPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    for previous period
    WHEN 'PREVPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_year = l_year - 1.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    bye
    Boujema

  • GL balance carry forward special period 13 to new fiscal year and Rec acct

    Hi,
    would like to seek for your advice as below question/problem.
    a) User now is doing the year end closing. Normally the closing is up to the period 12 and for the purpose of track the adjustments made by the management and auditors user post to period 13 2008 from the pervious financial year. Our concern is when perform the GL Balance carry forward to new fiscal year which is 2009 does the system carry forward the GL adjustment figure from period 13 to the new fiscal year on top of that when we perform the GL balance carry forward to new fiscal year 2009 and later on find out there is an audit adjustment that need to done and user post in the period 13 fiscal year 2008 can the adjustment auto post to the new fiscal year?
    b) Can we change the Rec account in the vendor master as currently user need to change the vendor from difference Rec account which from joint venture to subsidiary account code? If involve the SPRO configuration how where should we configure? After we change the configuration does all the posting from one Rec account subsidiary will auto post to another Rec account Joint venture?
    Kindly advice.

    Hi,
    Thank you for the prompt reply.
    a)could you provide the path/T-code to view the  vendor master activity screen layout configuration field status for reconciliation account should be Optional.
    b)Beside,what the impact of change the reconciliation account from one to another? It is neccesary/must to do the balance sheet adjustment for change the reconcilation account?
    Can we post the balance through the manual JV (F.02)with the document type is ZD(Debit Note) to post the balance of old reconciliation account to the clearing account and then change of the reconciliation account to the new account then reverse the posting of the JV? By doing so what is the impact in the system? In this scenarion do we need to do the balance sheet adjustment?
    c) You mention balances from the old recon will not be posted to the new reconcilation account unless I do a balance sheet adjustment it is mean after I run the balance sheet adjustment the balance from the old reconcilation account will auto post to the new reconcilation? What other impact will effect the system?
    d) If the company never run the balance sheet adjustment before and due to the scenerion mention above they run the balance sheet adjustment for the first time what are the impact in the system for the company that only have one business area and also for the company which have more than one business area?
    e) What are the prerequisite step/configuation/setting need to be setup in order to run the balance sheet adjustment as the company perviously never run the balance sheet adjustment before? Kindly provide reference/document/guide.
    e) Change of reconcilation account does it related/impact to the account group of vendor master?
    Please help.

  • Reports with variables on fiscal year and want to display the current fiscal period values

    Hi
    i wan to display the fiscal periods in one of the reports when i give input for fiscal year, let say i will pass the fiscal year  as 2012 , then i need to display the revenue for 2012.01,2012.02,2012.03,....2012.12 and in another selection i need to restrict the revenue with the previous year.
    how can we achieve that.

    Hi,
    Refer this thread:Same thing has been discussed.
    http://scn.sap.com/thread/3365593
    Regards,
    AL

  • Posting date and posting periods

    HI Experts,
    I am practicing IDES for SD. While using T VL02N for post good Issue I got this error:
    <b>Posting only possible in periods 2006/12 and 2006/11 in company code 1000
    Message no. M7053
    Diagnosis
    The posting date entered is not within one of the permitted posting periods (current period/previous period).
    This can be due to one of two reasons:
    The correct current period has not been set in the system.
    For the system, the first of the entered periods is the current period. At the beginning of a new period, your systems administrator must change the current period in the material master record, using the function "Shift periods". This has not yet been done.
    You have entered a wrong date in the field "Posting date".
    Procedure
    Check the posting date and correct it if necessary. If your input is correct, inform your systems administrator that the "period shifting" (period-end closing) process has not yet been completed. Copied from M8022</b>
    I don;t think there is problem with my posting date. Can someone guide me on how solving this
    Thanks
    Yael

    Go to OMSY and check the periods are current peiods or not to ur comp code?
    If it is not the current period.
    close the posting period by going to MMPV.
    let us say comp code EG, YEAR-2006  PE-6
    so you have to close the posting periods for all months till this month.
    from comp code-EG
    To comp code- EG
    period-7
    fiscal year-2006
    repeat the same but with period-8(month) 9,10,11,12,
    and do the same for 2007 too till you get the current month in OMSY T-Code.
    you need to do close the period end of every month.
    thank you
    chaitanya

  • Asset value date must be in fiscal year of posting date

    Hi,
    When i try to post settlement of AuC in transaction AIBU with parameters:
    document date: previous fiscal year
    asset value date: previous fiscal year
    posting date: new fiscal year
    I know that:
    The asset value date is the value date for Asset Accounting. It can deviate from the posting and document date and be in posting periods already closed for Financial Accounting. <b>However, the posting year and asset value date year must be the same.</b> (SAP documentation).
    But maybe someone knows the way, how to post such a document??
    Regards
    Gosia

    Thanks for Your replay,
    But the pravious year is opened in FI-AA and closed in FI. We can't open previous year in FI.
    Do You know another way to solve it??
    regards
    gosia

  • Error in the source system for fiscal year variant K4 Period 00

    We are experiencing the following issue when loading data from module Flexible real estate RE-FX CASHFLOW CUBE OREFX_C06 Error in source system Fiscal year variant K4 is not defined for the period 00.

    Hi,
    You need to check in your source whether you have maintained Fiscal Yr Variant or not? Talk to you Functional person before you do the BI Extraction.
    In Table T009B
    You can check Fields
    MANDAT - client
    PERIV - Fiscal Year Variant
    BDATJ - Posting date YYYY
    BUMON - Posting date calendar month
    Check Table T009B and see if you fiscal variant is maintained for all periods of Years (as per error its not). maintain the same in Source system and transfer Global settings in BW to copy the same into BW system.
    @AK

  • Shortened Fiscal Year and its impact on BI back end and Bex reports

    Hi All,
    Our client is making some changes to the fiscal year period.
    Becuase of some business requirements, we will have to shortened the fiscal year.
    Can you please suggest - what are the watch points when we do this?
                                            - what will be the impact to BI back end and Bex reports?
    Thanks,
    Nisha

    Hello Nisha,
    Since the fiscal year (Infobjects - 0FISCYEAR and/ 0FISCPER3) is compounded with fiscal year variant, therefore maintaining the correct variant in BI will automatically take care of showing the data correctly.
    So there are two things to be maintained in BI:
    1) To see that the variant definition.
    2) If you need to display the text of the fiscal periods, then the correct texts.
    Let me know if you need more clarifications.
    Regards,
    Shweta
    Edited by: Shweta Kesarwani on Jan 8, 2010 11:10 AM

  • Document number range - per fiscal year  and continuous

    Hi Experts,
    In document number ranges,  generally the FI dox have number ranges which start afresh every year whereas MM and SD dox have continuous number ranges over the years.  It is possible to have continuous number range for FI dox also, but not many people use this.
    Why this differenciation between FI and SD/MM? Why SD/MM also do not have fiscal year based number ranges?
    Also, where do we define that doc range will be year specific or not? or is it SAP standard that FI will be year specific and SD/MM will be continuous?
    Thanks and Regards,
    Sadhana

    HI Sadhana
    You have the option to have document rumber ranges either on fiscal year based or upto 9999 year.
    This can be done in FBN1.
    for posting material documents also above situation applies.
    normally everybody prefer to have fiscal year based number range as FI documents are more in number.
    You can go through other forum members  solution also
    Regards
    A Chandrasekaran

  • BI Content Variable on 0Calday for first day of the fiscal year and first day of the current month

    Hi Friends,
    In one of my BEx queries, I need to restrict a key figure for 0Calday based on the first day of the current fiscal year. And another key figure for the first day of the current month. Instead of using Customer exit, I hope there is some SAP delivered standard variable for these filters.
    Please let me know if there is anything available for this. Your answers will be highly appreciated.
    Thanks & Regards,
    Ranjan

    Hi Ranjan,
    Please find below standard variables.
    Pls check below link for more.
    Standard Variables in BEX related to Time Charcteristics
    Characteristic
    Variable
    Description
    0CALDAY
    0CWD
    Current Workday (SAP Exit)
    0CALDAY
    0CYTCD
    Cumulated to Current Day (SAP Exit)
    0CALDAY
    0DAT
    Current Calendar Day (SAP Exit)
    0CALDAY
    0DAY_***
    Cumulation of all Values to Key Date (SAP-Exit)
    0CALDAY
    0LYTCLD
    Cumulated to Current Day of Previous Year
    0CALDAY
    0LYTCLD
    Previous Year Cumulated to Current Day (SAP Exit)
    0CALDAY
    0L_DATE
    Last Calendar Date
    0CALDAY
    0P_LY_R
    Comparative Period for Last Year
    0CALDAY
    0P_TY_R
    Period for Current Year up to Yesterday
    0CALDAY
    0S_KDATE
    Key Date Interval for Previous Year (SAP Exit)
    0CALDAY
    0S_KDAY
    Key Date Interval Current Year (SAP Exit)
    Best,
    SATYA.

  • What is the difference between Fiscal year variant, Fiscal year and Calyear

    hi,,
    What is the difference between
    1. Fiscal Year Variant (0FISCVARNT)
    2. Fiscal Year (0FISCYEAR)
    3. Calendar Year (0CALYEAR)
    In what scenarios they should be used. If we are getting 0FISCVARNT data from ODS. Can we change into other in cube at update rules level or some other level?
    How can we get factory calendar????
    Message was edited by:
            Avneet M

    Hi Gurus
    I was going through this thread and came up some more questions in my mind.
    1. Do we need to set Fiscal Year, Fiscal Varient settings once for all in BW ? ( The path is given in one of the thread above ) need to know if this is one time setting / rebuilding the tables. what will happen when we select and execute factory calender and Fiscal Varient and Rebuild tables in transfer global setting ? Is this one time we have to do for whole BW system?
    2. when we go to SCAL t-code what we need to do and what it do in the system ? I know its for Factory calender but just want to know what it does. It it also for one time during BW build phase ?
    3. How can we link Factory calender and Fiscal year? IS it thro Fiscal varient ?
    Pl help me to clear this doubt,thanks in advance.

Maybe you are looking for

  • Custom field not found in in the definition of EAI Integration Component

    Hi, I added a custom field to Account with integration tag "FirmsOfficesType". I got an error when I'm adding an account: Element with XML tag 'FirmsOfficesType' is not found in the definition of EAI Integration Component 'Account'(SBL-EAI-04127) Her

  • Genarate BADI Reports

    Hi All, Can any one pls explain on Genarating BADI Reports. Thanks. Moderator message - Welcome to SCN. But please make sure you ask a specific question and search both the forum and the internet for answers. Please also make sure you read Please rea

  • Terminal doesn't display prompt anymore

    Hi, I apologize if my question doesn't really fit in that forum's category or if my problem is really easy to solve ( I really am a newbie with Linux commands and messed up while learning ruby language...) After entering in the terminal the following

  • Where to load Vehicle Document Links

    Hi experts, we are extracting data for automotive using BI content. Enabled the DataSource 0AU_VM_BW_GD in order to load documents linked to a vehicle, we don't know where to load these data, because the DSO provided (0AUVMSO01) deals with Vehicle da

  • HELP! Connecting Elec. Guitar to Mac/GarageBand

    Trying to get my elec. guitar to work with GarageBand. Everything seems to be connected and set right, but no sound. I am using an M-Audio FireWire Solo interface. Have GB preferences set: Output to Built-In Output, Input set to FireWire Solo Analog