I_CAMasterDataID
Stammdaten ID
I_CAMasterDataID is a Basic CDS View that provides data about "Stammdaten ID" in SAP S/4HANA. It reads from 1 data source (dfkkbix_md) and exposes 19 fields with key field CAMasterDataID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dfkkbix_md | dfkkbix_md | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [0..1] | I_ContractAccountHeader | _ContractAccountHeader | $projection.ContractAccount = _ContractAccountHeader.ContractAccount |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | I_CASubApplication | _CASubApplication | $projection.CASubApplication = _CASubApplication.CASubApplication |
| [0..1] | I_CAProviderContractItem | _CAProviderContractItem | $projection.CAProviderContractItemNumber = _CAProviderContractItem.CAProviderContractItemNumber and $projection.CAContract = _CAProviderContractItem.CAProviderContract |
| [1..*] | I_CAMasterDataIDText | _CAMasterDataIDText | $projection.CAMasterDataID = _CAMasterDataIDText.CAMasterDataID |
| [0..1] | I_ContractAccountPartner | _ContractAccountPartner | $projection.ContractAccount = _ContractAccountPartner.ContractAccount and $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Stammdaten ID | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.representativeKey | CAMasterDataID | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #BASIC | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAMasterDataID | md_id | Master Data ID | |
| BusinessPartner | gpart | Tech. BPartner | ||
| ContractAccount | vkont | Tech. CtrAcct | ||
| CAContract | vtref | Contract | ||
| CASubApplication | subap | Subapplication | ||
| CAProviderContractItemNumber | vtpos | Item | ||
| CAProviderContractItemUUID | Contr.Item ID | |||
| CAAccessUserID | access_userid | Consumer ID | ||
| CAAccessServiceID | access_serviceid | Service ID | ||
| LastChangedByUser | crname | Last Changed By | ||
| LastChangeDate | crdate | Sizing Date | ||
| LastChangeTime | crtime | Time Created | ||
| _BusinessPartner | _BusinessPartner | |||
| _ContractAccountHeader | _ContractAccountHeader | |||
| _CASubApplication | _CASubApplication | |||
| _CAProviderContractItem | _CAProviderContractItem | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _CAMasterDataIDText | _CAMasterDataIDText | |||
| _ContractAccountPartner | _ContractAccountPartner |
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_CAMasterDataID.
-- 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_CAMasterDataID AS
SELECT
md_id AS CAMasterDataID,
gpart AS BusinessPartner,
vkont AS ContractAccount,
vtref AS CAContract,
subap AS CASubApplication,
vtpos AS CAProviderContractItemNumber,
cast(vtpid as vtpid_gfn_kk preserving type) AS CAProviderContractItemUUID,
access_userid AS CAAccessUserID,
access_serviceid AS CAAccessServiceID,
crname AS LastChangedByUser,
crdate AS LastChangeDate,
crtime AS LastChangeTime
FROM dfkkbix_md
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_ContractAccountHeader AS _ContractAccountHeader ON ContractAccount = _ContractAccountHeader.ContractAccount -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_CASubApplication AS _CASubApplication ON CASubApplication = _CASubApplication.CASubApplication -- association [0..1]
LEFT OUTER JOIN I_CAProviderContractItem AS _CAProviderContractItem ON CAProviderContractItemNumber = _CAProviderContractItem.CAProviderContractItemNumber AND CAContract = _CAProviderContractItem.CAProviderContract -- association [0..1]
LEFT OUTER JOIN I_CAMasterDataIDText AS _CAMasterDataIDText ON CAMasterDataID = _CAMasterDataIDText.CAMasterDataID -- association [1..*]
LEFT OUTER JOIN I_ContractAccountPartner AS _ContractAccountPartner ON ContractAccount = _ContractAccountPartner.ContractAccount AND BusinessPartner = _ContractAccountPartner.BusinessPartner -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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