I_CACompanyCodeGroup

DDL: I_CACOMPANYCODEGROUP Type: view_entity BASIC

Company Code Group

I_CACompanyCodeGroup (Basic)

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

Contract Accounting Company Code Group · Contract Accounting

I_CACompanyCodeGroup is a Basic CDS View that provides data about "Company Code Group" in SAP S/4HANA. It reads from 1 data source (tfk001g) and exposes 4 fields with key field CACompanyCodeGroup. It has 2 associations to related views.

SAP Help Documentation

CategoryCDS Views for Configuration Data
Purpose
This CDS view retrieves company code groups representing groups of company codes that can be used to post to a contract account. One company code group is assigned to each contract account. Example Group Sweden containing all company codes which are assigned to Sweden This CDS view provides the data to answer the business question: Which company code group 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 .

Prerequisites
Configuration You define company code groups in the Define Company Code Groups Customizing activity.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessContract Accounting
Application ComponentFI-CA
CapabilitiesAssociation Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities
PackageContract Accounting for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view retrieves company code groups representing groups of company codes that can be used to post to a contract account. One company code group is assigned to each contract account.</p> Example <p>Group Sweden containing all company codes which are assigned to Sweden</p> <p>This CDS view provides the data to answer the business question: Which company code group 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
tfk001g tfk001g from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_CACompanyCodeGroupText _Text $projection.CACompanyCodeGroup = _Text.CACompanyCodeGroup
[1..1] I_CompanyCode _CompanyCode $projection.CAPaymentCompanyCode = _CompanyCode.CompanyCode

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Company Code Group view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.representativeKey CACompanyCodeGroup view
ObjectModel.sapObjectNodeType.name ContrAcctgCompanyCodeGroup view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
VDM.viewType #BASIC view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CACompanyCodeGroup opbuk Company Code Group
CAPaymentCompanyCode pybuk Company Code for Automatic Payment Transactions
_Text _Text
_CompanyCode _CompanyCode

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_CACompanyCodeGroup.
-- 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_CACompanyCodeGroup AS
SELECT
  opbuk AS CACompanyCodeGroup,
  pybuk AS CAPaymentCompanyCode
FROM tfk001g
LEFT OUTER JOIN I_CACompanyCodeGroupText AS _Text ON CACompanyCodeGroup = _Text.CACompanyCodeGroup  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CAPaymentCompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
;