ESH_S_ACTIVITY_TYPE
Activity Types
ESH_S_ACTIVITY_TYPE is a CDS View that provides data about "Activity Types" in SAP S/4HANA. It reads from 1 data source (ESH_N_ACTIVITY_TYPE_CSLA) and exposes 25 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ESH_N_ACTIVITY_TYPE_CSLA | ESH_N_ACTIVITY_TYPE_CSLA | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_Language | abap.lang | |
| P_ReferenceDate | abap.dats |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ESH_U_ACTIVITY_T | 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 | Activity Types | view | |
| Consumption.semanticObject | ActivityType | view | |
| Search.searchable | true | view | |
| EnterpriseSearch.enabled | true | view | |
| UI.headerInfo.title.value | KTEXT | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| kokrs | kokrs | Org. Value | ||
| lstar | lstar | Activity Type | ||
| datbi | datbi | Valid to | ||
| datab | datab | Valid from | ||
| leinh | leinh | Unit | ||
| latyp | latyp | Activity Category | ||
| ersda | ersda | Created on | ||
| usnam | usnam | Created by | ||
| kstty | kstty | Cost Center Categories | ||
| vksta | vksta | Alloc. CElem | ||
| sprkz | sprkz | Lock indicator | ||
| tarkz | tarkz | Price indicator | ||
| ktext | Activity Type Name | |||
| ltext | Activity Type Description | |||
| bezei | _CSLA2TKA01 | bezei | Controlling Area | |
| txt | ||||
| mseh3 | ||||
| msehl | Activity Unit | |||
| ktopl | _CSLA2TKA01 | ktopl | G/L Chart of Accounts | |
| KTEXT1 | Cost Center Categories | |||
| ddtext | Activity Category | |||
| VALUE_TEXT | Locked | |||
| name_text | Created by | |||
| kostl | _TO_CSSL | kostl | Substitute CC | |
| objnr | _TO_CSSL | objnr | Val. Obj. No. |
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_ACTIVITY_TYPE.
-- 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_ACTIVITY_T
-- Parameters: P_Language : abap.lang, P_ReferenceDate : abap.dats
CREATE VIEW ESH_S_ACTIVITY_TYPE AS
SELECT
kokrs,
lstar,
datbi,
datab,
leinh,
latyp,
ersda,
usnam,
kstty,
vksta,
sprkz,
tarkz,
_TO_CSLT[ 1: spras = $parameters.P_Language and datbi >= $parameters.P_ReferenceDate ].ktext AS ktext,
_TO_CSLT[ 1: spras = $parameters.P_Language and datbi >= $parameters.P_ReferenceDate ].ltext AS ltext,
_CSLA2TKA01.bezei AS bezei,
_CSLA2TKA10._TO_TKT10_1[ 1: langu = $parameters.P_Language ].txt AS txt,
_CSLA2T006A[ 1: spras = $parameters.P_Language ].mseh3 AS mseh3,
_CSLA2T006A[ 1: spras = $parameters.P_Language ].msehl AS msehl,
_CSLA2TKA01.ktopl AS ktopl,
_CSLA2TKT05[ 1: spras = $parameters.P_Language ].ktext AS KTEXT1,
_CSLA2DD07T[ 1: ddlanguage = $parameters.P_Language ].ddtext AS ddtext,
_CSLA2XFELD[ 1: DOMALANGU = $parameters.P_Language ].VALUE_TEXT AS VALUE_TEXT,
_CSLA2USER._TO_USER_NAME.name_text AS name_text,
_TO_CSSL.kostl AS kostl,
_TO_CSSL.objnr AS objnr
FROM ESH_N_ACTIVITY_TYPE_CSLA
;
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