Posting Period in 2007

Hello everybody,
I want to add a new posting period with the DI.
Unfortunately on the SAPbobsCOM.PeriodCategory object there is no property to set the period status.
Missing? Bug? Or is there another possibility to set this property?
Thanks for answers,
Michael

Hi Michael,
I've had a bit of a play and here's an example of how to create a new financial year. This combines creating a new period category with setting the properties of the individual periods within the category:
private void CreateNewFinancialYear(string sPeriodCat, string sPeriodName, SAPbobsCOM.BoSubPeriodTypeEnum sboPeriodType, DateTime dtBegFinYear)
            // Create an instance of the company service object
            SAPbobsCOM.CompanyService sboCmpService = (SAPbobsCOM.CompanyService)_sboCompany.GetCompanyService();
            SAPbobsCOM.PeriodCategory sboPeriodCat;
            SAPbobsCOM.PeriodCategoryParams sboPeriodCatParams;
            SAPbobsCOM.FinancePeriods sboFinancePeriods;
            SAPbobsCOM.FinancePeriod sboFinancePeriod;
            try
                // Create an instance of the period category object
                sboPeriodCat = (SAPbobsCOM.PeriodCategory)sboCmpService.GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiPeriodCategory);
                // Set the properties for the new period
                sboPeriodCat.PeriodCategory = sPeriodCat;
                sboPeriodCat.PeriodName = sPeriodName;
                sboPeriodCat.SubPeriodType = sboPeriodType;
                sboPeriodCat.BeginningofFinancialYear = dtBegFinYear;
                // Add the period category and return the system key
                sboPeriodCatParams = sboCmpService.CreatePeriod(sboPeriodCat);
                // Get the newly created finance periods using the period category key
                sboFinancePeriods = (SAPbobsCOM.FinancePeriods)sboCmpService.GetFinancePeriods(sboPeriodCatParams);
                // Loop through the periods and change the status
                for (int i = 0; i < sboFinancePeriods.Count; i++)
                    sboFinancePeriod = (SAPbobsCOM.FinancePeriod)sboFinancePeriods.Item(i);
                    sboFinancePeriod.PeriodStatus = SAPbobsCOM.PeriodStatusEnum.ltUnlockedExceptSales;
                    sboCmpService.UpdateFinancePeriod(sboFinancePeriod);
            catch (Exception ex)
                _sboApp.SetStatusBarMessage("This sucks! The following error occurred: " + ex.Message, SAPbouiCOM.BoMessageTime.bmt_Medium, true);
I could then call this procedure as follows:
CreateNewFinancialYear("2009", "FY 2009", SAPbobsCOM.BoSubPeriodTypeEnum.spt_Months, System.Convert.ToDateTime("01/01/2009"));
For this example, I've looped through the periods and set the period status to 'Unlocked Except Sales', just to show how the periods are updated.
Kind Regards,
Owen

