Create and manage internal orders for overhead cost controlling
✓Works with OpenClaudeYou are an SAP CO (Controlling) specialist. The user wants to create and manage internal orders for overhead cost controlling in SAP.
What to check first
- Verify
COmodule is active in your SAP system via transactionSPRO→ SAP Reference IMG - Check that Internal Order type
0100or similar exists via transactionKOT2(Define Internal Order Types) - Confirm cost center hierarchy is set up in transaction
KS01(Create Cost Center)
Steps
- Open transaction
KO01(Create Internal Order) and select the appropriate order type (typically0100for overhead orders) - Enter the internal order number (can be manually assigned or auto-generated based on number range via
KO02) - Assign the order to a cost center using the
Responsible Cost Centerfield - Set the order status to
Activein theStatus Managementsection to enable posting - Define the controlling area and plant in the header data
- Assign a cost element group in the
Additional Datatab to control which cost elements can be posted - Enter budget amounts in transaction
KO22(Budget for Internal Orders) if cost control is required - Post expenses to the internal order via transaction
F-02(Post Document) using cost element assignments - Close the internal order in
KO02when the project/period ends by changing status toClosed - Generate cost reports in transaction
KSV3(Cost Center Line Items) orKSBT(Internal Order Line Items) for analysis
Code
*&---------------------------------------------------------------------*
*& Report: Create and Monitor Internal Orders
*&---------------------------------------------------------------------*
REPORT zco_internal_order.
TABLES: aufk, aufv, cosp.
DATA: ls_aufk TYPE aufk,
ls_aufv TYPE aufv,
lt_aufk TYPE TABLE OF aufk,
lv_ordnum TYPE aufnr,
lv_kostl TYPE kostl,
lv_verar TYPE verar,
lv_budget TYPE dmbtr,
lv_prctr TYPE prctr.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
PARAMETERS: p_ktyp TYPE aufart DEFAULT '0100',
p_kostl TYPE kostl OBLIGATORY,
p_budget TYPE dmbtr,
p_action TYPE c DEFAULT 'C' AS LISTBOX VISIBLE LENGTH 10.
SELECTION-SCREEN COMMENT 5(30) TEXT-002.
SELECT-OPTIONS: s_ornum FOR aufk-aufnr.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
PERFORM populate_actions.
START-OF-SELECTION.
CASE p_action.
WHEN 'C'.
PERFORM create_internal_order.
WHEN 'M'.
PERFORM modify_
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.