Date range From Fiscal period range

Hi All,
How can we get the date range for a given fiscal period range?
please help.
Thanks
Gaurav Mittal

hi
good
pls check this code
declare a range like
ranges: r_date for s021-spmon. (declare as per your data type for the date)
in initialization event write.
r_date-low = '012007'. (enter the required lower range of value)
r_date-sign = 'I'.
r_date-option = 'BT'.
r_date-high = '122007'.
append r_date.
now use the r_date field in the program code.
thanks
mrutyun^

Similar Messages

  • Want to make fiscal quarters from fiscal periods in Info design tools

    Dear Gurus:
    I have new reporting requirement for fiscal quarters, currently I have fiscal periods and fiscal years in my business layers. I have two questions from you guys.
    1) Which is the better way to achieve this. Should I try to make it in IDT or Should we make it in BW and then load data again. Also if there is an impact on performance choosing any of the options.
    2) If I made it IDT how should I achieve this, considering I need prompt on fiscal quarters dimension.
    Best Regards:
    Jawad K. Sheikh

    Hi
    If BW as back-end of your dashboard, as per the best practice, pushed down to database level all the predefined time periods and include at the Bex Query level.
    So in the BO dash board we can just drag and drop. So it’s will improve the performance also.
    Please find the below like’s  Universe Optimization Techniques, pushed down all the calculation to database level
    http://scn.sap.com/community/semantic-layer/blog/2014/05/14/universe-optimization-techniques

  • Variable to load data upto a fiscal period

    Hi gurus ,
       i had created a customer exit variable Such that it gives the data from first month of the fiscal year to the period which is feed by the user in  a user entry variable 0P_FPER.
    our fiscal year start from october  (2009001).
    let user feed  the value in  a user entry variable 0P_FPER = 2009003  (dec 2008).
    so According to my code it should pickup the data from 2009001 to  2009003.
    but my code is giving data from 2009001 to current month (2009004).
    i am not good at Abap, so there may be some error in my code.
    plz check my  code  shown below, and plz throw some light.
    WHEN 'ZCE_YTFP'.
            clear l_p_range_SS1.
        DATA:  V_YEAR9(4) TYPE n,
               v_fsyear10(7) TYPE n,
               V_fsyear11(7) TYPE n.
      CLEAR loc_var_range .
      IF i_step = 2.
      LOOP AT i_t_var_range INTO loc_var_range.
        IF loc_var_range-vnam = '0P_FPER'.
    V_fsyear11 = loc_var_range-low.
    V_YEAR9 = loc_var_range-low+0(4).
    Concatenate V_YEAR9 '001' into v_fsyear10.
    l_p_range_SS1-Low =  v_fsyear10.
    l_p_range_SS1-high = V_fsyear11 .
    l_p_range_SS1-Sign = 'I'.
    l_p_range_SS1-Opt = 'BT'.
    APPEND l_p_range_SS1 TO e_t_range.
    endif.
    endloop.
    Endif.
    Thanks.

    Hi Surabh,
    try rhis
    WHEN  u2018ZCE_YTFP' '.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO loc_var_range  WHERE VNAM = '0P_FPER'.
           V_fsyear11 = loc_var_range-low.
            CONCATENATE V_YEAR9 -LOW+0(4) '001' INTO  v_fsyear10-LOW.
                         l_p_range_SS1-Low = v_fsyear10-LOW.
                         l_p_range_SS1-high = V_fsyear11-SIGN .
                         l_p_range_SS1-Opt = 'BT'.
    APPEND l_p_range_SS1 TO e_t_range.
    endif.
    Rgds
    SVU123
    Edited by: svu123 on Jan 24, 2009 9:13 PM
    Edited by: svu123 on Jan 24, 2009 9:16 PM

  • How to get starting date and ending date of the given Fiscal Period

    Hi Friends,
    In my Selection screen parameter, I've Fiscal year and Period , I want to get the starting date and ending date with the Fiscal period.
    How to get and throught which FM.
    Pls advise.
    thanks&regards
    Sankar.

    Hello Sankar,
    Check the FM PERIOD_DAY_DETERMINE.
      DATA :
             l_periv     TYPE periv,
             l_blart     TYPE blart,
             l_fday     TYPE bkpf-budat,      "First day in period
             l_lday     TYPE bkpf-budat.      "Last day in period
    * Fetch the fiscal year variant from T001
      SELECT  SINGLE periv  INTO TABLE l_periv
      FROM t001
      WHERE bukrs EQ p_bukrs.
    * Get first day/last day
          CALL FUNCTION 'PERIOD_DAY_DETERMINE'
            EXPORTING
              i_gjahr              = p_gjahr
              i_monat              = p_monat
              i_periv              = l_periv
            IMPORTING
              e_fday               = l_fday
              e_lday               = l_lday
            EXCEPTIONS
              error_period         = 1
              error_period_version = 2
              firstday_not_defined = 3
              period_not_defined   = 4
              year_invalid         = 5
              OTHERS               = 6.
    Hope this helps.
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 9, 2009 2:08 PM

  • How to get Code Combination Range (Account Range From - Account Range To)

    Hi,
    I have a requirement that I need to get the range of code of combinations based on the parameter (Account Range From & Account Range To) in the query. Please could anyone help how to fetch this value based on the parameter.
    Account Range From (7 Segments)
    XXX
    AAAA
    BBBB
    CCC
    000
    YYY
    ZZZZ
    Account Range To (7 Segments)
    XXX
    AAAA
    BBBB
    CCC
    000
    YYY
    ZZZZ
    These is the example of value which I will be getting on the Accounting Range From and Accounting Range. Based on this account range, I need to pull records from the GL_CODE_COMBINATIONS table. Any help on this plz?
    Thanks,
    Geno

    I would not use the code_combination_id. That code_combinaition_id is incremented by one for each new account, so unless you happened to create all your accounts in the right sequential order (not likely), then you cannot do a range of FROM code id a TO code id b. Do an SQL against the code combinations table and sort on the segments columns and take a look at the code combination id on each row, and I think you will see that they jump around quite a bit. I think you can only rely on using the segment columns values for doing an account range.
    John Dickey

  • 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.

  • Error adding Sales order via DI-SERVER Posting Date deviates from the defin

    When adding a sales order via the DI-API we have started receiving the following error:
    Error: Posting Date deviates from the defined range. To complete the operation, define the posting period to match the entered Posting Date. [(----) 131-204]
    I have verified that the posting dates within the document exist within the defined posting periods in SAP and that the posting period in question is unlocked.
    I can add the document within the SAP B1 interface without any issues.
    This process and code was also working up until the start of the new financial year.  There have been no changes to the code or the financial periods in the new year.
    There is a  peculiarity with the financial periods for this company in that they have moved from calendar periods in the past to financial periods.  Has anyone come accross any issues with posting dates and the DI SERVER API?
    The dates in the XML document that we are trying to add are shown below.
    <Documents>
    <row>
    <DocDate>20100310</DocDate>
    <DocDueDate>20100310</DocDueDate>
    <CardCode>C9999</CardCode>
    The following are the financial period values from OFPR
    Posting Date From/To:       06.03.10     02.04.10
    Due Date From/To:            01.01.10     01.04.11
    Document Date From/To:  01.01.10     02.04.10
    Start of Fiscal Year:         01.01.10
    Regards,
    Sean

    Hi Gordon,
    Our customer has moved their financial year end from 1 April / 31 March using calendar months to a 4/4/5 financial period model with a year start date from Jan.
    This was necessary after the company was purchased by a US firm that wanted to align the reporting calendars.
    Under the 4/4/5 model their financial year start date does not start 1st January. Hence the 3/1/2010 being the first date of the January period.
    No matter how the periods are setup the financial year start date in SAP Business One cannot be anything other than the 1st of the month.
    All posting within SAP appears to be working fine, it is only via the DI SERVER requests that we seem to be having problems.
    However, we suspect that the issue may be unrelated to the posting periods due to some other testing performed.
    Regards,
    Sean

  • Customer  exit to get the result in between two fiscal periods

    Hi Guys,
    I have a requirement  to write customer exit, in which i have to get the result for a range of fiscal periods,
    that is in Between   fiscal period1 and fiscal period3,
    and i am getting this Fiscal period from other variable called version in which it consists of combination of fiscalperiod and text
    and now i have filtered the fiscal period and stored in Final_val ( this is an interger), but  how can i use dynamically this Final_val to get the results in between Final_val1 and Final_val3 ( that means if the Final_val is 2008010 then i have to get the results in between 2008011 and 2009001).
    Please provide me the solution, with the possible piece of code

    Hi Diogo,
    Here is the code
    WHEN 'ZC_PVR'.
        DATA: FIN_YEAR(4) TYPE C,
              FIN_DATE(3) TYPE C,
              FIN_VAL(7) TYPE C.
        IF I_STEP = 2.
          READ TABLE I_T_VAR_RANGE INTO LT_VAR_RANGE WITH KEY VNAM = 'ZC_VCS'.
          IF SY-SUBRC EQ 0.
            CONCATENATE '20' LT_VAR_RANGE-LOW+2(2) INTO FIN_YEAR.
            CONCATENATE '0' LT_VAR_RANGE-LOW+4(2) INTO FIN_DATE.
            CONCATENATE FIN_YEAR FIN_DATE INTO FIN_VAL.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW =  FIN_VAL.
            L_S_RANGE-HIGH =  ''.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
          ENDIF.
        ENDIF.
    which i am using for Filter the fiscal period, after this when i tried to restrict on this "ZC_PVR" vairable and  set the offset like
    zc_pvr 1 to zc-pvr3 under value of ranges, but i am facing an error saying the " variable may be deleted or used incorreclty",
    could u plz suggest

  • Using variable 0P_FPER to calculate YTD Fiscal period

    Could someone please explain the procedure for creating a variable which will use the value entered from the variable 0P_FPER - Period/Fiscal Year (Single Value Entry, Required) to calculate the YTD Fiscal Period.
    Regards,
    Craig Stephen

    You have to create a Customer Exit variable for this :
    <b>Customer Exit - > YTD from Fiscal Period</b>
    <b>Let ZVCCYTDX be the tech name of Customer Exit Variable & 0P_FPER  be the user entered variable for Fiscal Year Period.</b>
    User Exit: ZVCCYTDX
    Input: 0P_FPER
    Output: Jan of Accident Year Range
    Logic Description:
    WHEN 'ZVCCYTDX'.
    if i_step = 2.
    clear loc_var_range.
    loop at i_t_var_range into loc_var_range WHERE vnam = '0P_FPER '.
    if sy-subrc = 0.
    curr_year = loc_var_range-low(4).
    concatenate curr_year '001' into jan_accidentyear.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = jan_accidentyear.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    append l_s_range to e_t_range.
    exit.
    **endif.
    endloop.
    endif.
    **Coding is not required if you can enhance the Datatarget with Fiscal Year and Posting Period.

  • Offset for Fiscal Period

    Hi All,
    I have 2 columns in my report. When variable window pops-up, user enters value for 2 mandatory field. (From Fiscal Period and To Fiscal Period). Once i get the value of range, i generate one column based on business logic. Now, in the second column I want to show the results for the same period but for previous yr.
    So, if user entry is 001.2007 to 002.2007, first column would display result for 001.2007 to 002.2007, while second column should display result for 001.2006 to 002.2006. I have 2 saperate variables for user entry and i have restricted my KF based on "Value Range" & "Between".
    When I m trying to give offset of '-12' for second KF, it accepts the offset for both the variable in the range, but it displays the result for 001.2006 to 002.2007. So, basically it manipluates offset for just one variable.
    Can anybody tell me what should i do??

    Hi Danny,
    In the mentioned link, read Selecting value range limits
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm
    This is what I was thinking of...

  • Report to forecast based on fiscal period

    Has anyone done any financial reports which display data based on fiscal periods? The ProjectData service doesn't expose fiscal period (neither does the REST API under _api/ProjectServer). I saw a previous post (http://social.msdn.microsoft.com/Forums/en-US/7999cdf1-16fd-4efd-b7de-964bfeceb8f6/utilization-reports-by-fiscal-period?forum=projectserver2010general)
    that said to use the BI Center in PWA.
    In the case of Project Online I think what it means is that I need to use the Time entity from Timesheet actuals. Is this correct?
    Thanks,
    Roland

    Hi Roland,
    Indeed I couldn't find any fiscal year in the
    project odata references. Maybe other folks on the forum could give you a different answer. But if it turns to be true, you'll either have to deal with the time dimension, or to extract the raw data by day
    then do a transformation with Excel formula, code, VBA...
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, MCP |

  • Data column (for posting period) converted to COMPARISON COLUMN

    Hi all,
    I use 'posting period'(derived from fiscal period/year) in the data column and assigned CHAR-posting period to a variable (the value is 1.2.3....12) in the planning level.
    When I execute my layout, I got an error message: Data column 2 will be converted into a comparison column.
    Diagnosis:
    You have entered variable ZFIU004 in data column 2 and provided it with an offset. This results in values arising for variable ZFIU004, which are no longer within the selection, which was defined for the variable.
    Can someone please advise me?

    Hi,
    What is the selection maintained for posting period on the level.
    thanks

  • Fiscal Period Definition

    Is there a way to use the 13 months setting for a fiscal year, but have the periods defined as 4-3-3-3, instead of 4 for all?

    Tom,
    It is more manual work, but you could define a 13 month model, and the manually edit the end dates of each Fiscal Period, as necessary, to match with your period definition.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • How to change internal number range into external number range

    Hi All,
    There is a number range in the system which was assigned internally by mistake earlier. Now, I want to change the internally assigned number range to external number range.
    Can anyone please let me know, the procedure to change used number range from internal number range to external number range and from external number range to internal number range.
    Quick reply will be appreciated & points will be assigned.
    Thanks & Regards,

    hi Mehak,
    you can try to simply change the range from ext to int (and vica versa). If that does not wrok, than you can delete the range and recreate it with proper settings. But you have to take into account that if you have a range as external from 1 to 10 and for example numbers 2 and 5 are taken already than you recreate the range 1..10 as internal, than you could have some problems. Probably best is in this case to recreate with other interval.
    hope this helps
    ec

  • Offset on Fiscal Period

    Hi
    I am trying to compare Prior Year vs Current year revenues for a particular period. My input parameter is Fiscal period.
    I have created two Restricted key figures.
    First one is Revenue key figure restricted by Fiscal period. (User input period)
    Second one is Revenue key figure restricted by Fiscal period with offset -12.
    But I am getting same results in both columns though Cube has data for two fiscal periods.
    For e.g. If user enter 007/2010 i need to see revenues for 007/2010 and 007/2009.
    But i am getting revenues for 007/2010 in both columns.
    Do I need to use Exit variables or will it work with Offset?
    Thank you
    Sree

    Hello Sree,
    I think you can easily get this by using structure for fiscal periods.
    Try to visualize the query designer structure as:
    Revenue
         Structure
               Fiscal period
               Fiscal period - 12
    This will give you the output in format
    Revenue
    2010   2009
    xxx      yyy
    Regards,
    Pratap Sone

