ESH_ACTIVITYTYPE_BASIS
Basis view for ESH ActivityType
ESH_ACTIVITYTYPE_BASIS is a CDS View that provides data about "Basis view for ESH ActivityType" in SAP S/4HANA. It reads from 1 data source (I_CostCenterActivityType) and exposes 32 fields with key fields ControllingArea, CostCtrActivityType, ValidityEndDate. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CostCenterActivityType | I_CostCenterActivityType | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | ESH_N_USER_USER | _EnteredByUser | $projection.EnteredByUser = _EnteredByUser.bname |
| [0..1] | I_UnitOfMeasure | _CostCtrActyTypeOutpQtyUnit | $projection.CostCtrActivityTypeOutpQtyUnit = _CostCtrActyTypeOutpQtyUnit.UnitOfMeasure |
| [0..*] | ESH_N_XFELD_3_XFELD | _ActivityTypeIsBlockedText | $projection.ActivityTypeIsBlocked = _ActivityTypeIsBlockedText.domvalue_l |
| [0..1] | dd07t | _CostCenterActivityTypeCatText | $projection.CostCtrActivityTypeCategory = _CostCenterActivityTypeCatText.domvalue_l and _CostCenterActivityTypeCatText.domname = 'LATYP' |
| [1..1] | tka01 | _ControllingArea | $projection.ControllingArea = _ControllingArea.kokrs |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ESHACTIVITYTYPEB | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| EndUserText.label | Basis view for ESH ActivityType | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingArea | ControllingArea | Controlling Area | |
| KEY | CostCtrActivityType | CostCtrActivityType | Activity Type | |
| KEY | ValidityEndDate | ValidityEndDate | ValidTo | |
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| CostCtrActivityTypeName | ||||
| CostCtrActivityTypeDesc | ||||
| CostCtrActivityTypeQtyUnit | CostCtrActivityTypeQtyUnit | Unit | ||
| UnitOfMeasureName | ||||
| CostCtrActivityTypeValidCat | CostCtrActivityTypeValidCat | CCtr Categories | ||
| CostCtrActivityTypeCategory | CostCtrActivityTypeCategory | ATyp category | ||
| CostCtrActivityTypeCatName | ||||
| AllocationCostElement | AllocationCostElement | Alloc. CElem | ||
| ChartOfAccounts | _ControllingArea | ktopl | G/L Chart of Accounts | |
| CreationDate | CreationDate | Time Stamp | ||
| EnteredByUser | EnteredByUser | User Name | ||
| FullName | ||||
| PriceAllocationMethod | PriceAllocationMethod | Price indicator | ||
| ActualPriceAllocationMethod | ActualPriceAllocationMethod | Act. price ind. | ||
| ActivityTypeIsBlocked | ActivityTypeIsBlocked | Lock indicator | ||
| ActivityTypeIsBlockedName | ||||
| CostCtrActivityTypeOutpQtyUnit | CostCtrActivityTypeOutpQtyUnit | Output Unit | ||
| CostCtrActyTypeOutpQtyUnitName | ||||
| OutputQuantityFactor | OutputQuantityFactor | Output factor | ||
| _Text | _Text | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenterCategory | _CostCenterCategory | |||
| _CostCtrActivityTypeCategory | _CostCtrActivityTypeCategory | |||
| _CostCenterActivityTypeCatText | _CostCenterActivityTypeCatText | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _ControllingAreaText | _ControllingAreaText | |||
| _EnteredByUser | _EnteredByUser | |||
| _ActivityTypeIsBlockedText | _ActivityTypeIsBlockedText |
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_ACTIVITYTYPE_BASIS.
-- 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: ESHACTIVITYTYPEB
CREATE VIEW ESH_ACTIVITYTYPE_BASIS AS
SELECT
ControllingArea,
CostCtrActivityType,
ValidityEndDate,
ValidityStartDate,
_Text[ 1:Language = $session.system_language ].CostCtrActivityTypeName AS CostCtrActivityTypeName,
_Text[1:Language = $session.system_language].CostCtrActivityTypeDesc AS CostCtrActivityTypeDesc,
CostCtrActivityTypeQtyUnit,
_UnitOfMeasure._Text[1:Language = $session.system_language].UnitOfMeasureName AS UnitOfMeasureName,
CostCtrActivityTypeValidCat,
CostCtrActivityTypeCategory,
_CostCenterActivityTypeCatText[1:ddlanguage = $session.system_language].ddtext AS CostCtrActivityTypeCatName,
AllocationCostElement,
_ControllingArea.ktopl AS ChartOfAccounts,
CreationDate,
EnteredByUser,
_EnteredByUser._TO_USER_NAME.name_text AS FullName,
PriceAllocationMethod,
ActualPriceAllocationMethod,
ActivityTypeIsBlocked,
_ActivityTypeIsBlockedText[ 1: DOMALANGU = $session.system_language ].VALUE_TEXT AS ActivityTypeIsBlockedName,
CostCtrActivityTypeOutpQtyUnit,
_CostCtrActyTypeOutpQtyUnit._Text[1:Language = $session.system_language].UnitOfMeasureName AS CostCtrActyTypeOutpQtyUnitName,
OutputQuantityFactor
FROM I_CostCenterActivityType
LEFT OUTER JOIN ESH_N_USER_USER AS _EnteredByUser ON EnteredByUser = _EnteredByUser.bname -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _CostCtrActyTypeOutpQtyUnit ON CostCtrActivityTypeOutpQtyUnit = _CostCtrActyTypeOutpQtyUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN ESH_N_XFELD_3_XFELD AS _ActivityTypeIsBlockedText ON ActivityTypeIsBlocked = _ActivityTypeIsBlockedText.domvalue_l -- association [0..*]
LEFT OUTER JOIN dd07t AS _CostCenterActivityTypeCatText ON CostCtrActivityTypeCategory = _CostCenterActivityTypeCatText.domvalue_l AND _CostCenterActivityTypeCatText.domname = 'LATYP' -- association [0..1]
LEFT OUTER JOIN tka01 AS _ControllingArea ON ControllingArea = _ControllingArea.kokrs -- association [1..1]
;
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