Skip to Content
author's profile photo Former Member
Former Member

How do we know current posting period?

How do we know current posting period?

I need to check weather user entered the current posting period or not.Can you please provide me the solution?

Add comment
10|10000 characters needed characters exceeded

5 Answers

  • Best Answer
    Posted on Oct 19, 2006 at 05:40 AM

    Hi,

    use fm DETERMINE_PERIOD

    DATA year LIKE t009b-bdatj.
    DATA period LIKE bkpf-monat.
    
    START-OF-SELECTION.
    
      CALL FUNCTION 'DETERMINE_PERIOD'
           EXPORTING
                date                = sy-datum
                version             = 'K4'
           IMPORTING
                period              = period
                year                = year
           EXCEPTIONS
                period_in_not_valid = 1
                period_not_assigned = 2
                version_undefined   = 3
                OTHERS              = 4.
      IF sy-subrc <> 0.
        MESSAGE e001(00) WITH 'E' sy-subrc.
      ENDIF.
    
    
      WRITE: year, period.

    A.

    Message was edited by: Andreas Mann

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2006 at 11:25 AM

    we control the period that users can post via okp1 and ob52. This stops users posting in the wrong period.

    Normally the current period is controlled ny the calendar date!

    Add comment
    10|10000 characters needed characters exceeded

    • Hi as Barry said In OB52 you can check which period is open. In OB29 you can check if you are using a calendar dependent year or year dependent,by referring to OB29 you will know when to open a period in OB52.

  • Posted on Oct 18, 2006 at 04:32 PM

    From a logistics point of view, you can also control and / or block postings to the previous period using MMRV.

    Regards,

    Flaviano.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 04:35 AM

    hi adiseshi,

    from logistics point of view you can also look via t-code OMSY

    prasanna

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 08:00 AM

    Hi,

    There are two T-Codes in this regard. One is OB29 where you define the Fiscal Year variant i.e what periods your company has. This variant is attached to your company code in config. You can check which variant is attached to your company code in OBY6. There you can also find the Posting Period Variant attached to your company code. The PPV determines whether you can post to a company code on a particular date. The periods are defined for Account Types '+, A, D, K,M, and S'. and these are opened and closed in OB52. Check up these to find out your current posting period.

    Anuradha Ambekar

    TCS

    Add comment
    10|10000 characters needed characters exceeded