Automatic Period Opening

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7
At a glance
Powered by AI
The document discusses how to automate period opening for material master and financial accounting which is usually done manually. It allows setting up background jobs to run programs periodically to open periods automatically.

The program RMMMPERI can be used to automate the process of opening material master periods for a given/all company codes so that it does not need to be done manually through transaction code MMPV.

The steps mentioned are to create a variant using transaction code MMPV, select dynamic date calculation, save the variant, then use transaction code SM36 to define the background job providing the program name, variant name, run time and frequency.

Automate Period Opening in SAP

Automate Period Opening/Closing for Material Management (MMPV)

To allow creation of goods receipt, goods issue, MM invoice posting or for any kind of material posting,
posting period for material master records has to be open. At any point of time only two periods can be kept
open for material master viz. current period and previous period.
To open material master period T-code “MMPV” is used in front end. This requires someone to manually run
this transaction on last day of month for opening next posting period (at the same time period one before the
previous period closed for posting). This manual process runs the risk of not opening next period, due to
human omission, and jeopardizing the business for some time as no material posting can be carried out in
system.
Through the use of program “RMMMPERI” the process of opening material master period can be automated
for a given/all set of company codes. Following steps should be used to set up variants and set a
background job for automatic execution of program at periodic intervals:

1. Go to t-code “MMPV” and save your variant by including desired selections

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 7
Automate Period Opening in SAP

2. Select save button from top of screen to save the variant and give a suitable name to your variant

3. In “Date” row of above screen, go to column “Selection Variable” and select “D: Dynamic date
calculation” from drop-down selections (by pressing F4 key on keyboard)
4. Now go to last column i.e. “Name of Variable” and select option as per requirement

5. At Step 3 we can also select “T: Table Variable from TVARVC” and select variable
“RV_ACTUAL_DATE” at step 4
6. Program “RMMMPERI” uses the period from selected date to open that particular period for material
master
7. Now click on save button from top of screen to save the variant, this variant will be used while setting
up background job
8. Now Go T-code SM36 and give a suitable name to job like “MMPCLOSE_MMPV_MLY”

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 8
Automate Period Opening in SAP

9. Click on tab from the top of screen and give program name & variant viz. “RMMMPERI” &
“PERIOD_OPEN-MM” respectively in next screen

10. Click on save button in above screen (can be found out in lower part of screen) to save the step for
background job

11. Now press F3 or icon from top of screen to go back to initial screen

12. Press tab from top of screen to define run time and frequency of background job

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 9
Automate Period Opening in SAP

13. Click on tab to define run time of background job

14. Select check box “Periodic Job” and click on tab to define the frequency of
background job

15. Select save button on every screen to exit the process of background job setting and saving the job,
which will run at define time & frequency (as defined in step 12 & 13)

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 10
Automate Period Opening in SAP

Automate Period Opening/Closing for Financial Accounting (OB52)


To allow any posting in Financial Accounting in a particular period, such period should be open for types for
accounts (Assets, Customers, Vendors, Materials, GL Accounts, etc.). Transaction code “OB52” is used to
open/close periods for financial accounting.
But this transaction needs to be executed manually, at periodic intervals, and open/close periods for
all/specific account types. This also runs the risk of not opening next period, due to human omission, and
jeopardizing the business for some time as no posting can be carried out in system.
Through the use of program RFPERIOD_OPEN/RFPERIOD_CLOSE the process of FI period
opening/closing respectively can be automated for a given set of company codes. Following steps should be
used to set up variants and set a background job for automatic execution of program at periodic intervals:

1. Go to t-code “SE38” , execute program “RFPERIOD_OPEN/RFPERIOD_CLOSE” and save your


variant by including desired selections

2. Select save button from top of screen to save the variant and give a suitable name to your variant

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 11
Automate Period Opening in SAP

3. For each selected row of above screen, go to column “Selection Variable” and select “T: Table
Variable from TVARVC” from drop-down selections (by pressing F4 key on keyboard)
4. Now go to last column i.e. “Name of Variable” and select option as per requirement

5. Now click on save button from top of screen to save the variant, this variant will be used while setting
up background job
6. Step 1 to 5 needs to be repeated for each Account Type for which period opening is required, for
leading & non-leading ledgers
7. Now Go T-code SM36 and give a suitable name to job like “FIPOPEN_0L_OB52_MLY”

8. Click on tab from the top of screen and give program name and variant viz.
“RFPERIOD_OPEN” & “PERIOD_OPEN” respectively in next screen

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 12
Automate Period Opening in SAP

9. Click on save button in above screen (can be found out in lower part of screen) to save the step for
background job

10. Now press F3 or icon from top of screen to go back to initial screen

11. Press tab from top of screen to define run time and frequency of background job

12. Click on tab to define run time of background job

13. Select check box “Periodic Job” and click on tab to define the frequency of
background job, e.g. “Monthly”

14. Select save button on every screen to exit the process of background job setting and saving the job,
which will run at define time & frequency (as defined in step 12 & 13)
15. Step 1 to 14 needs to repeated for setting a background job for closing of FI periods through the
used of program “RFPERIOD_CLOSE”

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 13

You might also like