P_SrvcDocEnhcdWithCloudCheck
P_SrvcDocEnhcdWithCloudCheck is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 117 fields with key fields ServiceDocument, ServiceDocumentType.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | _DocEnhd | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSRVDOCENHCD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (117)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceDocument | I_ServiceDocumentEnhcd | ServiceDocument | |
| KEY | ServiceDocumentType | I_ServiceDocumentEnhcd | ServiceDocumentType | |
| ServiceDocumentDescription | I_ServiceDocumentEnhcd | ServiceDocumentDescription | ||
| ServiceDocumentTemplateType | I_ServiceDocumentEnhcd | ServiceDocumentTemplateType | ||
| ServiceObjectType | I_ServiceDocumentEnhcd | ServiceObjectType | ||
| ServiceContractStartDate | I_ServiceDocumentEnhcd | ServiceContractStartDate | ||
| ServiceContractEndDate | I_ServiceDocumentEnhcd | ServiceContractEndDate | ||
| ServiceDocNetAmount | I_ServiceDocumentEnhcd | ServiceDocNetAmount | ||
| ServiceDocumentCreationDate | I_ServiceDocumentEnhcd | ServiceDocumentCreationDate | ||
| PostingDate | I_ServiceDocumentEnhcd | PostingDate | ||
| SalesOrganization | I_ServiceDocumentEnhcd | SalesOrganization | ||
| SalesOffice | I_ServiceDocumentEnhcd | SalesOffice | ||
| SalesGroup | I_ServiceDocumentEnhcd | SalesGroup | ||
| ServiceDocumentUUID | I_ServiceDocumentEnhcd | ServiceDocumentUUID | ||
| ServiceDocumentCharUUID | I_ServiceDocumentEnhcd | ServiceDocumentCharUUID | ||
| SoldToParty | I_ServiceDocumentEnhcd | SoldToParty | ||
| SoldToPartyCountry | I_ServiceDocumentEnhcd | SoldToPartyCountry | ||
| SoldToPartyRegion | I_ServiceDocumentEnhcd | SoldToPartyRegion | ||
| ServiceTeam | I_ServiceDocumentEnhcd | ServiceTeam | ||
| ResponsibleEmployee | I_ServiceDocumentEnhcd | ResponsibleEmployee | ||
| ServiceEmployee | I_ServiceDocumentEnhcd | ServiceEmployee | ||
| ContactPerson | I_ServiceDocumentEnhcd | ContactPerson | ||
| ShipToParty | I_ServiceDocumentEnhcd | ShipToParty | ||
| BillToParty | I_ServiceDocumentEnhcd | BillToParty | ||
| PayerParty | I_ServiceDocumentEnhcd | PayerParty | ||
| ServiceDocumentStatus | I_ServiceDocumentEnhcd | ServiceDocumentStatus | ||
| ServiceDocumentHasError | I_ServiceDocumentEnhcd | ServiceDocumentHasError | ||
| ServiceDocBillingStatus | I_ServiceDocumentEnhcd | ServiceDocBillingStatus | ||
| ServiceDocIsReleasedForBilling | I_ServiceDocumentEnhcd | ServiceDocIsReleasedForBilling | ||
| ServiceDocumentIsOpen | I_ServiceDocumentEnhcd | ServiceDocumentIsOpen | ||
| ServiceDocumentIsQuotation | I_ServiceDocumentEnhcd | ServiceDocumentIsQuotation | ||
| ServiceDocumentIsReleased | I_ServiceDocumentEnhcd | ServiceDocumentIsReleased | ||
| ServiceDocumentIsRejected | I_ServiceDocumentEnhcd | ServiceDocumentIsRejected | ||
| ServiceConfirmationIsFinal | I_ServiceDocumentEnhcd | ServiceConfirmationIsFinal | ||
| ServiceContractCanclnSts | I_ServiceDocumentEnhcd | ServiceContractCanclnSts | ||
| RecommendedServicePriority | I_ServiceDocumentEnhcd | RecommendedServicePriority | ||
| ServiceDocumentUrgency | I_ServiceDocumentEnhcd | ServiceDocumentUrgency | ||
| ServiceDocumentImpact | I_ServiceDocumentEnhcd | ServiceDocumentImpact | ||
| ServiceEscalationLevel | I_ServiceDocumentEnhcd | ServiceEscalationLevel | ||
| ServiceDocumentProblemCategory | I_ServiceDocumentEnhcd | ServiceDocumentProblemCategory | ||
| ServiceRisk | I_ServiceDocumentEnhcd | ServiceRisk | ||
| ServiceDocumentCanclnParty | I_ServiceDocumentEnhcd | ServiceDocumentCanclnParty | ||
| ServiceDocumentCanclnReason | I_ServiceDocumentEnhcd | ServiceDocumentCanclnReason | ||
| ReferenceInHouseRepair | I_ServiceDocumentEnhcd | ReferenceInHouseRepair | ||
| ReferenceInHouseRepairItem | I_ServiceDocumentEnhcd | ReferenceInHouseRepairItem | ||
| RefInHouseRepairIsExisting | I_ServiceDocumentEnhcd | RefInHouseRepairIsExisting | ||
| BillingBlockReason | I_ServiceDocumentEnhcd | BillingBlockReason | ||
| PurchaseOrderByCustomer | I_ServiceDocumentEnhcd | PurchaseOrderByCustomer | ||
| CustomerPurchaseOrderDate | I_ServiceDocumentEnhcd | CustomerPurchaseOrderDate | ||
| ServiceDocumentRejectionReason | I_ServiceDocumentEnhcd | ServiceDocumentRejectionReason | ||
| Region | I_ServiceDocumentEnhcd | Region | ||
| BusinessActivityCategory | I_ServiceDocumentEnhcd | BusinessActivityCategory | ||
| ServiceDocumentPriority | I_ServiceDocumentEnhcd | ServiceDocumentPriority | ||
| PaymentTerms | I_ServiceDocumentEnhcd | PaymentTerms | ||
| TransactionCurrency | I_ServiceDocumentEnhcd | TransactionCurrency | ||
| SalesOrganizationOrgUnitID | I_ServiceDocumentEnhcd | SalesOrganizationOrgUnitID | ||
| SalesOfficeOrgUnitID | I_ServiceDocumentEnhcd | SalesOfficeOrgUnitID | ||
| SalesGroupOrgUnitID | I_ServiceDocumentEnhcd | SalesGroupOrgUnitID | ||
| DistributionChannel | I_ServiceDocumentEnhcd | DistributionChannel | ||
| Division | I_ServiceDocumentEnhcd | Division | ||
| ServiceOrganization | I_ServiceDocumentEnhcd | ServiceOrganization | ||
| ResponsibleServiceOrganization | I_ServiceDocumentEnhcd | ResponsibleServiceOrganization | ||
| _ServiceObjType | I_ServiceDocumentEnhcd | _ServiceObjType | ||
| _ServiceDocumentType | I_ServiceDocumentEnhcd | _ServiceDocumentType | ||
| ServiceDocumentCreatedByUser | I_ServiceDocumentEnhcd | ServiceDocumentCreatedByUser | ||
| ServiceDocumentChangedByUser | I_ServiceDocumentEnhcd | ServiceDocumentChangedByUser | ||
| PricingDocument | I_ServiceDocumentEnhcd | PricingDocument | ||
| PricingProcedure | I_ServiceDocumentEnhcd | PricingProcedure | ||
| RefBusinessSolutionOrder | I_ServiceDocumentEnhcd | RefBusinessSolutionOrder | ||
| RespyMgmtServiceTeam | I_ServiceDocumentEnhcd | RespyMgmtServiceTeam | ||
| _SoldToParty | I_ServiceDocumentEnhcd | _SoldToParty | ||
| _RespEmployee | I_ServiceDocumentEnhcd | _RespEmployee | ||
| _ServiceTeam | I_ServiceDocumentEnhcd | _ServiceTeam | ||
| _ServiceEmployee | I_ServiceDocumentEnhcd | _ServiceEmployee | ||
| _ContactPerson | I_ServiceDocumentEnhcd | _ContactPerson | ||
| _ShipToParty | I_ServiceDocumentEnhcd | _ShipToParty | ||
| _BillToParty | I_ServiceDocumentEnhcd | _BillToParty | ||
| _SoldToPartyToCustomer | I_ServiceDocumentEnhcd | _SoldToPartyToCustomer | ||
| _SoldToPartyCountry | I_ServiceDocumentEnhcd | _SoldToPartyCountry | ||
| _SoldToPartyRegion | I_ServiceDocumentEnhcd | _SoldToPartyRegion | ||
| _ServiceTeamHeader | I_ServiceDocumentEnhcd | _ServiceTeamHeader | ||
| _ServiceDocumentStatus | I_ServiceDocumentEnhcd | _ServiceDocumentStatus | ||
| _SrvcDocLifecycleStatus | I_ServiceDocumentEnhcd | _SrvcDocLifecycleStatus | ||
| _ServiceDocBillingStatus | I_ServiceDocumentEnhcd | _ServiceDocBillingStatus | ||
| _SrvcDocIsRelForBillgSts | I_ServiceDocumentEnhcd | _SrvcDocIsRelForBillgSts | ||
| _ServiceDocumentIsOpen | I_ServiceDocumentEnhcd | _ServiceDocumentIsOpen | ||
| _ServiceDocHasError | I_ServiceDocumentEnhcd | _ServiceDocHasError | ||
| _ServiceContractCanclnSts | I_ServiceDocumentEnhcd | _ServiceContractCanclnSts | ||
| _BillingBlockReason | I_ServiceDocumentEnhcd | _BillingBlockReason | ||
| _ActivityCategory | I_ServiceDocumentEnhcd | _ActivityCategory | ||
| _ServiceDocumentPriority | I_ServiceDocumentEnhcd | _ServiceDocumentPriority | ||
| _TransactionCurrency | I_ServiceDocumentEnhcd | _TransactionCurrency | ||
| _PaymentTerms | I_ServiceDocumentEnhcd | _PaymentTerms | ||
| _FixedPrice | I_ServiceDocumentEnhcd | _FixedPrice | ||
| _SalesOrganizationOrgUnit | I_ServiceDocumentEnhcd | _SalesOrganizationOrgUnit | ||
| _SalesOrganizationOrgUnit_2 | I_ServiceDocumentEnhcd | _SalesOrganizationOrgUnit_2 | ||
| _SalesOfficeOrgUnit | I_ServiceDocumentEnhcd | _SalesOfficeOrgUnit | ||
| _SalesOfficeOrgUnit_2 | I_ServiceDocumentEnhcd | _SalesOfficeOrgUnit_2 | ||
| _SalesGroupOrgUnit | I_ServiceDocumentEnhcd | _SalesGroupOrgUnit | ||
| _SalesGroupOrgUnit_2 | I_ServiceDocumentEnhcd | _SalesGroupOrgUnit_2 | ||
| _ServiceOrganizationOrgUnit | I_ServiceDocumentEnhcd | _ServiceOrganizationOrgUnit | ||
| _ServiceOrganizationOrgUnit_2 | I_ServiceDocumentEnhcd | _ServiceOrganizationOrgUnit_2 | ||
| _RespSrvcOrganizationOrgUnit | I_ServiceDocumentEnhcd | _RespSrvcOrganizationOrgUnit | ||
| _RespSrvcOrganizationOrgUnit_2 | I_ServiceDocumentEnhcd | _RespSrvcOrganizationOrgUnit_2 | ||
| _SalesOrganization | I_ServiceDocumentEnhcd | _SalesOrganization | ||
| _SalesOffice | I_ServiceDocumentEnhcd | _SalesOffice | ||
| _SalesGroup | I_ServiceDocumentEnhcd | _SalesGroup | ||
| _DistributionChannel | I_ServiceDocumentEnhcd | _DistributionChannel | ||
| _Division | I_ServiceDocumentEnhcd | _Division | ||
| _Region | I_ServiceDocumentEnhcd | _Region | ||
| _SrvcDocumentRejectionReason | I_ServiceDocumentEnhcd | _SrvcDocumentRejectionReason | ||
| _ServiceRisk | I_ServiceDocumentEnhcd | _ServiceRisk | ||
| _ServiceDocProblemCategory | I_ServiceDocumentEnhcd | _ServiceDocProblemCategory | ||
| _ServiceDocItem | I_ServiceDocumentEnhcd | _ServiceDocItem | ||
| _ServiceDocRefObj | I_ServiceDocumentEnhcd | _ServiceDocRefObj | ||
| _ServiceDocPredecessor | I_ServiceDocumentEnhcd | _ServiceDocPredecessor | ||
| _ServiceDocSuccessor | I_ServiceDocumentEnhcd | _ServiceDocSuccessor |
@AbapCatalog:
{
sqlViewName: 'PSRVDOCENHCD',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
viewType: #COMPOSITE,
private:true
}
define view P_SrvcDocEnhcdWithCloudCheck
as select from I_ServiceDocumentEnhcd as _DocEnhd
{
key _DocEnhd.ServiceDocument,
key _DocEnhd.ServiceDocumentType,
_DocEnhd.ServiceDocumentDescription,
_DocEnhd.ServiceDocumentTemplateType,
_DocEnhd.ServiceObjectType,
_DocEnhd.ServiceContractStartDate,
_DocEnhd.ServiceContractEndDate,
@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 'TransactionCurrency'} }
_DocEnhd.ServiceDocNetAmount,
_DocEnhd.ServiceDocumentCreationDate,
_DocEnhd.PostingDate,
// Organizational units with the S/4 SD codes
@ObjectModel.foreignKey.association: '_SalesOrganization'
_DocEnhd.SalesOrganization,
@ObjectModel.foreignKey.association: '_SalesOffice'
_DocEnhd.SalesOffice,
@ObjectModel.foreignKey.association: '_SalesGroup'
_DocEnhd.SalesGroup,
// Header Details
_DocEnhd.ServiceDocumentUUID,
_DocEnhd.ServiceDocumentCharUUID,
// Partner Details
@ObjectModel.foreignKey.association: '_SoldToParty'
_DocEnhd.SoldToParty,
@ObjectModel.foreignKey.association: '_SoldToPartyCountry'
_DocEnhd.SoldToPartyCountry,
@ObjectModel.foreignKey.association: '_SoldToPartyRegion'
_DocEnhd.SoldToPartyRegion,
@ObjectModel.foreignKey.association: '_ServiceTeam'
_DocEnhd.ServiceTeam,
@ObjectModel.foreignKey.association: '_RespEmployee'
_DocEnhd.ResponsibleEmployee,
@ObjectModel.foreignKey.association: '_ServiceEmployee'
_DocEnhd.ServiceEmployee,
@ObjectModel.foreignKey.association: '_ContactPerson'
_DocEnhd.ContactPerson,
@ObjectModel.foreignKey.association: '_ShipToParty'
_DocEnhd.ShipToParty,
@ObjectModel.foreignKey.association: '_BillToParty'
_DocEnhd.BillToParty,
_DocEnhd.PayerParty,
// Status
@ObjectModel.foreignKey.association: '_SrvcDocLifecycleStatus'
_DocEnhd.ServiceDocumentStatus,
@ObjectModel.foreignKey.association: '_ServiceDocHasError'
_DocEnhd.ServiceDocumentHasError,
@ObjectModel.foreignKey.association: '_ServiceDocBillingStatus'
_DocEnhd.ServiceDocBillingStatus,
@ObjectModel.foreignKey.association: '_SrvcDocIsRelForBillgSts'
_DocEnhd.ServiceDocIsReleasedForBilling,
@ObjectModel.foreignKey.association: '_ServiceDocumentIsOpen'
_DocEnhd.ServiceDocumentIsOpen,
_DocEnhd.ServiceDocumentIsQuotation,
_DocEnhd.ServiceDocumentIsReleased,
_DocEnhd.ServiceDocumentIsRejected,
_DocEnhd.ServiceConfirmationIsFinal,
@ObjectModel.foreignKey.association: '_ServiceContractCanclnSts'
_DocEnhd.ServiceContractCanclnSts,
// Service Request
_DocEnhd.RecommendedServicePriority,
_DocEnhd.ServiceDocumentUrgency,
_DocEnhd.ServiceDocumentImpact,
_DocEnhd.ServiceEscalationLevel,
@ObjectModel.foreignKey.association: '_ServiceDocProblemCategory'
_DocEnhd.ServiceDocumentProblemCategory,
@ObjectModel.foreignKey.association: '_ServiceRisk'
_DocEnhd.ServiceRisk,
// Cancel Header
_DocEnhd.ServiceDocumentCanclnParty,
_DocEnhd.ServiceDocumentCanclnReason,
// In-House Repair Reference
_DocEnhd.ReferenceInHouseRepair,
_DocEnhd.ReferenceInHouseRepairItem,
_DocEnhd.RefInHouseRepairIsExisting,
// Billing Set
@ObjectModel.foreignKey.association: '_BillingBlockReason'
_DocEnhd.BillingBlockReason,
// Sales Set
_DocEnhd.PurchaseOrderByCustomer,
_DocEnhd.CustomerPurchaseOrderDate,
@ObjectModel.foreignKey.association: '_SrvcDocumentRejectionReason'
_DocEnhd.ServiceDocumentRejectionReason,
@ObjectModel.foreignKey.association: '_Region'
_DocEnhd.Region,
// Activity
@ObjectModel.foreignKey.association: '_ActivityCategory'
_DocEnhd.BusinessActivityCategory,
@ObjectModel.foreignKey.association: '_ServiceDocumentPriority'
_DocEnhd.ServiceDocumentPriority,
// Pricing Parameter Set
@ObjectModel.foreignKey.association: '_PaymentTerms'
_DocEnhd.PaymentTerms,
@ObjectModel.foreignKey.association: '_TransactionCurrency'
_DocEnhd.TransactionCurrency,
// Organizational Unit Set
@ObjectModel.foreignKey.association: '_SalesOrganizationOrgUnit_2'
_DocEnhd.SalesOrganizationOrgUnitID,
@ObjectModel.foreignKey.association: '_SalesOfficeOrgUnit_2'
_DocEnhd.SalesOfficeOrgUnitID,
@ObjectModel.foreignKey.association: '_SalesGroupOrgUnit_2'
_DocEnhd.SalesGroupOrgUnitID,
@ObjectModel.foreignKey.association: '_DistributionChannel'
_DocEnhd.DistributionChannel,
@ObjectModel.foreignKey.association: '_Division'
_DocEnhd.Division,
@ObjectModel.foreignKey.association: '_ServiceOrganizationOrgUnit_2'
_DocEnhd.ServiceOrganization,
@ObjectModel.foreignKey.association: '_RespSrvcOrganizationOrgUnit_2'
_DocEnhd.ResponsibleServiceOrganization,
// Associations to next level
// Header Keys Assocations
_DocEnhd._ServiceObjType,
// Header Details Assocations
_DocEnhd._ServiceDocumentType,
_DocEnhd.ServiceDocumentCreatedByUser,
_DocEnhd.ServiceDocumentChangedByUser,
_DocEnhd.PricingDocument,
_DocEnhd.PricingProcedure,
_DocEnhd.RefBusinessSolutionOrder,
// Service Organizational Units with S/4 Code
_DocEnhd.RespyMgmtServiceTeam,
// Partner Details Associations
_DocEnhd._SoldToParty,
_DocEnhd._RespEmployee,
_DocEnhd._ServiceTeam,
_DocEnhd._ServiceEmployee,
_DocEnhd._ContactPerson,
_DocEnhd._ShipToParty,
_DocEnhd._BillToParty,
_DocEnhd._SoldToPartyToCustomer,
_DocEnhd._SoldToPartyCountry,
_DocEnhd._SoldToPartyRegion,
_DocEnhd._ServiceTeamHeader,
// Status Assocations
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_SrvcDocLifecycleStatus'
_DocEnhd._ServiceDocumentStatus,
_DocEnhd._SrvcDocLifecycleStatus,
_DocEnhd._ServiceDocBillingStatus,
_DocEnhd._SrvcDocIsRelForBillgSts,
_DocEnhd._ServiceDocumentIsOpen,
_DocEnhd._ServiceDocHasError,
_DocEnhd._ServiceContractCanclnSts,
// Billing Set Associations
_DocEnhd._BillingBlockReason,
// Activity Associations
_DocEnhd._ActivityCategory,
_DocEnhd._ServiceDocumentPriority,
// Pricing Parameter Set
_DocEnhd._TransactionCurrency,
_DocEnhd._PaymentTerms,
_DocEnhd._FixedPrice,
// Organization Unit Set Assocations
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_SalesOrganizationOrgUnit_2'
_DocEnhd._SalesOrganizationOrgUnit,
_DocEnhd._SalesOrganizationOrgUnit_2,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_SalesOfficeOrgUnit_2'
_DocEnhd._SalesOfficeOrgUnit,
_DocEnhd._SalesOfficeOrgUnit_2,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_SalesGroupOrgUnit_2'
_DocEnhd._SalesGroupOrgUnit,
_DocEnhd._SalesGroupOrgUnit_2,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_ServiceOrganizationOrgUnit_2'
_DocEnhd._ServiceOrganizationOrgUnit,
_DocEnhd._ServiceOrganizationOrgUnit_2,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_RespSrvcOrganizationOrgUnit_2'
_DocEnhd._RespSrvcOrganizationOrgUnit,
_DocEnhd._RespSrvcOrganizationOrgUnit_2,
_DocEnhd._SalesOrganization,
_DocEnhd._SalesOffice,
_DocEnhd._SalesGroup,
_DocEnhd._DistributionChannel,
_DocEnhd._Division,
// Sales Set Assocaition
_DocEnhd._Region,
_DocEnhd._SrvcDocumentRejectionReason,
// Service Request Association
_DocEnhd._ServiceRisk,
_DocEnhd._ServiceDocProblemCategory,
// Association to Service Document Item
_DocEnhd._ServiceDocItem,
// Association to Service Document Enhanced views
_DocEnhd._ServiceDocRefObj,
_DocEnhd._ServiceDocPredecessor,
_DocEnhd._ServiceDocSuccessor
}
where
_DocEnhd.ServiceDocumentIsOpen = 'X'
and _DocEnhd.SrvcDocIsMaintServiceOrder != 'X'
and _DocEnhd.ServiceDocumentTemplateType is initial
// and _DocEnhd.RefInHouseRepairIsExisting is initial
and(
_DocEnhd.ServiceObjectType = 'BUS2000112'
or _DocEnhd.ServiceObjectType = 'BUS2000116'
)
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