# How to Create a Control Key in SAP PP (OPJ8)

> Source: https://netray.co/erp-help/sap-pp-control-key-opj8-how-to
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: ERP Help

## Short answer

A control key tells SAP what an operation is allowed to do: be scheduled, costed, confirmed, printed, sent for external processing. Create one with transaction OPJ8 (or SPRO > Production > Basic Data > Routing > Operation Data > Define Control Key), copy a standard key such as PP01, change the indicators, and assign it in the routing or work center.

## Kind

how-to

## System

sap

## Erp

SAP S/4HANA and ECC

## Module

Production Planning / Routing and Shop Floor Control

## Query

how to create control key in sap pp

## Alternate Queries

- sap pp control key configuration
- OPJ8 control key sap
- sap control key indicators

## Applies To

SAP ECC 6.0 and SAP S/4HANA on-premise

## Steps

### Create a control key

**Items:**

- Run OPJ8 (Maintain Control Keys for task lists and orders). Do not edit the standard keys, copy one instead.
- Select the nearest standard key (PP01 for an in-house operation) and choose Copy As, then enter a new key in your customer namespace (for example Z001 or ZP01).
- Give it a description that explains the use, such as 'In-house with confirmation'.
- Set the indicators: scheduling, capacity planning, automatic goods receipt, cost, confirmation, print time tickets, external processing, and so on.
- Save to a customizing request.
- Assign the key at the work center (Default values tab) so new operations pick it up, and in the routing operation (CA01 or CA02).
- Test by creating a production order (CO01) and confirming the operation with CO11N.

## Sections

### What the main indicators do

**Body:**

Scheduling decides whether the operation takes part in lead-time scheduling. Without it the operation gets no dates. Capacity planning decides whether capacity requirements are generated for the work center. Costing decides whether the operation is costed in the standard cost estimate and the production order.

Confirmation is a three-state choice: confirmation required, optional or not possible. If an operation will not confirm, this is the first thing to check. Automatic goods receipt posts the receipt of the finished material at confirmation of the final operation, and is useful for backflush environments.

External processing indicator sets the operation for subcontracting. It makes the system generate a purchase requisition and expects a different data entry in the routing (purchasing info record, plant, material group). Do not set it on an in-house operation.

### Printing and milestone indicators

**Body:**

Print time tickets and print confirmation controls whether the production order print includes these documents. Printing is in practice an order-level setting, but the control key decides whether each operation is eligible.

Milestone indicator is used for milestone confirmation and milestone-based costing, such as the progress of a long order. If you rely on milestone confirmation in the order, an operation without this flag will not trigger it.

Rework and inspection characteristics indicators exist so that operations related to quality are handled consistently. Copy these settings from the standard QM-related keys rather than guessing.

### Where the key is used and how to test

**Body:**

The key is on the operation in the routing, and it defaults from the work center when the work center is chosen. The production order copies the operation from the routing, so changing the key later does not update existing orders. You must update or re-explode them.

To verify, create a production order with a material that uses the new key, display the operation and look at the Control key field, then confirm it in CO11N. Check that costs appear on the order, capacity requirements in CM01, and that the confirmation behaves as designed.

Always transport the key in the same request as the work center or routing changes that reference it, otherwise the target system rejects the assignment.

**Code:**

- OPJ8   Maintain control keys
- SPRO > Production > Basic Data > Routing > Operation Data > Define Control Key
- CR02   Work center > Default values > Control key
- CA02   Routing > Operation overview > Control key

## Pitfalls

- Editing the delivered keys directly, which is overwritten by upgrades and support packs.
- Setting confirmation to 'not possible' on an operation shop floor staff need to confirm.
- Using external processing on a normal operation, creating unwanted purchase requisitions.
- Changing a key and expecting open production orders to change automatically.
- Forgetting the cost indicator, leaving the operation with no planned cost.

## Ai Angle

Control key issues often show up as a symptom in production: an operation that will not confirm, has no cost, or creates a purchase requisition. A grounded assistant can read the operation, its control key and the key's indicators and tell the planner which flag explains it. Netray's read-only layer can be hosted on the customer's own servers so shop floor and routing data never leaves the building.

## Faq

### What is the tcode for control key in SAP PP?

**Answer:** OPJ8 is the commonly used transaction for maintaining control keys. The same node is available through SPRO under Production > Basic Data > Routing > Operation Data > Define Control Key.

### Which standard control key is used for in-house operations?

**Answer:** PP01 is the standard in-house key for production operations. For external processing, PP02 is the usual standard key. Copy the one closest to your need into the customer namespace.

### Why can I not confirm an operation?

**Answer:** Check the control key first. If confirmation is set to not possible on the key, the operation will refuse confirmation. After that, check the order or operation status for a technical completion or delivery block.

### Do control key changes affect existing orders?

**Answer:** No. Orders copy the operation data from the routing at creation. Existing orders keep their old control key until the operation is changed or the order is re-exploded.

## Search terms

how to create control key in sap pp, sap pp control key configuration, opj8 sap, sap control key routing, sap pp01 control key, sap control key indicators, define control key sap, sap operation control key not confirmable

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
