P_BSQPMBillgDocToSDInvc

DDL: P_BSQPMBILLGDOCTOSDINVC Type: view_entity COMPOSITE

P_BSQPMBillgDocToSDInvc is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_SDDocumentProcessFlow) and exposes 7 fields with key field DocRelationshipUUID.

Data Sources (1)

SourceAliasJoin Type
I_SDDocumentProcessFlow I_SDDocumentProcessFlow from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY DocRelationshipUUID DocRelationshipUUID
PrecedingDocument PrecedingDocument
PrecedingDocumentItem PrecedingDocumentItem
PrecedingDocumentCategory
SubsequentDocument SubsequentDocument
SubsequentDocumentItem SubsequentDocumentItem
SubsequentDocumentCategory SubsequentDocumentCategory
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #B,
  sizeCategory: #XL,
  dataClass: #TRANSACTIONAL
}
@VDM.private: true
@VDM.viewType: #COMPOSITE

define view entity P_BSQPMBillgDocToSDInvc
  as select from I_SDDocumentProcessFlow
{
  key DocRelationshipUUID,
      PrecedingDocument,
      PrecedingDocumentItem,
      'CABD' as PrecedingDocumentCategory,
      SubsequentDocument,
      SubsequentDocumentItem,
      SubsequentDocumentCategory

}
where
      PrecedingDocumentCategory  = '2'
  and SubsequentDocumentCategory = 'M'