ANEK table — ANEK Asset Accounting Document Header
ANEK stores one row per asset accounting document header - the header record created whenever a business transaction (acquisition, retirement, transfer, depreciation posting run) touches Asset Accounting. It does not hold the asset number or the posted amount; those live in the line item table ANEP, which shares the same BUKRS, GJAHR and document sequence key with ANEK.
ANEK is the header table for Asset Accounting postings, sitting one level above the per-asset line items in ANEP. This page covers its key fields, how it joins to ANEP, ANLA, ANLC and BKPF, and the recurring mistake of treating an ANEK row as if it already identifies an asset or an amount.
Published 15 Sept 2026· 1,031 words
What it stores
One row in ANEK represents the header of a single document created inside Asset Accounting - not the individual asset movement itself. Whenever a transaction posts to one or more fixed assets (an acquisition, a retirement, an intercompany transfer, a depreciation run for a period, a manual value correction), the system writes one ANEK header for that document within a company code and fiscal year. The header carries posting metadata: dates, user, transaction code, business transaction type, currency, and a reversal flag. It deliberately does not carry the asset number, the transaction type per asset, or any amount - those belong to the associated rows in ANEP, sometimes several ANEP rows per single ANEK header when one document affects multiple assets, such as a depreciation posting run.
Key fields
- MANDT - client
- BUKRS - company code the document was posted in
- GJAHR - asset accounting fiscal year of the document (can differ subtly from the accounting document's own fiscal year if fiscal year variants differ)
- LNRAN - sequential document number within Asset Accounting, unique only in combination with BUKRS and GJAHR, not globally
- BELNR - accounting document number in BKPF that this asset posting is linked to
- BLDAT - document date
- BUDAT - posting date
- CPUDT and CPUTM - entry date and time
- USNAM - user who created the posting
- TCODE - transaction used to create it
- GLVOR - business transaction type driving the posting (acquisition, retirement, depreciation run, etc.)
- XSTOV - reversal indicator on the header
- WAERS - document currency
How it joins the data model
- ANEK-BUKRS/GJAHR/LNRAN = ANEP-BUKRS/GJAHR/LNRAN to pull the per-asset line items belonging to this header
- ANEK-BUKRS/BELNR/GJAHR = BKPF-BUKRS/BELNR/GJAHR to reach the general accounting document header this posting is tied to
- ANEP-ANLN1/ANLN2/BUKRS = ANLA-ANLN1/ANLN2/BUKRS to identify the actual asset master record affected
- ANEP-ANLN1/ANLN2/BUKRS/GJAHR = ANLC-ANLN1/ANLN2/BUKRS/GJAHR to reach the asset's annual value totals for that fiscal year
How to read it safely
Always restrict on MANDT and BUKRS before anything else; ANEK spans every company code and every fiscal year Asset Accounting has ever posted in, and it grows with every depreciation run, so an unrestricted select is expensive. GJAHR is the second mandatory filter for any reasonable selectivity. LNRAN is not a date-ordered or globally unique key, so do not use range selection on it expecting chronological order across company codes or years; use BUDAT or BLDAT for date filtering instead. Because ANEK carries no asset number, any selection intended to find postings against a specific asset has to start from ANEP or ANLA and join back to ANEK, not the other way around.
How to prove it in the data
Symptom: an asset acquisition was posted but does not show up in the depreciation forecast for the period. Selection: query BKPF for the FI document number and company code to get GJAHR and BELNR, then select ANEK on BUKRS, GJAHR and BELNR to find the matching LNRAN, then select ANEP on that BUKRS, GJAHR, LNRAN to see the actual asset (ANLN1/ANLN2) and transaction type posted, and check XSTOV on the ANEK row to confirm the document was never reversed.
ECC vs S/4HANA
ANEK continues to exist in S/4HANA and is still populated when classic Asset Accounting postings occur, largely for backward compatibility with reports and interfaces built against it. The authoritative record of the posting, including amounts and the full universal journal view, sits in ACDOCA, which carries the asset dimension fields directly on the journal entry line. New reporting and analytics work is generally built against ACDOCA or its CDS views rather than against ANEK and ANEP directly, though the classic tables remain usable for existing custom reports.
Common pitfalls
- Expecting to find the asset number in ANEK - it is not there; every query aimed at a specific asset must go through ANEP or start from ANLA and join outward, otherwise the result set is empty or meaningless
- Treating LNRAN as a globally unique or chronologically ordered document number - it only has meaning inside a given BUKRS and GJAHR
- Counting ANEK rows to estimate how many asset transactions occurred in a period - a single depreciation posting run generates one ANEK header covering many assets, so the header count wildly understates transaction volume; count ANEP rows instead
- Assuming GJAHR in ANEK always matches the fiscal year on the linked BKPF document - differences in fiscal year variant handling between Asset Accounting and General Ledger can cause a mismatch that breaks a naive join and silently drops rows
- Ignoring the XSTOV reversal flag on the header and treating a reversed posting as still active when reconciling asset values against the general ledger
- Assuming amounts can be read directly off ANEK - there is no posting amount on the header; amounts live on ANEP and the annual value tables, and pulling a number from the wrong table produces a plausible-looking but wrong figure
Whose problem this is
A data question on ANEK belongs to whoever owns Asset Accounting configuration and postings on the project, typically the FI-AA lead, not the general ledger or accounts payable team. Discrepancies between asset postings and the general ledger usually require someone who also understands the depreciation area and transaction type setup, since the header alone cannot explain a wrong amount or a missing line.
Related SAP objects
Reviewed pages this object connects to in the ERPClimb knowledge graph.
Source: ERPClimb — https://erpclimb.com/sap-tables/anekERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.