P_PL_SAFTBillingDocument
P_PL_SAFTBillingDocument is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_PL_SAFTBillingDocumentBasic, I_BillingDocumentItem) and exposes 7 fields with key field BillingDocument. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_PL_SAFTBillingDocumentBasic | a | from |
| I_BillingDocumentItem | b | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SDDocumentReason | _SDDocumentReason | $projection.SDDocumentReason = _SDDocumentReason.SDDocumentReason |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPLSAFTBILLDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingDocument | P_PL_SAFTBillingDocumentBasic | BillingDocument | |
| PL_SAFTInvoiceType | P_PL_SAFTBillingDocumentBasic | PL_SAFTInvoiceType | ||
| BillingDocumentCategory | P_PL_SAFTBillingDocumentBasic | BillingDocumentCategory | ||
| BillingDocumentDate | P_PL_SAFTBillingDocumentBasic | BillingDocumentDate | ||
| DeliveryDate | ||||
| SDDocumentReason | ||||
| _SDDocumentReason | _SDDocumentReason |
@AbapCatalog.sqlViewName: 'PPLSAFTBILLDOC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_PL_SAFTBillingDocument
as select from P_PL_SAFTBillingDocumentBasic as a
inner join I_BillingDocumentItem as b on a.BillingDocument = b.BillingDocument
association [0..1] to I_SDDocumentReason as _SDDocumentReason on $projection.SDDocumentReason = _SDDocumentReason.SDDocumentReason
{
key a.BillingDocument,
a.PL_SAFTInvoiceType,
a.BillingDocumentCategory,
a.BillingDocumentDate,
max(b.ServicesRenderedDate) as DeliveryDate,
max(b.SDDocumentReason) as SDDocumentReason,
_SDDocumentReason
}
group by
a.BillingDocument,
a.PL_SAFTInvoiceType,
a.BillingDocumentCategory,
a.BillingDocumentDate
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENTITEM",
"P_PL_SAFTBILLINGDOCUMENTBASIC"
],
"ASSOCIATED":
[
"I_SDDOCUMENTREASON"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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