Maybe you are looking for

  • Indesign CS6 won't install on Windows 7 64bit via GPO

    Good afternoon, I created a installation of Indesign CS6 with application manager enterprise 3 to deploy to computers via the active directory. It installs correctly without issue to Windows XP x86 machines however won't install to Windows 7 x64 mach

  • How to use Identifiers to route IDocs

    In XI we will receive XML files from many different parties and map them to ORDERS IDocs. This IDoc type demands that in order to convert external party numbers to SAP internal, the IDoc must be mapped correctly to a customer partner profile (the SND

  • Itunes update causing weird problem for apple tv streaming songs

    In itunes 10.5 when I choose apple tv as the external speaker and send songs through it plays the song and displays the cover of the album, title, song, name, and artist on the tv screen.  When I updated to 10.5.1 it does the same except that after t

  • Problem with an Applet

    import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.applet.*; public class TabbedPaneApplet extends Applet{      public TabbedPaneApplet(){         setLayout(new FlowLayout());              // cre

  • I have purhcased verizon unlocked iphone 4s it is not working in india

    Dear, I have purhcased an verizon iphone 4s with ios 6.0. Pleae anyone let me know that i can unlock to indian carrier or not. I heared that verizon is CDMA network and you can't convert to any other GSM networks. Kinldy reply.