Where is stored Current Period?

Hi all,
I have look for this data without success. The periods list is stored in the OFPR, but havent see any field wich defines the current one.
Thanks in advance,
Ibai Peñ

Hi Andrea,
In the OADM table could be equals, and could not be equals, depending on the period indicator, and some other fields.
I am not even trying to get current period with the DI. I want it directly from the DataBase, but looks like it is not stored anywhere. I suppose it is saved with some preferences in a encripted field or something like that, and thats why we arent able to find it.
It is good to ear that will be avaiable in 2005.
And I can´t read from the main manu, becouse it is for a 3rd party app, and it is not sure that SBO will be open.
Thanks for your time,
Ibai Peñ

Similar Messages

  • Transferring the additional hours to current period during retro run

    Hi Experts,
    We are have Pension contribution plan in 0169 where wage type 9XXX that takes in total hours from /229 via custom PCR. . Then the hours are multiplied by a constant stored in table T511K. The problem is that suppose we have created a record for hours in IT 2010 for some previous period during the current run and want to reflect that change with the a retro run. i.e 97XX should take in hours from /229 in the current period plus those additional hours give in some previous period and reflect the same in the current period. And this not happening.
    E.g. In for period 04 say, we want the hours also that have in given additionally for in period 02. We have checked tables V_51P6_B as well as V_51P6_C for 9XXX and it's OK.
    Are we missing something here?

    Like other deductions (other than taxes), retroactive changes to the deduction amount should be carried forward to the current pay through tables DDNTK and ARRRS, since you can't change the Net Pay Amount of the previous pay.
    For retroactive changes to Payments, such as hours recorded in IT2010, the payment calculation will usually happen in the retroactive pay, Staturory Deductions (such as Income Tax) will be calculated and the resulting change in net income will be carried forward to the current pay.
    If the current calculation does not meet your requirements, you probably need to create a few PCRs to work around the problem.
    If possible, any variation in the value of /229 should be carried forwart to the current pay (through Output and Input WTs) before function P0169.
    The alternative would be to create a series of PCRs before and after that function so that the retroactive pay would always use the original value of /229 (without changing it's value in RT) and that the current pay's value of /229 would be modified temporarily to reflect the retroactive changes (without changing it's value in RT).

  • Current Period in a query

    I need to now the current period in a query. I try using $[period] but only works on a form, not in a stand alone query or report. I am using SBO2005 SP01

    Hi Hector,
    when you write this query please keep in mind that the system behaviour has changed significantly in version 2007, where you can work with multiple open posting periods.
    There is a document in the Documentation Resource Centre descibing the new functionality:
    How to work with multiple open posting periods.
    All the best,
    Kerstin

  • Current period, Previous Period and Sum from starting to current period

    Dear Friends,
    I have a typical requirements to push the following 3 KF into a .CSV format from BW CUBE.
    1.Amount of Current period,
    2............Previous Period
    3............Sum from starting to current period
    Cube is stored at period level..
    Can anyone through me your views of doing, posibilities and prefered ways of the 2 approaches below
    a) Infospoke, Badi enhancements
    b) New cube to caliculate abouve things and then infospoke
    c) Query and useing RSCRM... tool to run the query to dump into .CSV
    Thanks for your valuable time.
    regards,
    hari

    Another possibility is taking a snapshot to a transactional ODS using the APD. This creates an outbound layer that you can then use Open Hub to push out.

  • How to determine current period start and end dates

    Hi All,
    If given previous period start date and end date, how to determine current period start date and end date?
    Suppose if given previous period start and end dates are 12/28/08 - 01/30/09, then current period start date and end date will be 01/30/09 - 02/27/09. (where 12 is the previous period, 28 is the day, 08 is the year......)
    Can you please suggest an FM to determine the current period dates?
    Thanks & Regards
    Gowthami

    >
    gowthami karunya wrote:
    > If given previous period start date and end date, how to determine current period start date and end date?
    > Suppose if given previous period start and end dates are 12/28/08 - 01/30/09, then current period start date and end date will be 01/30/09 - 02/27/09. (where 12 is the previous period, 28 is the day, 08 is the year......)
    Hello,
    I am assuming you have the Company Code with you & proposing this solution.
    TABLES: bkpf.
    PARAMETERS:
    p_bukrs TYPE bukrs.
    SELECT-OPTIONS:
    s_date FOR bkpf-budat.
    DATA :
    l_perio LIKE bkpf-monat,
    l_poper TYPE poper,
    l_year  LIKE bkpf-gjahr,
    l_spmon TYPE spmon,
    l_periv TYPE periv,
    l_date1 TYPE datum,
    l_date2 TYPE datum.
    CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
      EXPORTING
        companycodeid = p_bukrs
        posting_date  = s_date-high
      IMPORTING
        fiscal_year   = l_year
        fiscal_period = l_perio.
    CONCATENATE l_year l_perio INTO l_spmon.
    * Get the next period
    IF l_perio < 12.
      l_perio = l_perio + 1.
    ELSE.
      l_perio = '01'.
      l_year = l_year + 1.
    ENDIF.
    MOVE l_perio TO l_poper.
    SELECT SINGLE periv INTO l_periv
    FROM t001
    WHERE bukrs = p_bukrs.
    IF sy-subrc = 0.
      CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
        EXPORTING
          i_gjahr        = l_year
          i_periv        = l_periv
          i_poper        = l_poper
        IMPORTING
          e_date         = l_date1
        EXCEPTIONS
          input_false    = 1
          t009_notfound  = 2
          t009b_notfound = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
        EXPORTING
          i_gjahr        = l_year
          i_periv        = l_periv
          i_poper        = l_poper
        IMPORTING
          e_date         = l_date2
        EXCEPTIONS
          input_false    = 1
          t009_notfound  = 2
          t009b_notfound = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      WRITE: / l_date1, l_date2.
    ENDIF.

  • Current period/Year to Date Amount calculation

    Hi,
    I would like to create a query in Bex Query Designer.
    Requirements:
    If I enter current period and Fiscal year then the report should appear total of period 1 to current period.
    Example:
    Period: 4
    Year:  2008
    For Cost Elements in Controlling.
    The report should be like
    |Cost Elements   |   Amount of(P1P2P3+P4)|
    I can keep select variable as filter to enter current period, But how can I calculate the total amount from period 1 to current period.
    Any help would be appreciated.
    Thanks,
    Aparna.
    Edited by: Aparna Pyeddu on Jan 29, 2009 9:45 PM
    Edited by: Aparna Pyeddu on Jan 29, 2009 9:46 PM

    Hi,
    To get the required output do like this...
    1. Create a Customet Exit Variable on 0FISCPER. (Single, Mandotory, Uncheck Ready for InPut):'ZFY_CURR'
    2. Create a Customet Exit Variable on 0FISCPER. (Single, Mandotory, Uncheck Ready for InPut):'ZFY_CUR1'
    3.In Free Chars drag and Drop 0FISCPER and the restrict with Variable '0P_FPER'.
    4.Create New Selection in Columns and the Drag your Key figure and then Drag 0FISCPER and then restrict with (Select Value Range) []ZFY_CURR; ZFY_CUR1.
    5. Execute the report then you can get the desired output.
    The below Code is for From Period
    WHEN 'ZFY_CURR'.
    Data: ZSF(4) type C,
          ZSF1(3) type C,
          ZSFY(7) type C,
          ZSFH(7) type C.
          ZSF1 = '001'.
      LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = '0P_FPER'.
        IF sy-subrc = 0.
          CLEAR: l_s_range.
          ZSF = loc_var_range-LOW+0(4).
          ZSFH = loc_var_range-LOW.
          CONCATENATE ZSF ZSF1 INTO ZSFY.
          l_s_range-low = ZSFY.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
      ENDLOOP.
    The below Code is for To Period
    WHEN 'ZFY_CUR1'.
      LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = '0P_FPER'.
        IF sy-subrc = 0.
          CLEAR: l_s_range.
          ZSFH = loc_var_range-LOW.
          l_s_range-low = ZSFH.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
      ENDLOOP.
    Thanks
    Reddy
    Edited by: Surendra Reddy on Jan 31, 2009 2:46 PM

  • Variable - Default to current period but allow input fomr user??

    Hello All,
    This may be a simple question.... I am not sure....
    I'd like to have a variable for a report where the user can select the fiscal period.  Creating this variable is not a problem.  The problem is that I would like for the variable to default with the current period.
    The best solution is for the variable to be displayed with the current period as the default selection but give the user the ability to overwrite this default value on the variable selection screen.  Can this be created as a customer exit variable?  We have tried this but can't get the variable to prompt the user and give them the option to overwrite when it is customer exit.
    thanks
    rodney
    Edited by: Rodney on Feb 26, 2008 10:14 PM

    Hi Rodney,
    Yes, I think you can use a customer exit variable for this. However, you need to set the code to I_STEP = 1 when you set the date to sy-datum. What happens is that at I_STEP = 1, the default value pops up in the variable screen. Then, your user can opt to change this value or just use the default value. If your user wants to change the value in the selection screen, it automatically overwrites the default value.
    Hope this helps,
    Juice

  • Rolling Period (From current period going back 1 year)

    I have a question. I have to develop a Report where the requirement is 12 colums starting from current period going back 12 months this could go back a year also.
    The report should have 12 colums always.
    Rajiv

    Hi Rajiv,
    You can try to create a structure with your Period char (0FISCPER) in the selections. Add a variable to the first selection (not sure if there is a std var for returning the current period, else you can create a user entry var, or may be code on for yourself). In the remaining 12 selections, use the same variable to restrict 0FISCPER, but use variable offsets...going like -1, -2...-11 for the 12th column.
    You can also do restricted key figures, but if you create just a Period structure, you can reuse it in a numebr of reports...depends on your requirement.
    Hope this helps...

  • Get the Current Period

    Hi!
    I need to know from SDK the current period used in the company.
    I know that:
    In all SAP Business One releases up to 2005 A SP1 there is a 'current' period setting that indicates the period enabled for data entry and posting.
    Only one period can be set as the current period. Beginning with Release 2007 A, all periods will be enabled and the 'current' period setting will no longer be used. When the add-on attempts to read a value from the 'Company.CurrentPeriod', instead of the value period value, it will receive the numeric value '-1'.
    What alternative can I use?

    Hi All,
    So, B1 period is determined by automatically, based on posting date. But if you use several numbering series for the same document, you can set up different series for different posting periods using period indicator.
    Ex:
    year - 2009 Period Indicatior - 2009
    year - 2010 Period Indicatior - 2010
    Numbering series:
    for series in 2009 - Indicatior is set to 2009
    for series in 2010 - Indicatior is set to 2010
    If you open the A/R Invoice form, you will see series belongs to Period indicator 2010. if you change the posting date to 2009.12.01, you will see the series on the form belongs to Period indicator 2009.
    If we change the example
    Ex:
    year - 2009 Period Indicatior - 2009
    year - 2010 Period Indicatior - 2009
    Numbering series:
    for series in 2009 - Indicatior is set to 2009
    for series in 2010 - Indicatior is set to 2009
    IN this case on the form you can select each series (belongs to 2009 and 2010).
    This means: series displayed and selected automatically based on posting date and period indicator. (by this you can set up different numbering series by periods - Period indication of posting periods cas be change until the first booking!)
    SAP B1 is automatically set the numbering series of a document by posting date which is simiral to the following query (A/R Invoice object type = 13)
    select T1.* from ofpr T0  inner join NNM1 T1 on T0.Indicator  = T1.Indicator
    where convert(datetime,getdate(),112) between T0.F_RefDate and T0.T_RefDate  and T1.Locked  ='N'  and T1.ObjectCode = '13'
    Regards,
    J.

  • Changing the Current Period to last month

    Hello,
    I am trying to change the Current period to last month so I will be able to
    re-enter a material update document from 31.12.2006
    Can anyone tell me where do I change the Current posting period ?
    -Mark

    Hello Mark,
    You can open / Initialize previous period with MMPI transaction, however, using this T-code please go through <b>OSS note 487381</b>, the main contents as as follow:
    Before you start period closing with initialization, you must be aware of the consequences of period closing with initialization.This note describes the possible data inconsistencies that might occur if you carry out the initialization in a productive system.The resulting inconsistencies are not to be traced back to a system error but they are a result of the period closing program with initialization
    The initialization of the posting period to a previous or to any posting period may lead to the loss of the information of the inventory balances of the previous periods.The book value of the current posting period is taken as the basis also for values of the previous period in this case.
    If you want to continue working with this new posting period, in addition you should execute report Z_DEL_HIST_ENTRIES attached so that history entries greater or equal to the new posting period will be deleted.
    Hope this helps.
    Regards
    Arif Mansuri
    Reward if answer is helpful

  • P & L report for current period,YTD and previous YTD

    I am trying to create a P & L report with the columns for current period,YTD and previous YTD,  I have include the measures as the key of columns, which by using period or YTD we can retrieve the current period and YTD column, is there as easy way to get the previous YTD? although I can get it  by using evtim to het every month and calculate the previous YTD.

    resolved, just need to bring both time and measures in the columns

  • If current period is closed, use next period for posting...

    Hello Experts,
    I am currently developing a report that posts via F-02. Now, my functional said
    that if before posting, I need to check if the current period is open.If yes, then
    proceed posting. If not, then get the next period and use it for posting.
    For example, period 12 is closed, then I need to use period 13. Can you guys help
    me in the logic?
    Thanks and take care!

    Hi,
    Check with your FI consultant as which table to use to determine the posting period is closed or not. It is customizing table.
    Regards,
    Atish

  • Logic for carry forward of previous stock to current period stock.

    Hi Experts,
    Client is using already MC.9 for see the stock analysis report, however as per there requirement we are exploring BOM as well as fetching quantity from table level as well. in my report I am experiencing  difficulty to carry forward previous period closing stock quantity to current period stock quantiy, if there is no received for current period, however the same is happens in MC.9
    Could any one tell me what is the logic behind MC.9 which is do carry forward previous period closing  stock to current period stock quantity in report.
    As per the requirement I am using S031, S032,S033, however unable to get logic for carry forward the previous month stock quantity to current month.
    have a requirement of creating a report of showing material stock period wise for each plant in below mention format.
    Header 1
    Header 2
    Header 3
    Header 4
    LFGJA/LFMON
    ROH (MT)
    HALB (MT)
    FERT (MT)
    11.2013
    100.000
    121.000
    121.00
    12.2013
    50.000
    12.000
    123.00
    01.2014
    23.231
    .23.234
    45.342
    02.2014
    23.231
    34.094
    45.098
    03.2014
    34.098
    98.983
    00.000
    04.2014
    00.000
    69.093
    98.098
    05.2014
    00.000
    89.098
    00.000
    For Example Break up of ROH material plant wise in below mention format.
    LFGJA/LFMON
    WERKS
    MENGE (MT)
    11.2013
    P001
    30.000
    11.2013
    P002
    50.000
    11.2013
    P003
    20.00
    Thanks in advance,
    SKN

    Hi,
       The last period closing stock = current period opening stock. You may get the details from MBEWH and S032 tables. Refer the doc: Material Stock and Valuation History tables - how to read them
    Regards,
    AKPT

  • My old iphone 4 is showing the latest icloud backup as today, why is my new iphone showing the only backup is from 12/3/2013 ...where is my current backup ?

    Please help ! Where is my current icloud backup ?? It shows backed up on my old iphone but not on my new one. I updated my new iphone and it updated with an icloud backup from 12/3/2013 which restored a bunch of  things that are no longer valid.  How can i get the correct backup restored to my new iphone ??

    Hello Shelly700,
    The following article provides details and troubleshooting steps that can help get your iPhone to reappear in iTunes.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
    Allen

  • 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])

