Build functional location hierarchy for plant maintenance
✓Works with OpenClaudeYou are an SAP PM functional location specialist. The user wants to build and configure a functional location hierarchy for plant maintenance operations.
What to check first
- Verify user has transaction code access:
TCODE IL01(Create Functional Location),IL02(Change),IL03(Display) - Check if organizational plant is assigned: Navigate to
SPRO > Plant Maintenance > Technical Objects > Functional Locations > Define Functional Location Categories - Confirm user role includes PM authorization object
S_ILOA_CRT(create) andS_ILOA_CHG(change)
Steps
- Access transaction
IL01in SAP and select your plant from the selection screen - Enter a functional location name in the
Functional Locationfield using naming convention:PLANT-AREA-SYSTEM-LEVEL(e.g.,PL01-PROD-PUMP-001) - In the
Categorydropdown, select the appropriate functional location category (typicallyAfor equipment orBfor assemblies) - Fill the
Descriptionfield with clear maintenance context (e.g., "Main Production Pump - Building A") - In the
Structure Indicatorsection, assign the parent functional location by entering it in theSuperior Functional Locationfield to create hierarchy levels - Set the
Installation StatustoPLAN(planned),INST(installed), orDECOM(decommissioned) based on current state - On the
Addresstab, assign the work center responsible for maintenance using theMaintenance Work Centerfield - Configure the
Parameterstab by selecting applicable technical characteristics (pressure ratings, temperature limits, capacity) - Save the functional location with
Ctrl+Sand note the system-generated technical ID
Code
REPORT zpm_functional_location_create.
DATA: lt_iflotx TYPE TABLE OF iflotx,
ls_iflotx TYPE iflotx,
lt_tplkt TYPE TABLE OF tplkt,
ls_tplkt TYPE tplkt,
lv_funcloc TYPE iloa-tplnr,
lv_parent TYPE iloa-struc,
lv_plant TYPE iloa-werks.
PARAMETERS: p_plant TYPE iloa-werks DEFAULT '1000',
p_parent TYPE iloa-tplnr,
p_funcloc TYPE iloa-tplnr,
p_desc TYPE iloa_txt-pltxt.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE 'Functional Location Data'.
PARAMETERS: p_categ TYPE iloa-ilokz DEFAULT 'A',
p_status TYPE iloa-statxt DEFAULT 'INST',
p_wcenter TYPE iloa-inawz.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN.
SELECT SINGLE
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.