C_CAMasterDataDistribution

DDL: C_CAMASTERDATADISTRIBUTION SQL: CCAMSTRDATADISTR Type: view CONSUMPTION

C_CAMasterDataDistribution is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_CAProviderContractHeader, I_CAMasterDataDistrObject) and exposes 17 fields with key fields CAMasterDataDistrObjectType, CAMasterDataDistrObject, CAMasterDataDistrObjectRef.

Data Sources (2)

SourceAliasJoin Type
I_CAProviderContractHeader _ProviderContract left_outer
I_CAMasterDataDistrObject I_CAMasterDataDistrObject from

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CCAMSTRDATADISTR view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Search.searchable false view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.resultSet.sizeCategory #XS view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY CAMasterDataDistrObjectType I_CAMasterDataDistrObject CAMasterDataDistrObjectType Object Type
KEY CAMasterDataDistrObject Provider Contract
KEY CAMasterDataDistrObjectRef I_CAMasterDataDistrObject CAMasterDataDistrObjectRef UUID
CAMasterDataDistrRecordType
CAMasterDataDistrObjectStatus I_CAMasterDataDistrObject CAMasterDataDistrObjectStatus Workflow Status
CAMasterDataDistrObjIsProcd I_CAMasterDataDistrObject CAMasterDataDistrObjIsProcd TRUE
CAClrfctnIsCompleted I_CAMasterDataDistrObject CAClrfctnIsCompleted TRUE
CAPrvdrContrDistrStatusCritlty
char100endasCAMasterDataDistrStatusText Distribution Status
CARatingArea I_CAMasterDataDistrObject CARatingArea Rating Area
CARatingAreaDescription
CreationDate I_CAMasterDataDistrObject CreationDate Created On
CreationTime I_CAMasterDataDistrObject CreationTime Created At
CAProviderContract I_CAMasterDataDistrObject CAMasterDataDistrObject Distribution Obj. ID
CAAuthorizationGroup I_CAProviderContractHeader CAAuthorizationGroup AuthorizGroup
CompanyCode I_CAProviderContractHeader CompanyCode Receiver Company Code
_CAMasterDataDistributionItem _CAMasterDataDistributionItem

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 C_CAMasterDataDistribution.
-- 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: CCAMSTRDATADISTR

CREATE VIEW C_CAMasterDataDistribution AS
SELECT
  I_CAMasterDataDistrObject.CAMasterDataDistrObjectType AS CAMasterDataDistrObjectType,
  LTRIM(I_CAMasterDataDistrObject.CAMasterDataDistrObject,'0') AS CAMasterDataDistrObject,
  I_CAMasterDataDistrObject.CAMasterDataDistrObjectRef AS CAMasterDataDistrObjectRef,
  cast('' as abap.char(1) ) AS CAMasterDataDistrRecordType,
  I_CAMasterDataDistrObject.CAMasterDataDistrObjectStatus AS CAMasterDataDistrObjectStatus,
  I_CAMasterDataDistrObject.CAMasterDataDistrObjIsProcd AS CAMasterDataDistrObjIsProcd,
  I_CAMasterDataDistrObject.CAClrfctnIsCompleted AS CAClrfctnIsCompleted,
  cast(0 as int1 ) AS CAPrvdrContrDistrStatusCritlty,
  case when CAClrfctnIsCompleted = 'X' then cast ('C' as abap.char(100) ) when CAMasterDataDistrObjIsProcd = 'X' and CAMasterDataDistrObjectStatus = '' then cast ('S' as abap.char(100) ) when CAMasterDataDistrObjIsProcd = 'X' and CAMasterDataDistrObjectStatus = 'F' then cast ('F' as abap.char(100) ) when CAMasterDataDistrObjIsProcd = '' and CAMasterDataDistrObjectStatus = '' then cast ('I' as abap.char(100) ) else cast ('F' as abap.char(100) ) end as CAMasterDataDistrStatusText AS char100endasCAMasterDataDistrStatusText,
  I_CAMasterDataDistrObject.CARatingArea AS CARatingArea,
  I_CAMasterDataDistrObject._CARatingArea._Text[1:Language = $session.system_language].CARatingAreaDescription AS CARatingAreaDescription,
  I_CAMasterDataDistrObject.CreationDate AS CreationDate,
  I_CAMasterDataDistrObject.CreationTime AS CreationTime,
  I_CAMasterDataDistrObject.CAMasterDataDistrObject AS CAProviderContract,
  _ProviderContract.CAAuthorizationGroup AS CAAuthorizationGroup,
  _ProviderContract.CompanyCode AS CompanyCode
FROM I_CAMasterDataDistrObject
LEFT OUTER JOIN I_CAProviderContractHeader AS _ProviderContract ON /* join condition not captured in parsed metadata */
;