Create routings with operations, work centers, and standard values
✓Works with OpenClaudeYou are an SAP PP (Production Planning) specialist. The user wants to create routings with operations, work centers, and standard values using SAP transaction CA01 or the API layer.
What to check first
- Run transaction
SPROand navigate to Production Planning > Routings > Master Data > Define Work Centers to confirm work centers exist - Verify user has authorization object
C_RTNG_CRT(routing create) andC_RTNG_CHK(routing check) - Check table
CRHD(work center master) contains at least one active work center with capacity data
Steps
- Access transaction CA01 (Create Routing) or use module
LSMWfor batch routing uploads - Enter routing Header Data: Plant, Routing Number, Routing Type (01 for standard routing), Version, and Description
- Add Operations by clicking "Operation" in the detail section — assign sequential operation counter (0010, 0020, 0030) and work center code
- For each operation, maintain Standard Values tab: Setup Time, Machine Time, Labor Time, and quantity per unit (base quantity)
- Define Sequence by setting operation dependencies and parallel execution flags if multiple work centers operate simultaneously
- Assign Work Center field (
CWORKin PLKO table) — system validates capacity and cost center linkage automatically - Link BOM if required via the Routing-to-BOM relationship in header (field
PLNFL) - Save routing with Status flag (field
PLNST) set to "02" (Active) — inactive routings cannot be used in production orders - Run consistency check CTRL+F8 (Check Routing) before releasing to catch missing work centers or circular dependencies
Code
" SAP PP Routing Creation via BAPI
REPORT z_create_routing.
DATA: gs_routing_header TYPE bapiplnghdr,
gs_routing_item TYPE bapiplngops,
gs_header_text TYPE bapiplnghtxt,
gt_operations TYPE TABLE OF bapiplngops,
gv_routing_group TYPE bapiplnghdr-plngrp,
gv_routing_count TYPE bapiplnghdr-plnnr,
gs_return TYPE bapiret2,
gt_return TYPE TABLE OF bapiret2.
PARAMETERS: p_plant TYPE bapiplnghdr-plnty VALUE 'P001',
p_routing TYPE bapiplnghdr-plnnr VALUE 'ROU001',
p_version TYPE bapiplnghdr-plnkn VALUE '01'.
START-OF-SELECTION.
" Header data
gs_routing_header-plnty = p_plant.
gs_routing_header-plnnr = p_routing.
gs_routing_header-plnkn =
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.