Build organizational structure with org units, positions, and jobs
✓Works with OpenClaudeYou are an SAP HR specialist building organizational structures. The user wants to create and manage org units, positions, and jobs in SAP HR using the standard data model.
What to check first
- Verify
TTEXTandTTXOBtables exist (these store organizational object texts) - Run
SE16Nand check tableOBJECto see existing organizational object types - Confirm authorization object
P_ORGINhas Read/Write access for HR organizational management
Steps
- Create an organizational unit (ORGEH) using function module
HR_MAINTAIN_ORGUNIT_DATAwithPLOGI_ORGUNITstructure containing org unit ID, name, and validity dates - Define the reporting relationship by setting the superior org unit using key
RELTYP= '001' (superior relationship) in tablePLOGORG - Create a position (STELL) using
HR_MAINTAIN_POSITION_DATAfunction module, passing position ID, name, and the parent org unit - Link the position to an organizational unit by maintaining the assignment in
PLOGORGwith record type 'P' - Create a job master (JOBK/JOBP) by calling function module
HR_MAINTAIN_JOB_DATAwith job code, description, and salary group classification - Assign the job to positions via the
PLOGORGtable with relationship type '003' (job classification) - Use transaction
ORAHEADto activate the organizational plan and reconcile any structural conflicts - Validate the structure using
RHSQL00report to check for orphaned objects or missing superior assignments
Code
REPORT zhr_org_management.
DATA: lv_orgunit_id TYPE orgunitid VALUE 'OU-001',
lv_position_id TYPE stell_id VALUE 'POS-001',
lv_job_id TYPE jobk VALUE 'ANALYST',
lv_date TYPE sy-datum.
DATA: ls_orgunit_data TYPE plogunit,
ls_position_data TYPE plogstell,
ls_job_data TYPE plogprofil,
lv_return_code TYPE sy-subrc.
PERFORM init_dates CHANGING lv_date.
"Step 1: Create Organizational Unit
PERFORM create_orgunit
USING lv_orgunit_id
'Sales Division'
lv_date
CHANGING lv_return_code.
IF lv_return_code = 0.
WRITE: / 'Org Unit created:', lv_orgunit_id.
ELSE.
WRITE: / 'Error creating Org Unit:', lv_return_code.
ENDIF.
"Step 2: Create Position
PERFORM create_position
USING lv_position_id
'Sales Manager'
lv_orgunit_id
lv_date
CHANGING l
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.