How to Automate Period Closing Within Controlling

  • by Kees van Westerop, Senior SAP Consultant, Kwest Consulting
  • November 4, 2015
Learn how to schedule the period closing transaction for Controlling (CO) using a new program.
Learning Objectives

After reading this article, you’ll know how to:

  • Schedule closing/opening transactions with Controlling
  • Set up flexible variants for a closing program
Key Concept
RKCOOKP1 is a program that enables you to schedule the transaction for closing within Controlling (CO) as a background program in an SAP system. SAP has developed two enhancements for this program: RKCOOKP1_MORE and RKCOOKP1_MULTI.

Normally the transaction for closing within Controlling (CO) is executed in the foreground using transaction code OKP1 (Maintain Period Lock). This transaction is used for both planning and actual CO transactions. Examples of CO transactions are cost center planning and actual settlements.

However, the disadvantage of this transaction is that mistakes can be made or it may be forgotten.

There is a little-known program that allows you to schedule this program as a background job. Program RKCOOKP1 is described in SAP Note 417041.

SAP has developed two enhancements for program RKCOOKP1:

  • RKCOOKP1_MORE, which enables you to execute the closing for multiple years. It is described in SAP Note 1457107.
  • RKCOOKP1_MULTI, which enables you to execute the closing for multiple years and multiple controlling areas. It is described in SAP Note 1781268.

These notes also show which Support Package contains which program.

In this article I first explain how the online transaction OKP1 for closing CO transactions works. This explanation of transaction OKP1 is required to understand how the background programs for closing in CO work. I also explain on a high level how the programs can be scheduled as background jobs.

In my examples I use the program RKCOOKP1_MULTI because it has the most options. You follow the same steps to set up the RKCOOKP1_MORE and RKCOOKP1 enhancement programs.

Understanding the Maintain Period Lock Transaction (OKP1)

To explain briefly how the Maintain Period Lock transaction works, I use Controlling Area 0001, the standard available SAP Controlling Area.

Execute transaction code OKP1 and follow menu path Accounting > Controlling > Cost Element Accounting > Environment > Period Lock. In the selection screen that appears (Figure 1), you must choose between Actual and Plan data. The Actual and Plan buttons are at the top of the screen. You also need to enter data in the Controlling Area and Fiscal Year fields. When you are entering plan data, you must also enter data in the Version field. When you finish entering the selection data, click either the Actual or the Plan button.

Figure 1
The Change Period Lock selection screen

Kees van Westerop

Kees van Westerop has been working as an SAP consultant for more than 25 years. He has an MBA degree in mathematics and a degree in finance. Kees has been concentrating on the financial modules, especially in general ledger accounting, cost center accounting, and consolidation. He also has a great deal of experience with rollouts of kernel systems and integrating finance and logistics.

See more by this author


No comments have been submitted on this article. 

Please log in to post a comment.

To learn more about subscription access to premium content, click here.