CRMS4_IU_C_CTH
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)
| Source | Alias | Join Type |
|---|---|---|
| CRMS4_IU_I_CTH | CRMS4_IU_I_CTH | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | CRMS4_IU_E_CTH | _ContractHeaderExtension | $projection.objtype_h = _ContractHeaderExtension.objtype_h and $projection.object_id = _ContractHeaderExtension.object_id |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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