cancel
Showing results for 
Search instead for 
Did you mean: 

How do we know current posting period?

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

andreas_mann3
Active Contributor

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

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi adiseshi,

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

prasanna

Former Member
0 Kudos

Good T-code!

Thanks!

0 Kudos

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

Regards,

Flaviano.

Former Member
0 Kudos

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!

former_member601419
Active Contributor
0 Kudos

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.