ESH_S_ACCOUNTING_DOC
Journal Entry
ESH_S_ACCOUNTING_DOC is a CDS View that provides data about "Journal Entry" in SAP S/4HANA. It reads from 1 data source (ESH_N_ACCOUNTING_DOC_BKPF) and exposes 44 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ESH_N_ACCOUNTING_DOC_BKPF | ESH_N_ACCOUNTING_DOC_BKPF | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Language | abap.lang |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ESH_U_ACCOUNTING | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ClientHandling.type | #INHERITED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | Journal Entry | view | |
| Consumption.semanticObject | AccountingDocument | view | |
| ObjectModel.sapObjectNodeType.name | JournalEntry | view | |
| Search.searchable | true | view | |
| EnterpriseSearch.enabled | true | view | |
| UI.headerInfo.title.value | BKTXT | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| bukrs | bukrs | Value | ||
| belnr | belnr | Accounting Document | ||
| gjahr | gjahr | Settlement Year | ||
| blart | blart | Journal Entry Type | ||
| bldat | bldat | Document Date | ||
| budat | budat | Posting Date | ||
| monat | monat | Fiscal Period | ||
| cpudt | cpudt | Created on | ||
| upddt | upddt | Last Update | ||
| usnam | usnam | Created by | ||
| xblnr | xblnr | Reference | ||
| bktxt | bktxt | Header Text | ||
| waers | waers | Transaction Currency | ||
| bstat | bstat | Document Status | ||
| awtyp | awtyp | Reference Document Type | ||
| awkey | awkey | RefKey GJE | ||
| rldnr | rldnr | Ledger (Compat.) | ||
| ldgrp | ldgrp | Target Ledger Group | ||
| butxt | _BKPF2COMPANY_CODE | butxt | Company Code Name | |
| ltext | Journal Entry Type Name | |||
| name_text | Created by User Name | |||
| name1 | Company Name | |||
| ktopl | _BKPF2COMPANY_CODE | ktopl | G/L Chart of Accounts | |
| sgtxt | _BSEG_H2BKPF | sgtxt | Text | |
| wrbtr | _BSEG_H2BKPF | wrbtr | Gross Amount | |
| kokrs | _BSEG_H2BKPF | kokrs | Org. Value | |
| aufnr | _BSEG_H2BKPF | aufnr | SettlementOrder | |
| anln1 | _BSEG_H2BKPF | anln1 | Asset | |
| anln2 | _BSEG_H2BKPF | anln2 | Sub-number | |
| hkont | _BSEG_H2BKPF | hkont | Transfer acct | |
| kunnr | _BSEG_H2BKPF | kunnr | Customer | |
| CustomerName | Customer name | |||
| lifnr | _BSEG_H2BKPF | lifnr | Supplier | |
| SupplierName | Supplier Name | |||
| xref1 | _BSEG_H2BKPF | xref1 | Ref. Key 1 | |
| xref2 | _BSEG_H2BKPF | xref2 | Ref. Key 2 | |
| xref3 | _BSEG_H2BKPF | xref3 | Ref. Key 3 | |
| branch_id | _BSEG_H2BKPF | branch_id | Financial Services Branch | |
| ebeln | _BSEG_H2BKPF | ebeln | Source PurchDoc | |
| zuonr | _BSEG_H2BKPF | zuonr | Finance Project | |
| kostl | _BSEG_H2BKPF | kostl | Substitute CC | |
| prctr | _BSEG_H2BKPF | prctr | Profit Centers | |
| vbel2 | _BSEG_H2BKPF | vbel2 | Sales Document | |
| vbund | _BSEG_H2BKPF | vbund | Trading Partner |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view ESH_S_ACCOUNTING_DOC.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: ESH_U_ACCOUNTING
-- Parameters: P_Language : abap.lang
CREATE VIEW ESH_S_ACCOUNTING_DOC AS
SELECT
bukrs,
belnr,
gjahr,
blart,
bldat,
budat,
monat,
cpudt,
upddt,
usnam,
xblnr,
bktxt,
waers,
bstat,
awtyp,
awkey,
rldnr,
ldgrp,
_BKPF2COMPANY_CODE.butxt AS butxt,
_T003T2BKPF[ 1: spras = $parameters.P_Language ].ltext AS ltext,
_BKPF2USER._TO_USER_NAME.name_text AS name_text,
_BSEG_H2BKPF._BSEG_H2COMPANY.name1 AS name1,
_BKPF2COMPANY_CODE.ktopl AS ktopl,
_BSEG_H2BKPF.sgtxt AS sgtxt,
_BSEG_H2BKPF.wrbtr AS wrbtr,
_BSEG_H2BKPF.kokrs AS kokrs,
_BSEG_H2BKPF.aufnr AS aufnr,
_BSEG_H2BKPF.anln1 AS anln1,
_BSEG_H2BKPF.anln2 AS anln2,
_BSEG_H2BKPF.hkont AS hkont,
_BSEG_H2BKPF.kunnr AS kunnr,
_BSEG_H2BKPF._BSEG_H2KNB1_CUSTOMER._TO_KNB1_CUSTOMER.name1 AS CustomerName,
_BSEG_H2BKPF.lifnr AS lifnr,
_BSEG_H2BKPF._LFB1_CUSTOMER2BSEG_H._TO_LFB1_VENDOR.name1 AS SupplierName,
_BSEG_H2BKPF.xref1 AS xref1,
_BSEG_H2BKPF.xref2 AS xref2,
_BSEG_H2BKPF.xref3 AS xref3,
_BSEG_H2BKPF.branch_id AS branch_id,
_BSEG_H2BKPF.ebeln AS ebeln,
_BSEG_H2BKPF.zuonr AS zuonr,
_BSEG_H2BKPF.kostl AS kostl,
_BSEG_H2BKPF.prctr AS prctr,
_BSEG_H2BKPF.vbel2 AS vbel2,
_BSEG_H2BKPF.vbund AS vbund
FROM ESH_N_ACCOUNTING_DOC_BKPF
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA