A_ServiceRequest
Service Request
A_ServiceRequest is a Composite CDS View that provides data about "Service Request" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 37 fields with key field ServiceRequest. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | ServiceRequest | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ServiceDocumentItemEnhcd | _Item | $projection.ServiceRequest = _Item.ServiceDocument and _Item.ServiceDocumentItemObjectType = 'BUS2000140' and _Item.ServiceObjectType = 'BUS2000223' |
| [0..*] | A_ServiceRequestPersonResp | _PersonResponsible | $projection.ServiceRequest = _PersonResponsible.ServiceRequest |
| [0..*] | A_ServiceRequestRefObject | _ReferenceObject | $projection.ServiceRequest = _ReferenceObject.ServiceRequest |
| [0..*] | A_ServiceRequestText | _Text | $projection.ServiceRequest = _Text.ServiceRequest |
| [0..*] | A_ServiceRequestDefect | _Defect | $projection.ServiceRequest = _Defect.ServiceRequest |
| [0..1] | A_ServiceRequestReason | _Reason | $projection.ServiceRequest = _Reason.ServiceRequest |
| [0..*] | A_ServiceRequestOrder | _Order | $projection.ServiceRequest = _Order.ServiceRequest |
| [0..1] | E_ServiceDocument | _Extension | _Extension.ServiceCategory = 'BUS2000223' and $projection.ServiceRequest = _Extension.ServiceOrder |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Service Request | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AbapCatalog.sqlViewName | ASRVREQ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | ServiceRequest | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceRequest | ServiceDocument | ||
| ServiceRequestType | ServiceDocumentType | |||
| ServiceRequestUUID | ServiceDocumentUUID | |||
| ServiceRequestDescription | ServiceDocumentDescription | |||
| Language | Language | |||
| ServiceDocumentPriority | ServiceDocumentPriority | |||
| ServiceDocumentCategory | BusinessActivityCategory | |||
| RequestedServiceStartDateTime | RequestedServiceStartDateTime | |||
| RequestedServiceEndDateTime | RequestedServiceEndDateTime | |||
| ServiceFirstResponseByDateTime | ServiceFirstResponseByDateTime | |||
| ServiceDueByDateTime | ServiceDueByDateTime | |||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | |||
| CustomerPurchaseOrderDate | CustomerPurchaseOrderDate | |||
| RecommendedServicePriority | RecommendedServicePriority | |||
| ServiceRequestUrgency | ServiceDocumentUrgency | |||
| ServiceRequestImpact | ServiceDocumentImpact | |||
| ServiceRequestProblemCategory | ServiceDocumentProblemCategory | |||
| ServiceRequestIsCanceled | ServiceDocumentIsRejected | |||
| SalesOrganization | SalesOrganization | |||
| DistributionChannel | DistributionChannel | |||
| Division | Division | |||
| SalesOffice | SalesOffice | |||
| SalesGroup | SalesGroup | |||
| SoldToParty | SoldToParty | |||
| ServiceRequestReporter | ContactPerson | |||
| ResponseProfile | _Item | ResponseProfile | ||
| ServiceProfile | _Item | ServiceProfile | ||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | |||
| ServiceOrganization | ServiceOrganization | |||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | |||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | |||
| _PersonResponsible | _PersonResponsible | |||
| _ReferenceObject | _ReferenceObject | |||
| _Text | _Text | |||
| _Defect | _Defect | |||
| _Reason | _Reason | |||
| _Order | _Order |
@ClientHandling.algorithm:#SESSION_VARIABLE
@EndUserText.label: 'Service Request'
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AbapCatalog: {
sqlViewName: 'ASRVREQ',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
representativeKey: 'ServiceRequest',
createEnabled: true,
updateEnabled: true,
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #B,
sizeCategory: #L
}
}
@Metadata.ignorePropagatedAnnotations: true
define view A_ServiceRequest
as select from I_ServiceDocumentEnhcd as ServiceRequest
association [0..1] to I_ServiceDocumentItemEnhcd as _Item on $projection.ServiceRequest = _Item.ServiceDocument
and _Item.ServiceDocumentItemObjectType = 'BUS2000140'
and _Item.ServiceObjectType = 'BUS2000223'
association [0..*] to A_ServiceRequestPersonResp as _PersonResponsible on $projection.ServiceRequest = _PersonResponsible.ServiceRequest
association [0..*] to A_ServiceRequestRefObject as _ReferenceObject on $projection.ServiceRequest = _ReferenceObject.ServiceRequest
association [0..*] to A_ServiceRequestText as _Text on $projection.ServiceRequest = _Text.ServiceRequest
association [0..*] to A_ServiceRequestDefect as _Defect on $projection.ServiceRequest = _Defect.ServiceRequest
association [0..1] to A_ServiceRequestReason as _Reason on $projection.ServiceRequest = _Reason.ServiceRequest
association [0..*] to A_ServiceRequestOrder as _Order on $projection.ServiceRequest = _Order.ServiceRequest
//Extensibility
association [0..1] to E_ServiceDocument as _Extension on _Extension.ServiceCategory = 'BUS2000223'
and $projection.ServiceRequest = _Extension.ServiceOrder
{
key ServiceDocument as ServiceRequest,
ServiceDocumentType as ServiceRequestType,
ServiceDocumentUUID as ServiceRequestUUID,
ServiceDocumentDescription as ServiceRequestDescription,
Language,
ServiceDocumentPriority,
BusinessActivityCategory as ServiceDocumentCategory,
RequestedServiceStartDateTime,
RequestedServiceEndDateTime,
ServiceFirstResponseByDateTime,
ServiceDueByDateTime,
PurchaseOrderByCustomer,
CustomerPurchaseOrderDate,
RecommendedServicePriority,
ServiceDocumentUrgency as ServiceRequestUrgency,
ServiceDocumentImpact as ServiceRequestImpact,
ServiceDocumentProblemCategory as ServiceRequestProblemCategory,
ServiceDocumentIsRejected as ServiceRequestIsCanceled,
case ServiceDocumentStatus
when 'C' then 'X'
else ''
end as ServiceRequestIsCompleted,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
SoldToParty,
ContactPerson as ServiceRequestReporter,
/* ServiceDefectSchema,
ServiceDefectCategory,
ServiceReasonSchema,
ServiceReasonCategory, */
_Item.ResponseProfile as ResponseProfile,
_Item.ServiceProfile as ServiceProfile,
SalesOrganizationOrgUnitID,
ServiceOrganization,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
//Associations
_PersonResponsible,
_ReferenceObject,
_Text,
_Defect,
_Reason,
_Order
}
where
ServiceObjectType = 'BUS2000223' // Service Request
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENTENHCD",
"I_SERVICEDOCUMENTITEMENHCD"
],
"ASSOCIATED":
[
"A_SERVICEREQUESTDEFECT",
"A_SERVICEREQUESTORDER",
"A_SERVICEREQUESTPERSONRESP",
"A_SERVICEREQUESTREASON",
"A_SERVICEREQUESTREFOBJECT",
"A_SERVICEREQUESTTEXT",
"E_SERVICEDOCUMENT",
"I_SERVICEDOCUMENTITEMENHCD"
],
"BASE":
[],
"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