CRMS4_IU_C_CTH

DDL: CRMS4_IU_C_CTH SQL: CRMS4IUVCCTH Type: view

Utilities Contract Header

CRMS4_IU_C_CTH is a CDS View that provides data about "Utilities Contract Header" in SAP S/4HANA. It reads from 1 data source (CRMS4_IU_I_CTH) and exposes 29 fields with key fields objtype_h, object_id. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
CRMS4_IU_I_CTH CRMS4_IU_I_CTH from

Associations (1)

CardinalityTargetAliasCondition
[0..1] CRMS4_IU_E_CTH _ContractHeaderExtension $projection.objtype_h = _ContractHeaderExtension.objtype_h and $projection.object_id = _ContractHeaderExtension.object_id

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CRMS4IUVCCTH view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Utilities Contract Header view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY objtype_h objtype_h Trans. Cat.
KEY object_id object_id Transaction ID
header_guid header_guid Unique Identifier
process_type process_type Type of Data
posting_date posting_date Posting Date
created_at_h created_at_h Created On
created_by_h created_by_h Created By
changed_at_h changed_at_h Changed On
changed_by_h changed_by_h Changed By
btx_class btx_class Trans.Classification
auth_scope auth_scope Authorization Scope
object_id_ok object_id_ok ID Valid
verify_date verify_date Verify Date
Statusstat_lifecycle
stat_error stat_error Error Status
stat_open stat_open Open
clientNULLascontstart_min
contend_max
Partnersold_to_party
person_resp person_resp Employee Responsible
OrganisationalDatasales_org
sales_office sales_office Sales Office
sales_group sales_group Sales Group
dis_channel dis_channel Distribution Channel
division division Internal Division ID
service_org service_org Service Organization
_BusinessPartner _BusinessPartner
_ContractItem _ContractItem
_ContractPeriod _ContractPeriod

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 CRMS4_IU_C_CTH.
-- 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: CRMS4IUVCCTH

CREATE VIEW CRMS4_IU_C_CTH AS
SELECT
  objtype_h,
  object_id,
  header_guid,
  process_type,
  posting_date,
  created_at_h,
  created_by_h,
  changed_at_h,
  changed_by_h,
  btx_class,
  auth_scope,
  object_id_ok,
  verify_date,
  stat_error,
  stat_open,
  tstmp_to_dats(contend_max, 'UTC', $session.client, 'NULL') AS contend_max,
  person_resp,
  sales_office,
  sales_group,
  dis_channel,
  division,
  service_org
FROM CRMS4_IU_I_CTH
LEFT OUTER JOIN CRMS4_IU_E_CTH AS _ContractHeaderExtension ON objtype_h = _ContractHeaderExtension.objtype_h AND object_id = _ContractHeaderExtension.object_id  -- association [0..1]
;