ESH_ACTIVITYTYPE_BASIS

DDL: ESH_ACTIVITYTYPE_BASIS SQL: ESHACTIVITYTYPEB Type: view

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)

SourceAliasJoin Type
I_CostCenterActivityType I_CostCenterActivityType from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;