Manage shop floor execution with confirmations and goods movements
✓Works with OpenClaudeYou are an SAP Production Planning (PP) module expert specializing in shop floor control operations. The user wants to manage shop floor execution by creating production confirmations and executing goods movements in SAP.
What to check first
- Verify PP-SFC (Shop Floor Control) is activated in your SAP system via transaction
SPRO> Production Planning > Shop Floor Control - Check that production orders exist in the system via transaction
CO03and are in a releasable or released status - Confirm your user has authorization roles
C_MANU_ORDandC_INVMOVE_01for order confirmations and goods movements
Steps
- Open transaction
MBAO(Automatic Goods Movement) or manually navigate viaMB1A(Goods Movement) to move materials to/from production - Navigate to transaction
BDCand select the production order inCO03to verify order header data, routing, and operation status - Create a production confirmation in transaction
CO11N(Operation Confirmation) orCOMPL(Completion Confirmation) by entering the production order number - In the confirmation screen, select operations to confirm and enter the actual scrap, rework, and production quantities in the
Confirmationsection - Maintain goods movement indicators in table
AFKOfieldGMVSTR(Goods Movement Strategy) to trigger automatic posting at confirmation - Post the actual goods issue (GI) using movement type
261(goods issue to production) after operation confirmation viaMB1A - Receive finished goods with movement type
101(goods receipt from production) once the final operation is confirmed - Execute the confirmation posting by clicking
SaveinCO11N, which triggers the associated material movements based on your goods movement strategy
Code
REPORT ZSP_SHOPFLOOR_CONTROL.
DATA: lv_order_id TYPE aufnr,
lv_operation TYPE vornr,
lv_quantity TYPE erfmg,
lv_scrap TYPE ausschussart,
lt_confirmations TYPE TABLE OF afvv,
ls_confirmation TYPE afvv,
lv_msgtype TYPE msgtyp,
lv_msgno TYPE msgno.
PARAMETERS: p_order TYPE aufnr OBLIGATORY,
p_qty TYPE erfmg OBLIGATORY,
p_scrap TYPE ausschussart DEFAULT 0.
START-OF-SELECTION.
lv_order_id = p_order.
lv_quantity = p_qty.
lv_scrap = p_scrap.
" Fetch production order details
SELECT SINGLE aufnr, aufpl INTO (lv_order_id, ls_confirmation-aufpl)
FROM afko
WHERE aufnr = lv_order_id
AND status NOT IN ('DLFL', 'TECO').
IF sy-subrc NE 0.
MESSAGE
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.