P_ControlDataForActivityType

DDL: P_CONTROLDATAFORACTIVITYTYPE SQL: PCTRDATACTTYP Type: view BASIC

P_ControlDataForActivityType is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (cokl) and exposes 10 fields with key fields Ledger, ControllingObject, FiscalYear, Version.

Data Sources (1)

SourceAliasJoin Type
cokl cokl from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCTRDATACTTYP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #BASIC view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Ledger lednr Ledger
KEY ControllingObject objnr Val. Obj. No.
KEY FiscalYear gjahr Settlement Year
KEY Version versn Version
tarkzasPriceAllocationMethod
AllocationCostElement vksta Alloc. CElem
ActlPostgCostCenterActyTypeCat latypi ATyp Cat. Act.
CostCompSwitchingStructure swsmh Switching str.
ActualPriceAllocationMethod tarkz_i Act. price ind.
CostCtrActivityTypeCategory latyp ATyp category

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 P_ControlDataForActivityType.
-- 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: PCTRDATACTTYP

CREATE VIEW P_ControlDataForActivityType AS
SELECT
  lednr AS Ledger,
  objnr AS ControllingObject,
  gjahr AS FiscalYear,
  versn AS Version,
  vksta AS AllocationCostElement,
  latypi AS ActlPostgCostCenterActyTypeCat,
  swsmh AS CostCompSwitchingStructure,
  tarkz_i AS ActualPriceAllocationMethod,
  latyp AS CostCtrActivityTypeCategory
FROM cokl
;