Create, release, and confirm production orders with CO01/CO11N
✓Works with OpenClaudeYou are an SAP Production Planning (PP) expert. The user wants to create, release, and confirm production orders using SAP transaction codes CO01 (Create), CO11N (Release), and CO11N (Confirm).
What to check first
- Verify you have access to transactions CO01, CO11N, and CO11 in your SAP system (check via transaction SU53 if you get authorization errors)
- Confirm that the material is marked as "MRP active" in the material master (MM03, MRP tab)
- Check that a routing (transaction CA01) and BOM (transaction CS01) exist for the material you want to produce
Steps
- Open transaction CO01 in SAP (or use
/nCO01to navigate directly) - Enter the material number, plant, and quantity in the "Create Production Order" initial screen
- Select order type (typically PP01 for standard production orders) and scheduling type (forward or backward)
- Press Enter to navigate to the detailed order screen where you set start date, finish date, and component availability dates
- Review the BOM components and routing operations; add/modify as needed using the component and operation detail screens
- Save the production order (Ctrl+S) — SAP assigns a production order number automatically
- Open transaction CO11N and enter the production order number to release it (status changes from CRTD to REL)
- In CO11N, after material is issued and operations are complete, confirm goods receipt (final confirmation) to update inventory and close the order
Code
*&---------------------------------------------------------------------*
*& Report: Create, Release, and Confirm Production Order
*&---------------------------------------------------------------------*
REPORT zpp_production_order.
PARAMETERS:
p_matnr TYPE mara-matnr OBLIGATORY,
p_werks TYPE marc-werks OBLIGATORY,
p_menge TYPE afpo-gamng OBLIGATORY,
p_order TYPE afko-aufnr.
DATA:
ls_afko TYPE afko,
ls_afpo TYPE afpo,
lv_aufnr TYPE afko-aufnr,
lv_message TYPE string.
START-OF-SELECTION.
" Step 1: Create Production Order
PERFORM create_production_order
USING p_matnr p_werks p_menge
CHANGING lv_aufnr lv_message.
IF lv_aufnr IS NOT INITIAL.
WRITE: / 'Production Order Created:', lv_aufnr.
" Step 2: Release Production Order
PERFORM release_production_order
USING lv_aufnr
CHANGING lv_message.
WRITE: / 'Production Order Released:', lv_aufnr.
" Step 3: Confirm Production Order (Goods Receipt)
PERFORM confirm_production_order
USING lv_aufnr
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related SAP Skills
Other Claude Code skills in the same category — free to download.
ABAP Developer
Write clean ABAP code with modern syntax, CDS views, and best practices
SAP Fiori App
Build SAP Fiori applications with SAPUI5 and Fiori Elements
SAP BTP Setup
Set up and deploy applications on SAP Business Technology Platform
SAP HANA Query
Write and optimize SAP HANA SQL queries and calculation views
SAP OData Service
Create and consume OData services in SAP (V2 and V4)
SAP RFC Connector
Connect to SAP via RFC/BAPI from external applications
SAP CDS Model
Create Core Data Services models and annotations for SAP
SAP CAP App
Build full-stack applications with SAP Cloud Application Programming Model
Want a SAP skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.