I_CAPeriodCode

DDL: I_CAPERIODCODE Type: view_entity BASIC

Period Key

I_CAPeriodCode (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Contract Accounting Period Code · Contract Accounting

I_CAPeriodCode is a Basic CDS View (Dimension) that provides data about "Period Key" in SAP S/4HANA. It reads from 1 data source (tfk001p) and exposes 2 fields with key field CAPeriodCode. It has 1 association to related views. It is exposed through 1 OData service (UI_CADOCUMENT_MNG).

SAP Help Documentation

CategoryCDS Views for Configuration Data
Data CategoryDimension
Purpose
This CDS view retrieves period codes that define a period description. Example First Quarter , January , 1/1 - 2/15 This CDS view provides the data to answer the business question: Which period code values are available in the system? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessContract Accounting
Application ComponentFI-CA
CapabilitiesAnalytical Dimension, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Data Extraction
PackageContract Accounting for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view retrieves period codes that define a period description.</p> Example <p>First Quarter, January, 1/1 - 2/15</p> <p>This CDS view provides the data to answer the business question: Which period code values are available in the system?</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
tfk001p tfk001p from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CAPeriodCodeText _Text $projection.CAPeriodCode = _Text.CAPeriodCode

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
EndUserText.label Period Key view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey CAPeriodCode view
ObjectModel.sapObjectNodeType.name ContrAcctgPeriodCode view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
VDM.viewType #BASIC view

OData Services (1)

ServiceBindingVersionContractRelease
UI_CADOCUMENT_MNG UI_CADOCUMENT_MNG V4 C1 NOT_RELEASED

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CAPeriodCode persl Key for Period Assignment
_Text _Text

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 I_CAPeriodCode.
-- 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.

CREATE VIEW I_CAPeriodCode AS
SELECT
  persl AS CAPeriodCode
FROM tfk001p
LEFT OUTER JOIN I_CAPeriodCodeText AS _Text ON CAPeriodCode = _Text.CAPeriodCode  -- association [0..*]
;