P_BSQPMPrvdrContrToBillgDoc

DDL: P_BSQPMPRVDRCONTRTOBILLGDOC Type: view_entity COMPOSITE

P_BSQPMPrvdrContrToBillgDoc is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CABillgDocItem, I_ProviderContractItem) and exposes 6 fields with key fields SubsequentDocument, SubsequentDocumentItem.

Data Sources (2)

SourceAliasJoin Type
I_CABillgDocItem BillingDocument from
I_ProviderContractItem ProviderContractItem inner

Annotations (7)

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

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY SubsequentDocument I_CABillgDocItem CABillgDocument Billing Doc.
KEY SubsequentDocumentItem I_CABillgDocItem CABillgDocItem Item
SubsequentDocumentCategory
PrecedingDocument I_CABillgDocItem CAContract Contract
PrecedingDocumentItem I_CABillgDocItem CAProviderContractItemNumber Contract Item
PrecedingDocumentCategory

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_BSQPMPrvdrContrToBillgDoc.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW P_BSQPMPrvdrContrToBillgDoc AS
SELECT
  BillingDocument.CABillgDocument AS SubsequentDocument,
  BillingDocument.CABillgDocItem AS SubsequentDocumentItem,
  cast( 'CABD' as subsequ_doc_cat preserving type ) AS SubsequentDocumentCategory,
  BillingDocument.CAContract AS PrecedingDocument,
  BillingDocument.CAProviderContractItemNumber AS PrecedingDocumentItem,
  cast( 'PC' as preced_doc_cat ) AS PrecedingDocumentCategory
FROM I_CABillgDocItem AS BillingDocument
INNER JOIN I_ProviderContractItem AS ProviderContractItem ON /* join condition not captured in parsed metadata */
;