Find first day of open posting period

Hi all experts,
my problem:
I neded to find the first day of the open posting period in my report.
You know any FM or other?
thank you all, points for all.

Hi..
Try the FM
<b>G_POSTING_DATE_OF_PERIOD_GET</b>
If not:
Check the Function modules in the Same Function group GUPD.
<b>Reward if Helpful</b>

Similar Messages

  • Find first date of open FI periode

    Hi gurus!
    I want to check if the FI period is closed or not. If it is closed I want to find the open period, and then the first date in this period. How would you solve this?
    check if FI period is closed.
    If period is closed.
    - find open period.
    - find first date of open period.
    endif.
    <removed_by_moderator>
    Kind regards,
    Oyvind
    Edited by: Julius Bussche on Oct 27, 2008 12:22 PM

    use fm's FI_PERIOD_DETERMINE and PERIOD_CHECK
    use the result for first date:
    concatenate e_gjahr e_monat '01' into xdate.
    A.

  • Error in Opening Posting Period in MM

    Dear Gurus,
    I am facign an error when i am opening a posting period in MM. In MMPV, when i open the Period and execute system displays the following error message:
    Client 300
    Period Entered : 112009
    Log
    ABEND
    MMPV_Date_Check Error Occured (See note 1082841)
    Transaction MMPV (period closing program) cannot be executed . For more infomation see note 1082841.
    Kindly provide me with the solution .
    thanks in advance....

    Below is straight from the OSS note. You need to set the parameter id MMPV_READ_NOTE to current date for yourself or change the number of days in CKMLMVADMIN-KDATA to 999 (for example) and then you will be able to do. Probably better to set the parameter id for yourself and suitable colleagues only:
    This note provides a feature to prevent using MMPV to shift into a future period.  This feature is activated automatically after implementing this note and works with our without Material Ledger active.  MMPV can continue only if the new period is within 10 days (by default but is configurable) away from the current date in the system. Otherwise, it will terminate and no change will be made.
    To disable this feature, you must set parameter ID MMPV_READ_NOTE with the current date in the user parameters in form YYYYMMDD (Y = year, M = month, D = day).
    To change the number of days to a value other than the default (10 days), set the following entry in table CKMLMVADMIN:
    KKEY  : MMPV_NUMBER_DAYS_ALLOWED
    KDATA : <number of days MMPV is allowed>
    Only integers are allowed, with 0 meaning MMPV is allowed only on or after the first day of a new period.  If the value is greater than the actual number of days in a period then it means MMPV is allowed for the entire month.  Any invalid entry in the KDATA field will be ignored and the default value will be used.
    Regards,
    Nick

  • How to find first day of the year

    Big picture: trying to determine how many pay periods are left in the year. There are 52 weeks in a year, and our company pay out each week.
    The first pay week of the year always starts on a Friday. So If Janurary 1 is a friday, then the 1st week of pay period starts that week. If Jan 1 is a Thursday, then the first pay week will start on Janurary 2.
    I need to figure out what day the first day of any year it is. By day, i mean Mon, Tue, Wed, Thur, Fri, Sat, or Sun.
    Then when I figure out what day it is, i will write an if/then statement saying if Jan 1 is a monday, then add 4 days to that date and that will be the first day of a pay period.
    Then when i figure out the first day of the first week, I wanted to add 7 days to create week2, week3.... week 52.
    Then take todays date and if it was between week x and week y, then it would determine that z many pay periods are left...
    is this the best way to go about this? anything easier?

    You can use the getDay method of a Date object to determine the day of the week. Any decent JavaScript reference will have more information.
    George

  • Error :in opening  posting period

    For opening posting period April08-March 09 what to do?
    Posting varient is created for current posting period,now for new posting period is it so to create new varient ?
    & if new varient created then how to assign to company code as one current varient already assigned

    You can have the same posting period variant.
    Go to Tcode OB52 and give your open period and close period for normal posting periods
    as well as
    for special posting periods.
    Cheers!

  • Find first day of any year

    How to find first day of any year using sql? Is there any function for it ?

    Using below SQL you have to just pass the year:
    SQL> select to_char(to_date('0101'||&tyear, 'ddmmyyyy'), 'Day') from dual;
    Enter value for tyear: 2000
    old   1: select to_char(to_date('0101'||&tyear, 'ddmmyyyy'), 'Day') from dual
    new   1: select to_char(to_date('0101'||2000, 'ddmmyyyy'), 'Day') from dual
    TO_CHAR(T
    Saturday
    SQL> /
    Enter value for tyear: 2001
    old   1: select to_char(to_date('0101'||&tyear, 'ddmmyyyy'), 'Day') from dual
    new   1: select to_char(to_date('0101'||2001, 'ddmmyyyy'), 'Day') from dual
    TO_CHAR(T
    Monday
    SQL> /
    Enter value for tyear: 1990
    old   1: select to_char(to_date('0101'||&tyear, 'ddmmyyyy'), 'Day') from dual
    new   1: select to_char(to_date('0101'||1990, 'ddmmyyyy'), 'Day') from dual
    TO_CHAR(T
    MondayRegards

  • OB52 authorisation group (close&open posting periods only for partic users

    Dear FI-CO Guru's
    In ob52- I want open postin periods
    1)Certain group of user will allow for posting only normal periods
    and
    2) Certain group of users will allow for posting normal and special periods
    this is our business requirement kindly suggest how can I maintain
    Regards
    GuruPrsad

    Hi Guru,
    If only a limited set of users is to be able to post in a particular
    posting period, proceed as follows:
    Add the posting period authorization (authorization object
    F_BKPF_BUP) to the authorizations of the selected users. Assign an
    authorization group (e.g. '0001').
    Enter the account type '+' for the posting period variant to which
    the restriction is to apply. Enter the period(s) whose use is to be restricted in the first period, those which are available to all
    users in the second period, and the authorization group (e.g.
    '0001') in the last column.
    For this you need to consult with Basis people authorization matrix.
    Regards,
    Teja

  • FI : Finding last day of last accounting period

    Hi,
    In fi, I am trying to find out the last date od the last accounting period.
    I.e, if december is my first accounting period, and i give 28.01.2009 , my current accounting period will be 02,so last date of last period(december 2008) would be 31.12.2008
    Similalry, if December is the start of the accounting period,meaning december is accounting period 1, the, last day of the last accounting period would be: 30.11.2007.
    Please let me know of function modules to:
    1.Find the last period
    2.find the last day of the last period
    Thanks in advance..
    sumita

    Hi,
    You can try using function module LAST_DAY_IN_PERIOD_GET to get the last day in a month/period.
    You might have to check with the help of FI consultant what Fiscal Variant needs to be used.
    Also uou can find out the previous month by subtracting 1 from the current month ( and if month - 1 = 0 previous period is 12 ).
    Regards,
    Ram

  • How to close and open posting periods

    hi Guru,\
    i need help in posting periods.
    how to open & close posting periods ?
    Thanks

    Hi,
    Use tcode S_ALR_87003642. On this Tcode, you will identify which period to close/open and in what account will this appy, (Asset, GL, customer, vendor, etc)
    Hope this helps you.
    Thanks,
    Rod

  • How to open posting periods

    Is it possible to open the posting periods?
    I have created an purchase order,
    thn
    i went to post MIRO. then the system shown that only posting period is possible for 01/2010 02/2010
    i have  closed the posting period to till 05/2010. thinking of calendar starts from January, but the calendar starts from April .
    i havent done any posting after this...
    can anyone help me?

    Hi,
    It is a difficult task. But go through the links:
    MMPI
    MMPV & MMPI
    Opening the Closed Periods using MMPI

  • Finding first day of months past

    I know how to find the first of the current month.
    today =03/04/2011 MM/DD/YY
    SELECT TO_CHARTRUNC(SYSDATE,'MM', 'DD-MON-YYYY') FROM dual;
    3/1/2011
    Is there an easy way to find the first day of lets say 2 months ago?
    2/1/2011
    Secondly, how can I pad the output of monty and day withn zero's ie 02/01/2011
    Thanks to all who answer

    Hi,
    You can do it like this,
    SQL> SELECT TRUNC(ADD_MONTHS(SYSDATE,-2),'MM') dt FROM dual;
    DT
    01-JAN-11
    With Zeroes,
    SQL>
    SQL> SELECT TO_CHAR(TRUNC(add_months(SYSDATE,-2),'MM') , 'MM/DD/YYYY') dt FROM dual;
    DT
    01/01/2011
    SQL> G.
    Edited by: G. on Mar 4, 2011 2:41 PM
    Over looked 2 months.

  • Open Posting Period only for some specific user?

    Dear all,
    does someone have any idea, how could a posting period in ucmon be opened only for several specific user?
    Is that possible?
    Many thanks.
    Hallochen
    Edited by: hallochen on Sep 22, 2011 2:45 PM

    Depending on the requirement
    May be you can open it for a specific Cons Group(assuming User has authorization for that group)  which translates back to opening it for specific user only
    If user needs to work on more than 1 cons groups & has authorization then a step by step approach  will help
    rgds
    D

  • Can we open posting period for particular user ID

    Hi,
    Can we open the posting period to particular User ID.
    Is there any transaction code to open the posting period to particular user ID?
    Moderator: Please, search SDN

    Hi,
    You can restrict this in t.code OB52 through authorisation group. Define authorisation group in OB52 and assign the same to user id with help of basis.
    Regards,
    Sankar

  • Function for finding first day of the month !!

    Hi,
    I know we have function to find the last day(DD) of the month. Do we have any functions for finding the first day of the month ??? if not is there any way i can find the first date(DD) of the month .
    Bcoz i m trying to incorporate the logic for finding the first day of the month partition.
    Thank you!!!

    Shahid Ali Tcs wrote:
    There are many solution given by member in relation with your question, and all are correct .
    I want to make u know something else.
    Have you ever think why oracle has given function for last_day but no function for first.....
    I u think this question u will get the answer of your "first day finding " question.
    Because first day is alwasy 01 of every, while last day can be 30,31,29,28.....
    Got my words ........
    One more solution from my side,,,,
    SQL> select '01' || to_char(sysdate,'-MON-YY') from dual;
    '01'||TO_
    01-SEP-09Which is a completely poor way of doing it.
    Using TRUNC or LAST_DAY(..) + 1 will return a DATE datatype result.
    Your method is converting the DATE into a VARCHAR2, which then prevents further processing/date based calculations unless it is explicitly converted back to a DATE again.
    The reason Oracle hasn't provided a FIRST_DAY is because the TRUNC function already caters for it as this works with DATE's as well as NUMBER's, not because the first day is always 1.

  • Opening  Posting  Periods

    Hi Gurus,
    Please guide me regarding the opening of the posting period.
    Actually i closed the wrong period in MMPV, i.e instead of closing the 09/2007 period i closed 10/2007.Which opens the 11/2007 period .
    Is there any way i can open the current period which is 10/2007.
    Please guide me its very urgent.
    Points will be rewarded.
    Thanks in advance.
    Bhasker

    Hello,
    This thread i found , following reply is given by Steve Brichall , Pls go thru this
    " The system is simply indicating that your current period is an old one and you have to step through from this old period to the current period if it is more than one period old.
    For example if you are currrently in period 07 2007 and the system is set to period 04 2007 then you have to use MMPV to get it to period 05, then use it agin to get it to period 06 then use it to get to period 07.
    If the message is indicating that the period in the system is VERY old and if this system is just a development system or a play (sand pit) client. Then use MMPI to initialise the period to the current one. (you will need to add a parameter to your user id to do this, the parameter id is "MMPI_READ_NOTE" and you give it a value of 20070716 (current date).
    You maintain this in your user settings (System > User Profile > Own data click on the parameters tab, add the parameter MMPI_READ_NOTE with the current date as above.
    Then you can run MMPI with the current date and open the current period.
    But NEVER use MMPI in a live and running system."
    Kedar

Maybe you are looking for