P_PL_SAFTDwnPayInvoice

DDL: P_PL_SAFTDWNPAYINVOICE SQL: PPLSAFTDPINV Type: view BASIC

P_PL_SAFTDwnPayInvoice is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (I_BillingDocumentItem, tvfk) and exposes 2 fields with key fields BillingDocument, SalesDocument.

Data Sources (2)

SourceAliasJoin Type
I_BillingDocumentItem BillingDocumentItem inner
tvfk DocType inner

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PPLSAFTDPINV view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument BillingDocument BillingDocument
KEY SalesDocument I_BillingDocumentItem SalesDocument
@AbapCatalog.sqlViewName: 'PPLSAFTDPINV'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #BASIC
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_PL_SAFTDwnPayInvoice
  as select distinct from I_BillingDocument     as BillingDocument
    inner join            tvfk                  as DocType             on  DocType.fkart = BillingDocument.BillingDocumentType
                                                                       and DocType.trvog = '8' // proforma/downpayment

    inner join            I_BillingDocumentItem as BillingDocumentItem on  BillingDocumentItem.BillingDocument = BillingDocument.BillingDocument
                                                                       and BillingDocumentItem.SalesDocument   is not initial

{
  key BillingDocument.BillingDocument,
  key BillingDocumentItem.SalesDocument
}
where BillingDocument.SDDocumentCategory = 'M'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENT",
"I_BILLINGDOCUMENTITEM",
"TVFK"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/