R_ContractAccountTP
Contract Account - TP
R_ContractAccountTP is a Transactional CDS View that provides data about "Contract Account - TP" in SAP S/4HANA. It reads from 1 data source (I_ContractAccountHeader) and exposes 17 fields with key field ContractAccount. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ContractAccountHeader | I_ContractAccountHeader | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_ContractAccountPartnerTP | _ContractAccountPartner | |
| [0..*] | R_ContrAcctTaxExemptionTP | _ContractAccountTaxExemption | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Contract Account - TP | view | |
| ObjectModel.representativeKey | ContractAccount | view | |
| ObjectModel.sapObjectNodeType.name | ContractAccount | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ContractAccount | ContractAccount | ||
| ContractAccountForEdit | ContractAccount | |||
| CreationDate | CreationDate | |||
| CreationTime | CreationTime | |||
| CreatedByUser | CreatedByUser | |||
| IsMarkedForDeletion | IsMarkedForDeletion | |||
| LastChangeDate | LastChangeDate | |||
| LastChangeTime | LastChangeTime | |||
| LastChangedByUser | LastChangedByUser | |||
| CAApplicationArea | CAApplicationArea | |||
| ContractAccountCategory | ContractAccountCategory | |||
| ContractAccountExtReference | ContractAccountExtReference | |||
| ContractAccountName | ContractAccountName | |||
| _ContractAccountPartner | _ContractAccountPartner | |||
| _ContractAccountTaxExemption | _ContractAccountTaxExemption | |||
| _CAApplicationArea | _ApplArea | |||
| _ContractAccountCategory | _Category |
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Contract Account - TP'
@ObjectModel: { representativeKey: 'ContractAccount',
sapObjectNodeType.name: 'ContractAccount',
usageType: { dataClass: #MASTER,
serviceQuality: #C,
sizeCategory: #XL } }
@VDM: { lifecycle.contract.type: #SAP_INTERNAL_API,
viewType: #TRANSACTIONAL }
define root view entity R_ContractAccountTP
as select from I_ContractAccountHeader
composition [0..*] of R_ContractAccountPartnerTP as _ContractAccountPartner
composition [0..*] of R_ContrAcctTaxExemptionTP as _ContractAccountTaxExemption
{
key ContractAccount,
@ObjectModel.editableFieldFor: 'ContractAccount'
ContractAccount as ContractAccountForEdit,
CreationDate,
CreationTime,
CreatedByUser,
IsMarkedForDeletion,
LastChangeDate,
LastChangeTime,
LastChangedByUser,
@ObjectModel.foreignKey.association: '_CAApplicationArea'
CAApplicationArea,
@ObjectModel.foreignKey.association: '_ContractAccountCategory'
ContractAccountCategory,
ContractAccountExtReference,
ContractAccountName,
//etag
@Semantics.systemDateTime.lastChangedAt: true
case when ( LastChangeDate is initial or LastChangeDate is null )
then cast( dats_tims_to_tstmp( LastChangeDate, LastChangeTime, 'UTC', $session.client, 'NULL') as vdm_lastchangedon )
else cast( dats_tims_to_tstmp( CreationDate, CreationTime, 'UTC', $session.client, 'NULL') as vdm_lastchangedon )
end as LastChangeDateTime,
/* Associations */
_ContractAccountPartner,
_ContractAccountTaxExemption,
_ApplArea as _CAApplicationArea,
_Category as _ContractAccountCategory
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CONTRACTACCOUNTHEADER"
],
"ASSOCIATED":
[
"I_CAAPPLICATIONAREA",
"I_CONTRACTACCOUNTCATEGORY",
"R_CONTRACCTTAXEXEMPTIONTP",
"R_CONTRACTACCOUNTPARTNERTP"
],
"BASE":
[
"I_CONTRACTACCOUNTHEADER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- 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 Annotations — A Complete Guide
- 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