I_DsputCaseCompanyCodeDfltVal

DDL: I_DSPUTCASECOMPANYCODEDFLTVAL Type: view BASIC

Company Code Default Values

I_DsputCaseCompanyCodeDfltVal is a Basic CDS View that provides data about "Company Code Default Values" in SAP S/4HANA. It reads from 1 data source (tfdm_defcc) and exposes 12 fields with key fields CompanyCode, OriginType. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
tfdm_defcc tfdm_defcc from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_CaseType _CaseType $projection.CaseType = _CaseType.CaseType
[0..1] I_CaseCategory _CaseCategory $projection.CaseCategory = _CaseCategory.CaseCategory and $projection.CaseType = _CaseCategory.CaseType
[0..1] I_CaseReason _CaseReason $projection.CaseReason = _CaseReason.CaseReason and $projection.CaseType = _CaseReason.CaseType
[0..1] I_CasePriority _CasePriority $projection.CasePriority = _CasePriority.CasePriority

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IDCCMOCDDF view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Company Code Default Values view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey CompanyCode view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bukrs Value
KEY OriginType Title
CaseType case_type Usage Type
CaseCategory category Violation Category
CaseStatus stat_orderno Status
CaseReason reason_code Return/Change Reason
CasePriority priority Workflow priority
_CompanyCode _CompanyCode
_CaseType _CaseType
_CaseCategory _CaseCategory
_CaseReason _CaseReason
_CasePriority _CasePriority

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_DsputCaseCompanyCodeDfltVal.
-- 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_DsputCaseCompanyCodeDfltVal AS
SELECT
  bukrs AS CompanyCode,
  cast( subject as char3 ) AS OriginType,
  case_type AS CaseType,
  category AS CaseCategory,
  stat_orderno AS CaseStatus,
  reason_code AS CaseReason,
  priority AS CasePriority
FROM tfdm_defcc
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CaseType AS _CaseType ON CaseType = _CaseType.CaseType  -- association [0..1]
LEFT OUTER JOIN I_CaseCategory AS _CaseCategory ON CaseCategory = _CaseCategory.CaseCategory AND CaseType = _CaseCategory.CaseType  -- association [0..1]
LEFT OUTER JOIN I_CaseReason AS _CaseReason ON CaseReason = _CaseReason.CaseReason AND CaseType = _CaseReason.CaseType  -- association [0..1]
LEFT OUTER JOIN I_CasePriority AS _CasePriority ON CasePriority = _CasePriority.CasePriority  -- association [0..1]
;