Current Financial Period

Hi,
I would like to be able to return the current financial period using the DI API. I can return all the periods using the example given in the help documentation but don't know how to identify the current one. Am I missing something obvious?
Manu thanks
Adrian North

Adrian,
If you're working with UI API 2005, then use
oCompany.CurrentPeriod()
to retrieve the currect period.
If you're working with UI API 2007, then you cannot retrieve the current period has it doesn't apply to SAP Business One 2007A.
{quote]
Topic
Current Period removed.
Description
In all SAP Business One versions up to 2005 A SP1, there is 'current period setting indicating the period enabled for data entry and posting. One period only can be set as current.
From 2006 A, version on all periods will be enabled. Current period setting will be no longer used.
Impact on Add-Ons
When add-on will try to read out value from Company.CurrentPeriod, instead of period value, it will receive numeric value '-1'.
Possible Solution
Adjust the add-on to not use CurrentPeriod property.
Object-Property/Method
Company.CurrentPeriod.
{quote}
Regards,
Vítor Vieira

Similar Messages

  • Get Current financial period

    Hi All,
    I have used following code to get current financial period:
    SAPbouiCOM.Company company = oApplication.Company;
                    int Period = company.CurrentPeriod;
                    SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService();
                    SAPbobsCOM.FinancePeriodParams diPeriodParams = (SAPbobsCOM.FinancePeriodParams)oCompanyService.GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiFinancePeriodParams);
                    diPeriodParams.AbsoluteEntry = Period;
                    SAPbobsCOM.FinancePeriod finPeriod = oCompanyService.GetFinancePeriod(diPeriodParams);
    But iam gettng error "No Matching records found".

    Hi Pravin,
    2007 onward the company.CurrentPeriod is not available . It always returns -1, so you are getting the above error.
    The other way to get the current period is through query :
    select code, name from ofpr where f_refdate <= getdate() and t_refdate >= getdate()
    Hope it helps.
    Regards

  • Adding periods in the current fiscal period

    Hi,
    I need to extend the current financial period which is actually 12 periods to 18 periods.Is it possible in SAP Business One?
    The financial period is already in use in transactions so i am not able to remove it.
    Thks
    Nisha

    Hi
    No you can't change the no. of periods
    Regards

  • Checking the Financial Period

    Hi Everybody,
    Every time im trying to add a journalEntry it fails because of the dates.
    The dates are from 2004 and the current financial period that im working with is 2004 as well but it still fails.
    The financial period is the whole year so i dont need to check the month.
    Anybody has ideas about the reason for the failure?
    Ronen Racz

    Hi Rasmus,
    the code is not the problem because it works fine when the financial period is 2006 and the dates are also 2006.
    when i change all the dates and the period to 2004, it stops working...
    does it check the computer date or something like that?
    Ronen
    p.s.
    if you still want to see the code its the first message in there
    Re: adding and updating journalentries

  • Retrieve "Start date of Next financial Period" and "Current Period"

    Hi,
    T-code: cne5
    I would like to display 2 new fields in cne5 report result:-
    1) Start date of Next financial Period
    2) Current Period
    I can used
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
         EXPORTING
              I_DATE         = SY-DATUM
              I_PERIV        = 'K4'
    But what is I_PERIV ?
    How can I retrieve the above fields value? Any Function Module that I can used?
    Appreciate helps!
    THanks a lot.

    Hi,
    Yes, i_periv is Fiscal Year Variant.
    From running OB37, I can see that V3 and K4 fiscal year variant. Which one should I used when calling the function module DATE_TO_PERIOD_CONVERT?
    Thanks!

  • Can't define previous & current posting period date in Balance sheet PLD.

    Hello Experts,
    I need to print previous financial year's last date & current financial year's last date on the balance sheet in  a new company.
    But i am unable to do so, as i was trying to link it with posting period's date in the PLD. And in the new company currently i am having only one posting period i.e. current financial year. How can i get the date from the previous posting period's date.
    Please suggest me, how can i get the previous financial year's last date & current financial year's last date on the PLD of Balance Sheet.
    Regards.
    ShriX.

    Hi,
    This is one of Hard Coded PLD that no way to link to other tables.  You have to create your own report if you need those dates.
    Thanks,
    Gordon

  • How to change the field 'Current Planning Period' in xRPM portal?

    Hello All,
    In xRPM portal, under portfolio management --> financial planning, we have a field 'Current Planning Period'.
    Can anybody tell how to change the values of this field for all the projects/items at once?
    Also, when I am trying to change for individual projects. its opening the F4 help but not  selecting the date on which I double click.
    Thanks
    Niti.

    No, you cannot add another vPC peer-keepalive configuration.
    Taking down vPC peer-keepalive will not affect your vPC peer-link and vPC operation. It will be a problem if and only if vPC peer-link went down after the peer-keepalive is down first, this will cause dual active.
    Regards,
    jerry

  • Closing a production order in the previous financial period.

    Hello All,
    I am hoping somebody can help me with a Production order question.  We have recently upgraded to SBO 2005a SP18, I know, just catching up… 
    we have an issue when closing Production Orders at the end of the financial period.   Assume that the period end is on the Sunday (end of period 2), The production from the Friday does not get booked into the system until the Monday morning (next period, period 3). 
    We can adjust the date of the production receipts and bookings on the Monday morning to show as a posting date of the Friday (period 2) but when we close the production order the there seems to be no way of closing it in the previous period (period 2), the transactions get posted in the current period.
    We have played with the changing the periods but our testing so far has been without success.
    Many thanks,
    Mike

    Suda,
    Using standard SAP when we create a standard Prod order, say for 100 units.  The status is defaulted to planned. we then change the status to released.  once released we have an addon that we use to book production. 
    The addon uses the production receipt and issue as well as other stock positngs all against the production order.  At any point in time we can see how many units have been completed and what componenents have been issued against an order.
    once the order is complete we change the staus manually from released to closed. this process then generated a whole bag of journal entries.  It is these journal entries I need in the previous period if I am in to the new period.
    Our SAP parteners say that the only way to do this with the addon is to reverse all of the journals created when closing the Prod order and re-create them in previous period but this would be a significant cost to us.
    Thanks,
    Mike

  • Create Overlapping Financial Period

    Hi,
    my question is that ;
    - actual values to be stored, change based on the update period (I've monthly, weekly updated projects)
    - "store period performance" work with financial periods
    - for same time span monthly and weekly financial periods cannot be created. Error message says "The financial period timescale overlaps with an existing financial period. The financial period was not added."
    what is the solution ? How I can create these financial periods or any other way to store actuals ?
    thanks for replies ,
    hatice

    Overlapping financial periods is not currently possible.
    There is an outstanding enhancement request for this functionality to be added so I would contact Oracle and add yourself to:
    "Is there a way to put in overlapping financial periods? [ID 900334.1]"
    Only alternative I can think of is to create a separate database for weekly vs monthly financial periods. Maybe someone else has a more creative solution.

  • Current Financial Year

    Hi All
    how i know that which is the current financial year of particular company in which i am logged in?

    Hi,
    For that u need to use the company serrvice object, I guess the following sample could help u.
    Dim oCompanyService As SAPbobsCOM.CompanyService
    Dim oPeriodCategoryColl As PeriodCategoryParamsCollection
    Dim oPerCategory As PeriodCategory
    Dim oFinancePeriods As FinancePeriods
    Dim oFinancePeriod As FinancePeriod
    Dim i As Integer
    Dim j As Integer
    'get company service
    oCompanyService = oCompany.GetCompanyService
    'get Period Category Collection
    oPeriodCategoryColl = oCompanyService.GetPeriods
    'print all periods
    For i = 0 To oPeriodCategoryColl.Count - 1
       'get period category
        oPerCategory = oCompanyService.GetPeriod(oPeriodCategoryColl.Item(i))
        'print period category name
        Debug.WriteLine(oPerCategory.PeriodName)
        'get all finance periods (if the sub period isn't a year then it
        'has more than one finance period, for example sub period month has 12 finance periods)
        oFinancePeriods = oCompanyService.GetFinancePeriods(oPeriodCategoryColl.Item(i))
        For j = 0 To oFinancePeriods.Count - 1
            'get finance period
            oFinancePeriod = oFinancePeriods.Item(j)
            'print the period name
            Debug.WriteLine(oFinancePeriod.PeriodName)
        Next j
    Next i
    Hope it helps,
    Vasu Natari.
    P.S: For more informattion please check the DI help file

  • How to get total number of days in current Fiscal period/year

    Hi,
    I need to get total number of days in current Fiscal period/year (current month) and assign it to an infoobject. I need a routine for this. Is there any function module to get this.If possible pls paste the ABAP code also for this task. Thanks in advance

    here is the FM:
    LAST_DAY_IN_PERIOD_GET
    KJ!!!

  • SAP Exit for Current Posting Period

    H All,
       I am executing a query and it should always take the Current Fiscal Year & Current period into consideration. I don't see any Standard SAP exit which is provided for this. There is an SAP exit for Fiscal year/Period but I need both of them seperately.   Can anyone please provide a sample code for "Current posting period".
    Points will be assigned!
    Thanks a lot!

    Hi Sia
    Here is some cmod code that might help:
    These should be run in i-step = 1
    DATA: l_period        TYPE t009b-poper,
              l_txt4(4)      TYPE c.
    *Variable ZCCCFYEAR that defauts to current Fiscal Year
            WHEN 'ZCCCFYEAR'.
              l_txt4 = syst-datum(4).
              l_period = syst-datum+4(2).
    *Handles FiscVarnt, period 6 is end of year so period 7 is new year
              IF l_period > '06'.
                l_txt4 = l_txt4 + 1.
              ENDIF.
              l_s_range-low = l_txt4 .
              l_s_range-high = ''.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
    *Variable ZCCPPER that defauts to current Posting Period
    Code adds 6 to current year period to be inline with Fiscal Year Variant (ie.per1 = july(7)),
            WHEN 'ZCCPPER'.
              l_period = syst-datum+4(2) + 6.
              IF l_period > 12.
                l_period = l_period - 12.
              ENDIF.
              l_s_range-low = l_period.
              l_s_range-high = ''.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
    Hope this helps
    Josh

  • XL-Reporter - Financial Periods specified in row and column selections

    Hello to all,
    again I have no idea how to solve an XLR problem after I tried different ways with unwanted results and after trying to find suggestions in the samples and help files.
    As a result I need a report which looks roughly like this
           2007 2006 2005 ...
    Jan.
    Feb.
    Mar.
    Dec.
    where each cell of the matrix is the total of invoices of a selected customer over the month in the specified year.
    I mainly tried to solve this in two different ways.:
    1.)
    Definition of a parameter for finacial period: name=fp, dimension, type=financial period, attribute=code
    Column selection summary for each year: PER(code=YearAll(@fp)) resp. PER(code=YearAll(@fp-12)) ...
    Row selection expansion: BPA(CardCode=@customer) ARDT(Code=Invoice) PER(PeriodInYear=1:12) Group By PER.PeriodInYear
    In each cell of the matrix the data attribute =ixGet(SO_LineTotal) is specified.
    The cell in the first colum (month) of the matrix is =ixDimGet(PER; PeriodInYear).
    2.)
    No parameter for the financial period is defined;
    Column selection summary for each year: PER(Year=2007) resp. PER(Year=2006) ...
    The rest is the same as in 1.)
    As a result I actually get a matrix with a column for each year and a row for each month, where the first column is 1, 2, ..., 12 (this is OK).
    But for all 12 month I get the same value, which is the (correct) total value for the whole year!
    Where is the failure in my intuition?
    Many thanks for your help!
    Regards,
    Frank Romeni

    I found it works if I don't set the selection to period in the Column and row.   Here are my selections
    Row
    Row 8-9  Expanding
    PER( * )  Group By PER.PeriodInYear
    Row 9 Expanding
    FACT BPA( CardCode = @BPCode ) ARDT( Code = "Invoice" )
    Column
    Column C Expanding
    FACT FIG( SO_TaxDate >= "01/01/2007" ) PER( * )  Group By PER.Year
    then I use a Column total to total the row expansion of the SO_LineTotal  with =SUM( ixRef(C9,2) ) were C9 is the expanding SO_LineTotal.  Then I hide Row 9 in excel to hide the details.
    If you post your email I can send you the IXR report definition
    Dan

  • Quiery for Financial Period

    Hi All
    I have some doubts which my client encountered. pls give your valauble suggestions on this.
    We have just closed our Dec08 a/c.
    Normally, we have to perform balance carry forward  and carry forward customer vendor balance before we start the 2009 data entries.
    Our company has changed the financial period to 31 March  instead of 31 December.
    Therefore, the financial data for statutory audit will be from 01Jan08 to 31Mar09.
    We urgently need your advice on the following:
    1.Please advise what are the procedures and areas we have to change  due to the change of financial period
    2.When should we change the financial period setting in SAP? Now or after March 2009 closing?
    3.Should we perform the carry forward customer vendor balance before we capture Jan 2009 transactions?
    4.Should we perform balance carry forward before we capture Jan 2009 transactions?
    Pls advise on above issues.
    regards
    Suresh Naidu

    In our senario _ cost is booking cost centers and revenues booking concern profit centers .
    for Financial reporting requirment can I include secondary cost to profit and loss a/c
    what is the impact on the report
    exp: salary booking in primary cost,than Per hour man hour cost computed by costing dept for allocate to concern department
    it is cost center activity price we specify in kp26 at the time of pm order confirm it will confim the activity quandity price will from planning area only,  so for salaries in primary g/ls already captured, if we consider secondary it may double booking
    srinivasa reddy

  • How to incorporate Current Tax Period in Select Query.

    i need to extract the data based on the Current Tax Period
    say current tax perios is
    06-04-2007  to 05-04-2008
    how to incorporate this in my select query.
    i need to fetch
    PERNR
    BEGDA
    ENDDA
    STAT2
    FROM PA0001 INTO TABLE IT_P0001
    for all entries in T_TXT_UPLOAD
    WHERE PERNR = T_TXT_UPLOAD-PERNR.
    In this t_txt_upload is an internal table.(input file which is taking using GUI_UPLOAD).

    Use this FM  HR_ID_TAX_YEAR to get the starting and end date for tax year and pass the date to your SELECT command for BEGDA & ENDDA.
    Regards,
    Amit
    Reward all helpful replies.
    <b>P.S</b> Close the queries when get solved.

Maybe you are looking for

  • Item category control the release strategy?

    Hi, Currently the purchase of a material needs to be released. My issue is that as soon as I change the item category in the sales order, the material does not need to be released. How does item category control the release strategy? Sincerely, Ketan

  • Attach a F4 help in VA01

    Hi, in Va01 transaction , I need to attach a F4 help to Receiving point field . Please let me know how and where should I call the search help. Thanks, sunil

  • How to use the Forte C++ (SunWorkshop)

    Hello! I want to compile the Wine (Windows Emulator) for Solaris 9 (x86). One way is that I install gcc 3.2, and the other is to use the FORTE C++ compiler provided by Sun Microsystems. Now, I have downloaded the gcc-3.2 source code from the sunfreew

  • Master Data Delta Load failing

    Hello, We have a master data process chain that does a delta load of 0MATERIAL_ATTR, OMATERIAL_TEXT etc.... On 3/26/06 at 8:15 pm was the last time this process chain ran successfully. On 3/27/06 at 8:15 pm the process chain failed on the first step:

  • When I imported my mp4 video to imovies, it only shows the 1st frame of the video and not the rest...

    When I imported an mp4 video to imovies, it only imported the 1st frame of the video - all thumbnails only showed the 1st frame.