Maybe you are looking for

  • Pdf files on iPad

    Hi all, I wonder if there's a way to import pdf files into an iPad and then opened it. The reason I am asking this is that I have thousands of pdf files (books, articles, etc.) which I would like to read on a portable device like the iPad. But as I b

  • I need equivalent FB setting for kernel26archck

    What is the equivalent to vga=773 in kernel26archck. Below is my current grub menu.lst: # Config file for GRUB - The GNU GRand Unified Bootloader # /boot/grub/menu.lst # DEVICE NAME CONVERSIONS # Linux Grub # /dev/fd0 (fd0) # /dev/hda (hd0) # /dev/hd

  • Adf: resultset or result in af:table

    JSF DatatTable bind to a javax.servlet.jsp.jstl.sql.Result object works fine, but an ADF Table bind to javax.servlet.jsp.jstl.sql.Result or java.sql.ResultSet raise an exception like this javax.faces.el.PropertyNotFoundException: Error finding proper

  • Reports and CSV show 999,99 instead 999.99

    Hello there, This little big issue is taking me a lot of my time.. Please help me to find out the way to convert 99.999,99 to 99,999.99. Just in case: formating the column whith 999G999G999G999G990D00 do not fix anything

  • Metadata from original video

    Is it possible to retain the metadata from the original video somehow after going through and using Premier Pro CS5 to blur out pieces of videos?  I need to be able to retain the metadata for defense attorneys to be able to see what the "original" wa