Automatic Period Opening
Automatic Period Opening
Automatic Period Opening
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:
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
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
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
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