ESH_S_GL_ACCOUNT
GL Account
ESH_S_GL_ACCOUNT is a CDS View that provides data about "GL Account" in SAP S/4HANA. It reads from 1 data source (ESH_N_GL_ACCOUNT_CCOUNT_MASTER) and exposes 24 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ESH_N_GL_ACCOUNT_CCOUNT_MASTER | ESH_N_GL_ACCOUNT_CCOUNT_MASTER | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Language | abap.lang |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ESH_U_GL_ACCOUNT | 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 | GL Account | view | |
| Consumption.semanticObject | GLAccount | view | |
| Search.searchable | true | view | |
| EnterpriseSearch.enabled | true | view | |
| UI.headerInfo.title.value | TXT20 | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.sapObjectNodeType.name | GeneralLedgerAccount | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ktopl | ktopl | G/L Chart of Accounts | ||
| saknr | saknr | G/L Account | ||
| xbilk | xbilk | Checkbox | ||
| erdat | erdat | Created on | ||
| ernam | ernam | Created by ID | ||
| ktoks | ktoks | Account Group ID | ||
| vbund | vbund | Trading Partner ID | ||
| func_area | func_area | Receiving Func. Area | ||
| txt20 | Description | |||
| VALUE_TEXT | Chart of Accounts Name | |||
| VALUE_TEXT1 | Balance Sheet Account | |||
| TXT301 | Account Group | |||
| name1 | _GL_ACCOUNT_MASTER2COMPANY | name1 | Trading Partner | |
| txt50 | G/L account Text in Chart of Accounts | |||
| name_text | Created by | |||
| butxt | Company Code | |||
| DDTEXT | Account is reconciliation account | |||
| togru | _SKB12GL_ACCOUNT_MASTER | togru | Tolerance Group | |
| txt30 | Tolerance group name | |||
| bukrs | _SKB12GL_ACCOUNT_MASTER | bukrs | Value | |
| waers | _SKB12GL_ACCOUNT_MASTER | waers | Account Currency | |
| mwskz | _SKB12GL_ACCOUNT_MASTER | mwskz | Tax Category | |
| altkt | _SKB12GL_ACCOUNT_MASTER | altkt | Group Account Number | |
| VALUE_TEXT2 | Open Item Management Enabled |
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_GL_ACCOUNT.
-- 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_GL_ACCOUNT
-- Parameters: P_Language : abap.lang
CREATE VIEW ESH_S_GL_ACCOUNT AS
SELECT
ktopl,
saknr,
xbilk,
erdat,
ernam,
ktoks,
vbund,
func_area,
_TO_SKAT[ 1: spras = $parameters.P_Language ].txt20 AS txt20,
_GL_ACCOUNT_MASTER2KTOPL[ 1: DOMALANGU = $parameters.P_Language ].VALUE_TEXT AS VALUE_TEXT,
_GL_ACCOUNT_MASTER2XFELD[ 1: DOMALANGU = $parameters.P_Language ].VALUE_TEXT AS VALUE_TEXT1,
_GL_ACCOUNT_MASTER2T077Z[ 1: spras = $parameters.P_Language ].txt30 AS TXT301,
_GL_ACCOUNT_MASTER2COMPANY.name1 AS name1,
_TO_SKAT[ 1: spras = $parameters.P_Language ].txt50 AS txt50,
_GL_ACCOUNT_MASTER2USER._TO_USER_NAME.name_text AS name_text,
_SKB12GL_ACCOUNT_MASTER._SKB12COMPANY_CODE.butxt AS butxt,
_SKB12GL_ACCOUNT_MASTER._MITKZ_2_SKB1[ 1: DOMALANGU = $parameters.P_Language ].VALUE_TEXT AS DDTEXT,
_SKB12GL_ACCOUNT_MASTER.togru AS togru,
_SKB12GL_ACCOUNT_MASTER._SKB12TOGRU_T[ 1: spras = $parameters.P_Language ].txt30 AS txt30,
_SKB12GL_ACCOUNT_MASTER.bukrs AS bukrs,
_SKB12GL_ACCOUNT_MASTER.waers AS waers,
_SKB12GL_ACCOUNT_MASTER.mwskz AS mwskz,
_SKB12GL_ACCOUNT_MASTER.altkt AS altkt,
_SKB12GL_ACCOUNT_MASTER._XFELD_2_SKB1[ 1: DOMALANGU = $parameters.P_Language ].VALUE_TEXT AS VALUE_TEXT2
FROM ESH_N_GL_ACCOUNT_CCOUNT_MASTER
;
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