Current fiscal year period in BEx

Hi,
I have a requirment. i have a BEx query, that query is a source of APD and data is store in direct DSO.
i need to run this query every month and load current fiscal yer period data into the DSO.
i need BEx variable to filter the data for current fiscal year period.
I have fiscal year period char. in query definaton
Please help me to get this.
Thanks.
Edited by: Pria Gupta on Nov 24, 2011 2:18 AM

Use variable 0F_CUFPE Current Period of Fiscal Year (Formula Variable)
Re: how to get default value fiscal year period in Variable
Regards,
Sushant

Similar Messages

  • Can we only year value from "0FISCPER" (Fiscal Year/Period) at BEx level

    Hi all,
    I have two time characteristics "0FISCYEAR" (Fiscal Year) and "0FISCPER" (Fiscal Year/Period). In DSO initially "0FISCPER" was there and later request came to add "0FISCYEAR". Now data in char. "0FISCPER" is since beginning (from 2000) and for char. "0FISCYEAR" is since 2010.
    User's requirement is to create a report which will display data Year wise.
    My issue is if i am using "0FISCYEAR" then user is not able to see year instead it shows #. I dont want to do data reloading as this is GL data and hold huge no. of records in it.
    So my concern is : Is there any way to use only year value from "0FISCPER" (Fiscal Year/Period) at BEx level? Is there any setting which I can apply and get the same value of Year as I can see from "0FISCYEAR". Please assist me on this.
    Thanks,
    Arvind

    Hi Arvind,
    Your requirement can be realised through virtual characteristics.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b04be008-86cc-2c10-4bad-e517ea3f4c80?QuickLink=index&…
    however, I would still suggest to reload the data. you will only need to reload years before 2010 and you can do this in phases.
    Hope this helps.
    -Swati.

  • How to get last 35th fiscal year periof form current fiscal year period

    Hi,
    I want last 35th moths fiscal yesr periof from current fiscal yesr periog.
    E.g. current month FISPER - 2010011 so required FISPER is 2010011 - 35 = 2007009.
    Please help if any one know about it.
    Marks will be provided.

    Hi,
    Drag Fiscal year/period characteristic in the query and restrict it .
    In the variables , you will find SAP delivered variable which willl give you current fiscal year/period.
    Create range on the using this variable and give offset of -35.
    For eg.
    the name of the variable is 0PF_CP,  then create range in the following way.
    Lower range will be 0PF_CP - 35
    and higher limit will be 0PF_CP.
    So the range would be 0PF_CP-35 : 0PF_CP.
    This will give you the last 35 fiscal year/period.
    - Jaimin

  • Current Fiscal year/Period (0FISCPER)

    Hello
    I am using 0FISCPER in a stk query. In that I want to restrict this Char. by Current Fiscal year/Period. But I cant find ant SAP exit variable for this. How to restrict the query by Current Fiscal year/Period??????
    Pls help. urgent.

    You can create a variable with customer exit and use this in your query for your purpose.
    to get the current FISCPER you can use RSARCH_DATE_CONVERT Function Module in Customer Exit.
    based on your system date this FM will calculate current FISCPER value

  • 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

  • Need to Display Data for Cummulated to Current Day of Current Fiscal Year

    We use fiscal variant V3 (April-March).  My need is to display data automatically from first of fiscal period (April 1 2006) to today.
    I tried using 0CYTCD on Calendar Day but this works only for the current calendar year that the system is in  i.e 2007.
    Is there a standard variable I can use on 0CALDAY so I always get data from day one of current fiscal year/period to today? e.g. April 1, 2006 to January 3, 2007
    If not, can someone please help with the exact customer exit code that I would need to write in CMOD in BW?
    Thanks a ton!

    I thought of using 0FYTCD variable, but I cannot find it in the business content.
    Has anyone used 0FYTCD (Fiscal year to current day) in BW 3.1 SP25?
    Again, I am looking for a variable that would get me the beginning of fiscal year to today.
    Thanks.

  • Current month and previous months of fiscal year period data

    Hi All,
    My requirement is end user will enter month ie (fiscal year period ) and in report my requiremnt is to show data in two columns 1.Current month data  and
    2.April till date.
    Please let me know how to do this and please send the coding to be done in CMOS.
    Regards

    Hi,
    In your query, you should have following object :
    in filters:
    fiscal period object, with an user entry variable on it (UE_MONTH)
    in rows/ratios:
    Current month column, with your KF and a restriction on 0calmonth2 with an customer exit variable on it (ie: CE_VAR1)
    same for April column. (CE_VAR2)
    in your customer exit, CMOD, step 2, add these two cases :
    WHEN 'CE_VAR1'.
    READ TABLE i_t_var_range WITH KEY vnam = 'UE_MONTH' INTO
                       intern_range.
    CONCATENATE intern_range-low(6) sy-datum+4(2) INTO l_s_range-low.
    l_s_range-sign   = 'I'.
    l_s_range-opt    = 'EQ'.
    APPEND l_s_range TO e_t_range.
    Same for April, add a new case and just replace sy-datum+4(2) by '04'.
    Hope it helps,

  • Formula to calculate two fiscal year/period difference for non null quantit

    We'd like to have a query result like the following:
    Person -- Jan_2007 -- Feb_2007 -- Mar_2007  --  No. of Months
    Tom --- 21 --- 54 --- 10 --- 2
    John --- 0 ---  3 --- 15 --- 1  
    In the above query, the row is sales persons, the 1st three columns list the sales quantity by each sales person restricted by fiscal year/period and we would like to create 4th column "No. of Months" to calculate (will use formula) the month span (difference) for each sales person from his last sale activity (the last month he performed sales) and the 1st sale activity (the first month he performed sales) as listed in the above query result, e.g.,  Tom performed his first sales (sales quantity: 21) in the month of January of year 2007, and he performed his last sales (sales quantity of 10) in the month of March, 2007, then the "No. of Months" column value for Tom is 2.  The calculation formula will be performed based on the last quantity value (> 0) to trace it's corresponding column fiscal year/period value (max of the fiscal year/period value with quantity value >0) and on the 1st quantity value (>0) to trace it's corresonding column fiscal year/period value (min of the fiscal year/period value with quantity value >0) and then do the subtraction between the max of the fiscal year/period value and the min one. 
    Would be appreciated if BEx experts here give the detailed steps on how to build up this formula to calculate the number of month difference and we will give you reward points!
    Edited by: Kevin Smith on Mar 18, 2008 1:47 PM

    hi Danny,
    I only gave an example of 3 columns, but actually, yes, the report can have more than 12 months, e.g. from Jan_1999, Feb_1999, ..., Mar_2011, Apr_2011.
    In our simple example of 3 columns for the three consecutive months, if John had (3)(0)(15), then the No. of Months is 2, or the last month value he performed sales and 1st month he performed sales.
    You said macro in Excel sheet?  Not sure if macro will work on web since we will eventually run the reports on web browser, therefore we still prefer using Formula.
    Any idea/solution?
    Thanks!

  • Error while entering the Fiscal Year/Period Variable

    I keep getting the following error message when I try to input or select the Variable on the report that has been executed on the Portal. Everything is fine when done through Bex.
    <b> Please enter value in permitted format for variable Fiscal Year/Period (Selection Options, Optional).
    Entry needs template  ___/____
    For characteristic , enter value in a permitted format</b>
    Would anybody have any clue as to why?? It does have the Fiscal year Variant.
    Thanks

    This is fxed in BI JAVA SPS 12 Patch 2. Not sure whether there is any OSS notes for earlier SPS.

  • I would like to display current fiscal year always on variable screen

    Hi
    I have requirement in which I would like to display the current fiscal year on variable screen in BI Report.
    we have a standard variable however the sap exit to display the current fiscal year is not shown...
    Can any one tell me, how to proceed in this case.
    Thanks
    Chetan

    Hello,
    For I-step = 1, use the function module DATE_TO_PERIOD_CONVERT.
    here for IMPORT use i_date = sy-datum and i_periv = ur fiscal variant.
    The output is e_buper contains fiscal period and e_gjhar contains fiscal year.
    The use concatenate to join fiscal year and fiscal period to the variable low value.
    Regards,
    Shashank

  • Asset write off in the current fiscal year.

    Hi Experts,
    I want to write off an asset in next 4 periods of the current fiscal year 2007. For example:
    Asset 11000
    APC value: 10000
    APC Date: 01.01.2005
    The useful life will end in fiscal year 2008.
    The book value left at the begining of the current fiscal year 2007 Rs. 4000.00
    In the current fiscal year this asset has already been depreciated for previuos 3 periods.
    Now Business wants to write off ( fully depreciated ) this asset in next 4 periods equally and then if the book value and tax value is nil, they want to scap the asset.
    Now can you please tell me how to make this happened. Its very urgent. If you need any more information, most welcome.
    Rgds,
    BABA

    Hi,
        You would have to set the asset to manual depreciation(Depr.Key MANU)
    and generate a posting via ABMA for each of the periods.
    Kind regards

  • Up to the period : Fiscal year period Exit variable is not working

    Hi Experts,
    I have the following code to get the upto the Fiscal year period variable .It shoudl fetch the Values  From the starting of the Fiscal period like 2009001 whatever the  period user enters.But currnelty it is not woking.Please let me know am I doing any mistake in code.currently it is only fetching for the month user enters not up to the period.
    Prasad
    Variable Name : ZUPTOPER
    User Entry  Var : 0P_FPER
    WHEN 'ZUPTOPER'.
        IF i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
          WHERE vnam = '0P_FPER'.
            fper = loc_var_range-low.
            fper+4(3) = '001'.
            CLEAR l_s_range.
            l_s_range-low      = fper.
            l_s_range-high     = loc_var_range-low.
            l_s_range-sign     = 'I'.
            l_s_range-opt      = 'BT'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.

    Hi Prasad,
    This would be happening if you have put the user entry variable in the global filter of your query.
    As a result the complete data set is restrcted to get the data only for one month.
    Please use the variable for user entry month in a selection and not globally.
    -Vikram

  • ABAP routine for DTP fiscal year/period filter

    Hi All,
    Delta loads are which not possible for when the transformation source is an InfoSet.  To limit the data in these loads, currently a filter is set in the DTPs on fiscal year/period so only load the current month and 2 prior months are loaded.  This filter has to be updated each month for each of the DTPs manually.  To eliminate this monthly task a dynamic filter (routine) needs should be used rather than a static filter. Can anybody help me in providing the logic
    Regards
    Siri

    data: l_idx like sy-tabix.
    read table l_t_range with key
         fieldname = give field name .
         Data : Year(4) type n,
                   period1(2) type n.
                   period2(2)type n.
    Currper = sy-datum+4(2) .
    period1 = currper-1 .
    period2 = currper-2.
    year = sy-datum+0(4).
    concatenate  year currper to P1.
    concatenate  year period1 to P2. // define P1 , P2 , P3 as 0fiscper .
    concatenate  year period2 to P3.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    l_t_range-low =  P3.
    l_t_range-high=  P1.

  • Text variable for Fiscal year/period

    Hi gurus,
    We are on BI 7.0 (PL 15). In G/L i am using the standard 0FISCPER text variable 0T_FPERF in the columns, which should e.g. produce the text "04.2008".
    However instead it displays "4  .0800". Adding Fiscal year/period 0FISCPER to drilldown shows a correct format in the rows "APR.2008", so the problem seems to be only with the text variables.
    I have checked on a reference 7.0 system where the same variable is working fine, so i assume that some fix must be available. Any hints as to what should be performed to correct this display error?
    Points will be rewarded.
    BR
    Morten

    Hello Jamspam,
    I had a similiar problem with indicators in BEX. I had an numerical indicator that displays me value in a very weird way.
    My solution was to upgrade my frontend, with SAP Business Explorer patch.
    Have you got the latest BEX patch (or others) on your frontend? No guarantees that will solve your case, but for me it worked
    Regards,
    Bruno

  • Custome variable exit for fiscal year/period

    Hello BW Gurus,
    Q1[1,2,3] Q2[4,5,6] Q3[7,8,9] Q4[10,11,12] quarterly periods
    I have a custom variable exit as shown for fiscal year period
           IF LOC_VAR_RANGE-LOW+4(3) =< '003'.
              L_S_RANGE-LOW+4(3) = '001'.
           ELSEIF LOC_VAR_RANGE-LOW+4(3) > '003' AND
                                              LOC_VAR_RANGE-LOW+4(3) =<'006'.
              L_S_RANGE-LOW+4(3) = '004'.
           ELSEIF LOC_VAR_RANGE-LOW+4(3) > '006' AND
                                                LOC_VAR_RANGE-LOW+4(3) =< '009'.
              L_S_RANGE-LOW+4(3) = '007'.
           ELSE.
              L_S_RANGE-LOW+4(3) = '010'.
           ENDIF.
    Now this works fine to give me the Current Quarter ....say if user puts 005/2007 i get the data Current quarter as [4+ 5] i.e. April and MAy data. Now for <b>Previous Period</b> I gave an offset as -3 to -1 inorder to get data for Q1[123] but the requirement is changed and I want the same time period i.e. [1+2] and not the entire quarter since the Current Quarter calculates only for 4 and 5.
    I hope u are getting my point....please give your suggestions will reciprocate with lots of points

    Hi gaurav,
    Basically If I am selecting period 005 I am getting the data for 4 and 5 as Current Quarter i.e. April is the starting period of that Q2.
    Similarly the previous Quarter should also give me data for period 1 and period 2.
    Right now the offset I gave is -3 to -1 on my custom variable so i am getting data for the entire previous quarter which is Q1[1,2,3] but in reality i just want data for period 1and period 2.
    Can you please help me in this
    Appreciate your concern
    Thanks

Maybe you are looking for

  • ORA-07445: exception encountered: core dump [kdkbin()+223] [SIGSEGV]

    Dear all: I found many ORA-07445 in the alert_log: ORA-07445: exception encountered: core dump [kdkbin()+223] [SIGSEGV] [Address not mapped to object] [0x2A96975000] [] [] and I've follow the "Note 153788.1" to find the [ID 1073171.1] fit to me, and

  • Netweaver developer studio - Deployment exception

    Hi All, I am getting the Deployment exception error when try to deploy ear file to WAS. Error details at the bottom of this message. I did the changes mentioned at the following link and no success. deploy new archive n run Can anyone help Settings S

  • 3G in a 4G Land

    I am in an area that supposedly has 4G LTE service.  The best I get is 3G fluctuating with 1X.  I went to the local Verizon store recently in which they switched out the SIM card in the Jetpack.  They assured me I would now be getting 4G service.  My

  • Please help with simple esle code

    Hi all Please can someone tell what I am doing Wrong with tis code. I just can not see it Please Help Me Craig void ShippAddressjCheckBox_actionPerformed(ActionEvent e) { if (ShippAddressjCheckBox.setSelected(true )); CopyAddress1(); else (ShippAddre

  • Font Capture: Illustrator.exe - エントリ ポイントが見つかりません

    起動時にメッセージが出て起動しなくなりました. [エラーメッセージ] Font Capture: Illustrator.exe - エントリ ポイントが見つかりません プロシージャ エントリ ポイント ?DrawImage@SurfaceInterface@drawbot@dvaui@@QEAAXAEBUImageInterface@23@AEBV?$PointT@M@geom @dvacore@@M@Z がダイナミック リンク ライブラリ dvaui.dll から見つかりませんでした. OK