P_PL_SAFTBillingDocument

DDL: P_PL_SAFTBILLINGDOCUMENT SQL: PPLSAFTBILLDOC Type: view COMPOSITE

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)

SourceAliasJoin Type
P_PL_SAFTBillingDocumentBasic a from
I_BillingDocumentItem b inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_SDDocumentReason _SDDocumentReason $projection.SDDocumentReason = _SDDocumentReason.SDDocumentReason

Annotations (10)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/