Similar Messages

  • Failed to create posting periods in 2007 A

    The systems returns this error while trying to create a new posting period in release 2007 A SP:01 PL07
    The error is :
    SystemMessage       Error          Existen transacciones creadas antes de %s   [Mensaje 636-7]
    Please, can you help me.
    Tansks

    Have you created backup before you creating posting periods?  You have to restore to the old db to recreate.  Always try to do it in testing environment first.  If all efforts fails, log a support ticket immediately.  It might be a bug.
    Thanks,
    Gordon

  • Posting period for idoc mbgmcr goods movement

    Hi
    i am trying to run idoc mbgmcr as a standard inbound function module in we19
    i use posting date 20070415 - i get posting period 004 2007 is not open
    so i try using posting date 20070515 - i get posting only possible in 2007/04 and 2007/03
    so i go into mmpv for cc 3000 2007 04 - i see the current period(mo/yr) for control rec is 04 2007
    i also go into omsy and i see for cc 3000 2007 4
    so i assume it should let me post using a posting date 20070415
    so i guess i am really confused about this posting date for mbgmcr
    i have already tried to close an old period and open a new that is why i am at period 04 2007
    any help would be GREATLY APPRECIATED.
    Thank you in advance

    okay so here is the scoop
    i went into ob52   i saw for my cc 3000
                         from period   year     to period   year
    3000+               1               2003        12        2006
    3000A ZZZZZZ    1               2003        12        2006
    3000D ZZZZZZ    1                2003        12        2006
    3000K ZZZZZZ    1                2003        12        2006
    3000S ZZZZZZ    1                2003         12       2006
    so i went ahead and changed all the 2006 to 2007
    now at least i get a different error when trying to use idoc mbgmcr to post a goods receipt for a po 
    i use posting date 04/15/2007
    now i get for object rf_beleg 3000, number range interval 50 does not exist FBN1
    so i absolutely know nothing about FI and what i need to change in this transaction ob52  but i think that is what needs to be done
    so ANY HELP WOULD BE GREATLY APPRECIATED DIRECTING ME IN WHAT NEEDS TO HAPPEN IN THIS TRANSACTION
    PLEASE THANK YOU

  • Problem with posting vendor invoice (MRHR) due to posting period

    Hello,
    Good day.
    Recently, due to the closing of posting period 12 2006, a new posting period was created for 2006 to reconcile some unproccessed posting for that year. This posting period 13 2006 was created in FI (OB52).
    Unfortunatley, even though posting period 13 2006 is available. When creating a vendor invoice (MRHR) with reference to PO, specifying the posting perio 13 2006 would create an error message
    <b>"Allowed posting periods: 01 2007 / 12 2006 / 12 2006"</b>
    I debuged the program and tracked down the source in the table MARV, which seesm to be maintained in the transaction code OMSY.
    However, when I tried to change the data for the company code a message would apperar
    <b>"The company code <ccode> can no longer be initialized"</b>
    I also tried tcode MMRV and allowed posting to previous period, but that didnt work.
    What actions do you guys suggest so that the Vendor Invoice/Invoice Verification can be posted in period 13? Thanks and good day.

    Thanks very much, i'll check it when my internet is stable. Unfortunatley the earthquake in Taiwan messed up our internet
    Award points once I see it!
    If there are any other tips that may prove useful please feel free to post them.

  • POSTING PERIOD ERROR URGENT

    I am getting the error is POSTING PERIOD 012 2007 IS NOT OPEN. Please solve my problem.

    Please check your Company Code posting period in MMPV, you may have to check and close all the period or months one by one from the period given there, till 2007 curent month. You can also check it up for status alternatively in OMSY. Note : Period refers to months in accounting.
    Award points if helpful.
    Thanks

  • Allowed posting periods

    hi,
    i got this message "allowed posting periods 11 2007 / 12 2006" when i do miro.
    what does it mean? i checked ob52, period is 10/2007 till 12/2007 for this company. what is the cause?
    also why 12 2006?
    thanks

    Hi,
    In MM you can have have open the current and last period. This is standard MM. When you open the new month it will close the Mont before the last month
    When MM create posting and FI is closed for that period it is not possible to make the posting
    Paul

  • Posting balance is not cleared (period 01/2007 A) - showing as ERROR

    Hi SDN's,
    When am doing simulation for posting, showing error as
    "Posting balance is not cleared (period 01/2007 A)".
    Plz need your valuable suggestions to solve my issue.
    Thanks for your timings,
    Kind regards,
    Saisree.S

    Hi Sai,
    check the amounts for Balance sheet accounts and Expanses account. find the difference for both the accounts. the difference might be some wage type or wage types amount.
    find the wage types and assign the accounts. then your problem will get solved.
    If the difference amoun is net payment you have to maintain the bank account number. then it will get solved.
    Kumar

  • SAP 2007 posting period problem

    Hi , Ask for help please.
    I am trying to add the invoice into system for the customers who have 60 days terms, which leads the due date falls into 2010, however the system pops out error says: invoice is not allowed cause not permission date. Just wonder why, and how can I fix it? The posting period has been set up correctly and have year 2010 . thanks

    Hi ,
    I think you need to extend the due date upto 2010 , since you are in 2009 . Then you should be able to create your document .
    Go to current posting period and extend the due date .
    Hope this helps
    Bishal

  • Open and close posting period

    hi gurus my client wanted to block the posting date from 01.03.2007 to 30.03.2007 and only posting date 31.03.2007 should open is it possible in sap.plz help me.
    thanks and regrds
    dipti

    Hi,
    You can customise in Fiscal year Varient, If you are maintaining V3 then assign posting period days to March as 30 days and create period 13 as special period. Now you are able to block periods 1 to 12 in OB52 and allow user in posting period 13 (special period) i.e for March 31st
    Try it.
    Kedar

  • How to open and closed posting period??

    Dear Gurus,
    Pls help me, how to open and closed posting period.when and how we used special period.
    Regrds
    Mahesh

    HI,
    Tcode is ob52
    here we generally provide the following details
    a/c type from a/c to a/c from period year to period year from period year to period
    +                                    1            2007   12         2007      13       2007   16
    + implies it applicable to all account types
    generally we can have maximum 4 special periods and total no of periods(normal+special) should not exceed 16
    generally we use special periods for year end adjustments like tax adjustments
    if it is useful assign me points

  • Mm open and close posting periods

    Hi,
    Any one can suggest me how can I ope a closed  posting period,
    Ex:- present period is 16/1/2007,in System while running T_Code MMRV
           Current Period:- 12  2007
           Previous Period :-11 2007
           Last period in prev.year:- 12 2006
    and when run  and chane T_code OMSY  to current period system not accecpting.
    Regards
    Raju

    Hello Raju,
    It is possible to re-open a previously closed period. However, it is NOT advisable to do so because the valuation data of the previous period could be affected.
    In general, it is only safe to reopen a previously closed period when no material postings have been done after the period shifting to the new period.
    If there has already been postings after the period shifting to the new period, reverting the period back will cause database inconsistencies in the history tables.
    If you decide to proceed with this process, you can use the program RMMMINIT, but, please review the documentation of this program first!! and the check the SAP notes 487381 (for the error message that you are receiving) and the 369637 (for an explanation about the inconsistencies that will be generated).
    I hope this helps!
    Esther

  • 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

  • Re open the closed Posting Periods - Very Urgent

    Dear Experts,
    We have an urgent problem to solve.The company code currently we are configuring uses fiscal year (oct - Sept) and the other company codes in our client site uses (jan -Dec). So by mistake we closed posting periods using MMPV upto 2007 03 but it should be 2006 06(correct me if i am wrong).
    As we are still in baseline configuration we don't have any material document in the current company code. From this forum I got some solution to intialize the posting period using MMPI(which directed me to use SAP Note 487381).
    Now if I do MMPI with the directions mentioned in SAP Note 487381, will i face any problem now & in future.
    Please suggest me and help me as has become hurdle for the test process.
    Thanks in Advance...
    Nagesh Aswartha

    Hi Aswartha
    As you do not have any material documents , pl go ahead and initialize the periods. Should not be a problem.
    I normally do this to avoid errors:
    In MMPV, never give a period. Enter the current date(or first date of the month) in the date field and execute closing program.
    Best regards
    Ramki

  • Opening of MM posting period

    By mistake posting period of future has been opened i.e, 09/ 2007 . Now want to close the 09/2007 posting period and open the period 06/2007. How can i do that?

    Hi,
    Is it in the live system? If not, change the posting period variant, and assgn the correct posting periods to the variant, assign the variant to your company code.
    If in the live system, tell your finance people to have a look.
    Prase

  • Special posting period

    Hi sap guru's,
    i have one doubt regarding posting period.
    when we define posting perod and there when we create open & close posting period , in there we have to maintain posting normal period as wel as special posting period for entering closing data for same fiscal year.
    if we going for V3 fiscal year variant and it is from april to march. so entry posted in the special period for rectification purpose.
    my problem is in special posting period from and to column.
    again i mention that my fiscal year variant is standart V3 i maintain period for yearly basis my normal posting period from i enterd 2008 and to period i enterd 2009.
    so what i maintain in special posting period from and to column means which year i maintain and why?
    <removed_by_moderator>
    regards,

    Please maintain like this:-
    From Period - 13 year 2007 To Period -16 Year 2007
    Or You can use 13 to 13,
    then 14 to 14
    then 15 to 15
    then  16 to 16
    The no of times you take P/L And B/S and you are posting in the above speacial period and make entries as per your Auditor's observation.
    Regards,
    Alok

