Sub topic 6
Fiscal Year Variants and Opening and Closing Posting Periods
This chapter explains how SAP S/4HANA decides which calendar dates belong to which posting period, and which periods accept postings. It assumes you know the basics of the general ledger and can navigate the Fiori launchpad. The earlier chapters on organizational structures and the Universal Journal give the background. The SQL examples are optional.
Why period control exists
Every journal entry line in the Universal Journal (table ACDOCA) carries a fiscal year (GJAHR) and a posting period (POPER). Reports, balance carryforward and the closing tasks all group data by these two fields. If a period is open when it should be closed, late postings change numbers that management has already seen. If it is closed when it should be open, legitimate postings fail.
Two separate settings handle this:
- The fiscal year variant defines the calendar: how many periods exist and where each one starts and ends.
- The posting period variant and its open-period settings define the control: which periods accept postings, for which accounts, and from which company codes.
Keep the two apart. The first answers "which period does 14 March fall into?" The second answers "may I post into that period today?"
The fiscal year variant
A fiscal year variant is a two-character key, such as K4, assigned to a company code. Each company code has exactly one. The variant holds the following:
- The number of normal posting periods. This is usually 12.
- The number of special periods. These are usually 4, which gives periods 13 to 16.
- Whether the fiscal year is calendar-year based or not.
- Whether the year is year-dependent, meaning the period boundaries differ from one year to the next.
Two common types exist:
| Type | Description | Example |
|---|---|---|
| Calendar year | Periods match calendar months | `K4`: period 1 is January, period 12 is December |
| Non-calendar year | The year starts in another month, and periods map to shifted months | `V3`: the year starts in April, so period 1 is April and period 12 is March |
Special periods
Special periods (13 to 16) have no calendar dates of their own. They share the dates of the last normal period. Their purpose is year-end adjustments, such as audit corrections, that you want to keep separate from regular activity in period 12. To post into a special period, the user or program must name it explicitly in the posting period field. The system never assigns a date to a special period automatically.
Shortened fiscal years
A company code that is founded or changes its year-end may need a year with fewer than 12 periods. The fiscal year variant supports this through a shortened fiscal year. Plan this carefully, because ACDOCA rows already posted cannot be moved to a different period layout.
Non-calendar years and the year shown in the data
For a non-calendar variant, the fiscal year is usually named by the calendar year in which it ends or starts, depending on the "year shift" setting. With a variant that starts in April and a shift of +1, a posting on 15 May 2025 falls into period 2 of fiscal year 2026. Check this setting against how your finance team names its years. A wrong shift is a common cause of "my year is off by one" tickets.
The posting period variant
The posting period variant is a separate four-character key. It is assigned to the company code, and many company codes can share one. This lets you open and close periods for a whole group in one place.
Inside the variant you maintain intervals. Each interval has these parts:
- Account type. The usual ones are
+(valid for all account types),A(assets),D(customers),K(vendors),M(materials) andS(G/L accounts). - From period and year, and to period and year. This is the first interval, usually the normal periods.
- Second interval. This is for the special periods and for an optional extra range.
- Authorization group (optional). This is a code that lets selected users post when the interval is closed for everyone else.
A period is open for an account type when its number and year fall inside either interval for that type. Everything outside the intervals is closed.
A typical setup
A common pattern is to open the current period for all account types, and to open the previous period only for G/L accounts. After the subledgers have finished their runs, the previous period can be closed completely.
| Account type | Interval 1 | Interval 2 |
|---|---|---|
| `+` | 1 to 11, 2025 | 13 to 16, 2025 |
| `S` | 1 to 12, 2025 | 13 to 16, 2025 |
| `A` | 1 to 10, 2025 | blank |
With this setup, period 12 accepts only G/L postings. Period 11 accepts all types. Asset postings stop after period 10.
Opening and closing periods in practice
In SAP S/4HANA, the Fiori app Manage Posting Periods (and its related period-control apps) supports these operations in a guided way, while the classic configuration path remains available for the technical setup. In day-to-day work, these are the typical actions:
- Open the next period at the start of the month, for example once the previous month's opening postings are complete.
- Keep the previous period open for a defined window while subledger runs finish.
- Close the previous period once the close tasks are complete.
- Reopen it only under approval, and record the reason.
Authorization groups for late postings
When the controller needs to post one correction into a closed period, you do not reopen the period for everyone. Instead, assign an authorization group to the interval. Only users whose role includes that group (through the authorization object F_BKPF_BUP) can post. The rest still receive the "period closed" error. This approach limits exposure and leaves an audit trail.
What the period check does not cover
Understanding the limits prevents false confidence.
- Controlling has its own period lock. A posting that reaches a cost center or internal order is also checked against controlling period locks, which are set per version and transaction type. A period can be open in finance and locked in controlling, and the posting fails.
- Asset Accounting and Materials Management have their own period concepts. Asset postings follow the asset accounting fiscal year and the depreciation run. Material documents use the Materials Management posting period, which is managed in the inventory period settings. In S/4HANA these now tie back to the same finance period, but the MM period still needs to be moved forward on its own schedule.
- Ledger specifics. The same fiscal year variant applies to all ledgers of a company code by default. A non-leading ledger can use a different variant, which supports parallel accounting with different year-ends. Keep this in mind when you reconcile ledgers.
- Document date versus posting date. The period is derived from the posting date, not the document date. Users who enter an invoice dated 30 June with a posting date of 2 July will land in the July period.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| "Posting only possible in periods X and Y" | The posting date is outside the open interval | Correct the posting date, or open the period for the right account type |
| Posting succeeds in finance but fails from a cost center | Controlling period is locked | Open the controlling period for the transaction |
| Special period posting lands in period 12 | The period field was not set | Enter the special period explicitly |
| Fiscal year is one year off | The year shift in the variant is wrong | Correct it before any postings exist |
| A subledger posting fails after the G/L period was opened | Only `S` was opened, not `K`, `D` or `A` | Open the interval for the right account type |
Checking period data in the Universal Journal
You can confirm which periods hold data for a company code with a simple query. This is a read-only check for learning. Production code should read released CDS views.
SELECT gjahr,
poper,
COUNT( * ) AS line_count
FROM acdoca
WHERE rldnr = '0L'
AND rbukrs = '1010'
AND gjahr = '2025'
GROUP BY gjahr, poper
ORDER BY gjahr, poper
INTO TABLE @DATA(lt_periods).A line count in a period that you believe is closed signals a late posting, a reopened period, or a special-period entry. Compare it with the change log of the posting period variant.
Exercises
Exercise
A company code uses a non-calendar fiscal year starting in April. A user posts an invoice with document date 28 June and posting date 3 July. Which period is the posting assigned to, and which date decides it?
Show answer
The posting date decides, so the entry goes to period 4 (July is the fourth month when the year starts in April). The document date of 28 June has no effect on the period.
Exercise
Period 12 should accept only G/L postings, so that subledger runs are blocked. How do you set this in the posting period variant?
Show answer
Keep the interval for account type + ending at period 11, and add a separate interval for account type S that extends to period 12. Account types A, D, K and M then have no open interval for period 12 and are blocked.