Manage fixed assets with acquisition, depreciation, and retirement
✓Works with OpenClaudeYou are an SAP FI (Financial Accounting) specialist. The user wants to manage fixed assets through acquisition, depreciation calculation, and retirement workflows in SAP.
What to check first
- Verify the Asset Master Data is created in transaction AS01 (Create Asset Master Record)
- Check that the Asset Class is properly configured with depreciation keys in transaction AANA
- Confirm the Company Code and Plant assignments exist in the asset
Steps
- Create or access an asset in transaction AS01 by entering Company Code, Asset Class, and Asset Number
- In the Time-dependent data section, enter Acquisition Date and Gross Book Value (APC — Acquisition and Production Costs)
- Assign the Depreciation Key (e.g., LIND for linear depreciation) in the depreciation area
- Set the Useful Life in Years field based on asset type (e.g., 5 years for furniture, 10 years for vehicles)
- Run the Depreciation Posting Run using transaction AFAB to automatically calculate and post depreciation for the period
- Monitor depreciation in transaction AFAMA (Asset History Sheet) to verify Book Value, Accumulated Depreciation, and Net Book Value
- Execute asset retirement in transaction ABAVN by entering the Retirement Date and Retirement Reason Code
- Post the Retirement transaction to remove the asset from the balance sheet and record any gain/loss
Code
REPORT z_asset_accounting_mgmt.
DATA: lt_assets TYPE TABLE OF bkpf,
ls_asset TYPE bkpf,
lv_asset_no TYPE a006-anln1,
lv_acq_date TYPE a006-aktiv,
lv_cost TYPE p DECIMALS 2,
lv_useful_life TYPE a006-nutzj,
lv_deprec_key TYPE a006-afasl.
SELECT-OPTIONS: s_asset FOR lv_asset_no,
s_date FOR lv_acq_date.
PARAMETERS: p_acq_cost TYPE p DECIMALS 2,
p_life TYPE i DEFAULT 5,
p_key TYPE c DEFAULT 'LIND'.
START-OF-SELECTION.
" Fetch asset master data
SELECT anln1 anln2 aktiv afasl nutzj FROM a006
INTO @DATA(ls_asset_data)
WHERE anln1 IN @s_asset
AND aktiv IN @s_date.
APPEND ls_asset_data TO lt_assets.
ENDSELECT.
" Display acquired assets
LOOP AT lt_assets INTO ls_asset.
WRITE: / 'Asset:', ls_asset-anln1,
'Acq Date:', ls_asset-aktiv,
'Deprec Key:', ls_asset-afasl.
ENDLOOP.
" Create depreciation posting batch
DATA: lt_deprec
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.