C_DspDocFlwServiceContract
Service Contract Attributes
C_DspDocFlwServiceContract is a Consumption CDS View that provides data about "Service Contract Attributes" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocument) and exposes 12 fields with key field ServiceDocument.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocument | I_ServiceDocument | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Service Contract Attributes | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceDocument | I_ServiceDocument | ServiceDocument | |
| SalesOrganization | I_ServiceDocument | SalesOrganization | ||
| SoldToParty | I_ServiceDocument | SoldToParty | ||
| ServiceContractStartDate | ||||
| ServiceContractEndDate | ||||
| ServiceDocGrossAmount | I_ServiceDocument | ServiceDocGrossAmount | ||
| TransactionCurrency | I_ServiceDocument | TransactionCurrency | ||
| ServiceDocumentCreationDate | ||||
| _ServiceDocument | _ServiceDocument | |||
| _SalesOrganization | _SalesOrganization | |||
| _SoldToParty | _SoldToParty | |||
| _SoldToPartyToCustomer | _SoldToPartyToCustomer |
@AccessControl.authorizationCheck: #MANDATORY
@ObjectModel.usageType:{
serviceQuality: #B,
sizeCategory: #L,
dataClass: #MIXED }
@VDM.viewType: #CONSUMPTION
@EndUserText.label: 'Service Contract Attributes'
define view entity C_DspDocFlwServiceContract
as select from I_ServiceDocument
association[1..1] to I_ServiceDocument as _ServiceDocument
on $projection.ServiceDocument = _ServiceDocument.ServiceDocument
{
key I_ServiceDocument.ServiceDocument,
I_ServiceDocument.SalesOrganization,
I_ServiceDocument.SoldToParty,
tstmp_to_dats(I_ServiceDocument.ServiceContractStartDateTime, $session.user_timezone, $session.client, 'NULL')
as ServiceContractStartDate,
tstmp_to_dats(I_ServiceDocument.ServiceContractEndDateTime, $session.user_timezone, $session.client, 'NULL')
as ServiceContractEndDate,
I_ServiceDocument.ServiceDocGrossAmount,
I_ServiceDocument.TransactionCurrency,
tstmp_to_dats(I_ServiceDocument.ServiceDocCreationDateTime , $session.user_timezone, $session.client, 'NULL')
as ServiceDocumentCreationDate,
cast( I_ServiceDocument._ServiceDocumentType._ServiceDocumentTypeText[1:Language = $session.system_language].
ServiceDocumentTypeName as fac_network_graph_description ) as UI5NetworkGraphDescription,
_ServiceDocument,
_SalesOrganization,
_SoldToParty,
_SoldToPartyToCustomer
}
where
ServiceObjectType = 'BUS2000112'
and ServiceDocumentTemplateType = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENT",
"I_SERVICEDOCUMENTTYPE",
"I_SERVICEDOCUMENTTYPETEXT"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_BUSINESSPARTNERCUSTOMER",
"I_SALESORGANIZATION",
"I_SERVICEDOCUMENT"
],
"BASE":
[
"I_SERVICEDOCUMENT"
],
"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