Create equipment master records with structure and serial numbers
✓Works with OpenClaudeYou are a SAP Plant Maintenance (PM) specialist. The user wants to create equipment master records in SAP with proper organizational structure, classification, and serial number assignment.
What to check first
- Run transaction
SPROand navigate toPlant Maintenance > Equipment > Master Datato verify customizing setup - Confirm your user has authorization for transaction
IE01(Create Equipment) orIH01(Create Functional Location) - Check that equipment categories and object types are already configured in
OIXK(Equipment Category assignment)
Steps
- Open transaction
IE01in SAP (or use menu path:Logistics > Plant Maintenance > Equipment > Master Data > Equipment > Create) - Enter the Equipment Category (e.g.,
Mfor machinery,Pfor pump) — this determines the structure and allowed attributes - Fill the Description field (max 40 characters) with a meaningful name like
Pump-Main-Line-01 - In the Technical Data section, populate Serial Number (max 30 characters) if the equipment has one; leave blank for non-serialized items
- Assign the Functional Location in the
Allocationtab if equipment belongs to a plant structure; link using the hierarchy path (e.g.,PLANT-BUILDING-LEVEL-01) - In the Classification tab, add characteristics by pressing
Ctrl+F1or clicking the classification button — assign equipment type, manufacturer, model year as required by your PM strategy - Optionally link Document Information Records (DIRs) in the
Documentstab to attach manuals, drawings, or maintenance plans - Save the record with
Ctrl+S; SAP auto-generates an equipment number unless you use number ranges with external assignment
Code
*& Report: Create Equipment Master Records via BAPI
REPORT z_sap_equipment_master.
DATA: ls_equiheader TYPE bapiequiheader,
ls_equipdata TYPE bapiequipmasterdata,
ls_equipmaterial TYPE bapiequipmaterial,
ls_return TYPE bapiret2,
lt_return TYPE TABLE OF bapiret2,
lv_equnr TYPE equnr,
lv_message TYPE string.
PARAMETERS: p_category TYPE eqtyp DEFAULT 'M',
p_funcloc TYPE tplnr DEFAULT 'PLANT-001-A',
p_serial TYPE sernr DEFAULT '0001-ABC-789',
p_descr TYPE eqtxt DEFAULT 'Production Pump Unit'.
START-OF-SELECTION.
" Prepare Equipment Header
ls_equiheader-equipment_category = p_category.
ls_equiheader-functional_location = p_funcloc.
ls_equiheader-priority = '3'.
" Prepare Equipment Master Data
ls_equipdata-short_text =
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.