Symptom
- Schedule Recurrence job: Open/Close Next Posting Periods to open the next month period for a specific company code.
- The system unexpectedly opened multiple posting periods instead of only the next month.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- App Manage Posting Periods (F2293)
- Choose a posting period variant and account type -> click on button Set Posting Periods
- Click on Schedule Recurrence
Resolution
With buttons "Open Next Period" and "Close Previous Period" there are three scenarios available:
- “Open Next Period” and “Close Previous Period” options can be used parallel. It opens and closes the periods at the same time.
- Only “Open Next Period” can be flagged. The first job opens the next period. The following job opens next period and also closes previous period. So, it is working like the first scenario, expect for the first job.
- There are “Open Next Period” and “Close Previous Period” jobs which provide the possibility to have a “delay” between opening and closing. For example opening happens in the beginning of the month and closing happens in the middle of the month.
Exact calculation of next and previous periods
The calculation of the periods to open and close applies the following logic.
Base period is taken from the currently open range of periods. "From" means the first period which should be open, and "to" means the last period which should be open.
- “Open Next Period” and “Close Previous Period” options are used parallel. The job changes periods in this way:
From Period = From Period of base period + 1;
To Period = To Period of base period + 1. - Only “Open Next Period” is flagged. In the first run, the job changes periods in this way:
From Period = From Period of base period;
To Period = To Period of base period + 1.
Then the next jobs consider the result of the preceding job as base period, and change periods in this way:
From Period = From Period of base period + 1;
To Period = To Period of base period + 1. - When applying "Close Previous period", there always exists an open next period action, and the periods of open next period is the base. The job changes periods in this way:
From Period = From Period of base period + 1;
To Period = To Period of base period.
See Also
Keywords
manage posting periods, f2293, posting period, scheduled job, open period, opened multiple periods, finance, general ledger, closing operations, s/4hana cloud, batch job, fiscal period, period opening, posting period variant, schedule recurrence, open next period, close next period , KBA , FI-FIO-GL-PER-2CL , Periodic Activities Applications in General Ledger (PubC) , How To
SAP Knowledge Base Article - Public