ESH_ACTIVITYTYPE
Basis view for ESH ActivityType
ESH_ACTIVITYTYPE is a CDS View that provides data about "Basis view for ESH ActivityType" in SAP S/4HANA. It reads from 1 data source (ESH_ACTIVITYTYPE_BASIS) and exposes 34 fields with key fields ControllingArea, CostCtrActivityType, ValidityEndDate. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ESH_ACTIVITYTYPE_BASIS | ESH_ACTIVITYTYPE_BASIS | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ReferenceDate | abap.dats |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CostElementOnChartOfAccounts | _CostElement | $projection.AllocationCostElement = _CostElement.CostElement |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ESHACTIVITYTYPE | 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 |
Fields (34)
| 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 | CostCtrActivityTypeName | |||
| CostCtrActivityTypeDesc | CostCtrActivityTypeDesc | |||
| CostCtrActivityTypeQtyUnit | CostCtrActivityTypeQtyUnit | |||
| UnitOfMeasureName | UnitOfMeasureName | Meas. Unit Text | ||
| CostCtrActivityTypeValidCat | CostCtrActivityTypeValidCat | |||
| CostCtrActivityTypeCategory | CostCtrActivityTypeCategory | |||
| CostCtrActivityTypeCatName | CostCtrActivityTypeCatName | |||
| AllocationCostElement | AllocationCostElement | |||
| CostElementName | ||||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| CreationDate | CreationDate | Time Stamp | ||
| EnteredByUser | EnteredByUser | |||
| FullName | FullName | Name | ||
| PriceAllocationMethod | PriceAllocationMethod | |||
| ActualPriceAllocationMethod | ActualPriceAllocationMethod | |||
| ActivityTypeIsBlocked | ActivityTypeIsBlocked | |||
| ActivityTypeIsBlockedName | ActivityTypeIsBlockedName | |||
| CostCtrActivityTypeOutpQtyUnit | CostCtrActivityTypeOutpQtyUnit | |||
| CostCtrActyTypeOutpQtyUnitName | CostCtrActyTypeOutpQtyUnitName | |||
| OutputQuantityFactor | OutputQuantityFactor | |||
| _Text | _Text | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenterCategory | _CostCenterCategory | |||
| _CostCtrActivityTypeCategory | _CostCtrActivityTypeCategory | |||
| _CostCenterActivityTypeCatText | _CostCenterActivityTypeCatText | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _ControllingAreaText | _ControllingAreaText | |||
| _EnteredByUser | _EnteredByUser | |||
| _ActivityTypeIsBlockedText | _ActivityTypeIsBlockedText | |||
| _CostElement | _CostElement |
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.
-- 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: ESHACTIVITYTYPE
-- Parameters: P_ReferenceDate : abap.dats
CREATE VIEW ESH_ACTIVITYTYPE AS
SELECT
ControllingArea,
CostCtrActivityType,
ValidityEndDate,
ValidityStartDate,
CostCtrActivityTypeName,
CostCtrActivityTypeDesc,
CostCtrActivityTypeQtyUnit,
UnitOfMeasureName,
CostCtrActivityTypeValidCat,
CostCtrActivityTypeCategory,
CostCtrActivityTypeCatName,
AllocationCostElement,
_CostElement[1:ChartOfAccounts = ChartOfAccounts]._Text[1:Language = $session.system_language].CostElementName AS CostElementName,
ChartOfAccounts,
CreationDate,
EnteredByUser,
FullName,
PriceAllocationMethod,
ActualPriceAllocationMethod,
ActivityTypeIsBlocked,
ActivityTypeIsBlockedName,
CostCtrActivityTypeOutpQtyUnit,
CostCtrActyTypeOutpQtyUnitName,
OutputQuantityFactor
FROM ESH_ACTIVITYTYPE_BASIS
LEFT OUTER JOIN I_CostElementOnChartOfAccounts AS _CostElement ON AllocationCostElement = _CostElement.CostElement -- association [0..*]
;
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