I_NumberOfServiceDocuments
View to fetch no of service documents
I_NumberOfServiceDocuments is a Composite CDS View (Cube) that provides data about "View to fetch no of service documents" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 31 fields with key fields ServiceObjectType, ServiceDocument. Part of development package CRMS4_SERV_FIORI_UI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | I_ServiceDocumentEnhcd | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ObjectType | crmt_subobject_category_db |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | INMBRSRVCDOCS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | View to fetch no of service documents | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_ServiceOrderCube_2 | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | ServiceObjectType | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Analytics.dataCategory | #CUBE | view | |
| Metadata.allowExtensions | true | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceObjectType | ServiceObjectType | ||
| KEY | ServiceDocument | ServiceDocument | ||
| ServiceDocumentHasError | ServiceDocumentHasError | |||
| ServiceDocumentType | ServiceDocumentType | |||
| ServiceOrganization | ServiceOrganization | |||
| ResponsibleEmployee | ResponsibleEmployee | |||
| int4endasNumberOfErroneousServiceDocs | ||||
| int4endasNumberOfCorrectServiceDocs | ||||
| SalesOrganization | SalesOrganization | |||
| DistributionChannel | DistributionChannel | |||
| Division | Division | |||
| SalesOffice | SalesOffice | |||
| SalesGroup | SalesGroup | |||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | |||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | |||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | |||
| _SalesOrganization | _SalesOrganization | |||
| _SalesOffice | _SalesOffice | |||
| _SalesGroup | _SalesGroup | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _SalesOrganizationOrgUnit | _SalesOrganizationOrgUnit | |||
| _SalesOrganizationOrgUnit_2 | _SalesOrganizationOrgUnit_2 | |||
| _SalesOfficeOrgUnit | _SalesOfficeOrgUnit | |||
| _SalesOfficeOrgUnit_2 | _SalesOfficeOrgUnit_2 | |||
| _SalesGroupOrgUnit | _SalesGroupOrgUnit | |||
| _SalesGroupOrgUnit_2 | _SalesGroupOrgUnit_2 | |||
| _ServiceDocHasError | _ServiceDocHasError | |||
| _ServiceOrganizationOrgUnit | _ServiceOrganizationOrgUnit | |||
| _ServiceOrganizationOrgUnit_2 | _ServiceOrganizationOrgUnit_2 | |||
| _RespEmployee | _RespEmployee |
@AbapCatalog.sqlViewName: 'INMBRSRVCDOCS'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'View to fetch no of service documents'
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #PUBLIC_LOCAL_API,
lifecycle.status: #DEPRECATED,
lifecycle.successor: 'I_ServiceOrderCube_2'
}
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
representativeKey: 'ServiceObjectType',
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #D,
sizeCategory: #XL
}
}
@Analytics.dataCategory: #CUBE
@Metadata.allowExtensions:true
define view I_NumberOfServiceDocuments
with parameters
P_ObjectType : crmt_subobject_category_db
as select from I_ServiceDocumentEnhcd
{
key ServiceObjectType,
key ServiceDocument,
ServiceDocumentHasError,
ServiceDocumentType,
@ObjectModel.foreignKey.association: '_ServiceOrganizationOrgUnit_2'
ServiceOrganization,
@ObjectModel.foreignKey.association: '_RespEmployee'
ResponsibleEmployee,
case ServiceDocumentHasError
when 'X' then 'Contains Error'
when ' ' then 'Correct'
else 'Correct'
end as ServiceDocumentStatusName,
@DefaultAggregation: #SUM
case when ServiceDocumentHasError = 'X'
then cast (1 as abap.int4)
end as NumberOfErroneousServiceDocs,
@DefaultAggregation: #SUM
case when ServiceDocumentHasError = ' '
then cast (1 as abap.int4)
end as NumberOfCorrectServiceDocs,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
SalesOrganizationOrgUnitID,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
_SalesOrganization,
_SalesOffice,
_SalesGroup,
_DistributionChannel,
_Division,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_SalesOrganizationOrgUnit_2'
_SalesOrganizationOrgUnit,
_SalesOrganizationOrgUnit_2,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_SalesOfficeOrgUnit_2'
_SalesOfficeOrgUnit,
_SalesOfficeOrgUnit_2,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_SalesGroupOrgUnit_2'
_SalesGroupOrgUnit,
_SalesGroupOrgUnit_2,
//Associations
@ObjectModel.association.boundFields.dataMatchesSourceAndTargetTypes: true
_ServiceDocHasError,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_ServiceOrganizationOrgUnit_2'
_ServiceOrganizationOrgUnit,
_ServiceOrganizationOrgUnit_2,
_RespEmployee
}
where
ServiceObjectType = :P_ObjectType
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