P_MyPreliminaryBillingDocument

DDL: P_MYPRELIMINARYBILLINGDOCUMENT Type: view_entity COMPOSITE

P_MyPreliminaryBillingDocument is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MyPrelimBillingDocumentItem) and exposes 2 fields with key field PrelimBillingDocument.

Data Sources (1)

SourceAliasJoin Type
P_MyPrelimBillingDocumentItem MyItem from

Annotations (7)

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

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY PrelimBillingDocument
PBDIsInMyResponsibility

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_MyPreliminaryBillingDocument.
-- 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_MyPreliminaryBillingDocument AS
SELECT
  cast(MyItem.BillingDocument as prelim_billing_document preserving type) AS PrelimBillingDocument,
  cast('X' as pbd_is_in_my_responsibility preserving type) AS PBDIsInMyResponsibility
FROM P_MyPrelimBillingDocumentItem AS MyItem
;