Maybe you are looking for

  • How do I remove an obsolete e-mail address of a friend (not a whole account)

    People change their provider and get a new e-mail address. From some people I have 3 addresses but 2 are obsolete. I can't remember which ones. So I want to remove the old addresses, not a whole e-mail account. If I send a new e-mail to a friend and

  • How to parse XML to Java object... please help really stuck

    Thank you for reading this email... If I have a **DTD** like: <!ELEMENT person (name, age)> <!ATTLIST person      id ID #REQUIRED > <!ELEMENT name ((family, given) | (given, family))> <!ELEMENT age (#PCDATA)> <!ELEMENT family (#PCDATA)> <!ELEMENT giv

  • Images maximize (full screen) when switching windows?

    When working with two or more images in Fireworks CS3 (Mac OSX 10.5.7).... The image windows blast into full screen display when switching between images. I am new to CS3, (convert from Studio 8) but cannot find where to stop this irritating behaviou

  • FI CA ( Contract accounts payable)

    I don't know whether this is the right forum for asking this question: When I am trying to create a contract account in FI CA I get the following  error message Account holder relationship is not uniquely defined Account holder relationship is not un

  • Can we execute a query in resultset of while loop

    can we execute a query in resultset while loop for ex: rs=st.executeQuery("SQL"); while(rs.next()) rs1=st.executequery("SQL1"); while(rs1.next()) }