P_SAFT_BillDocOnInvoiceList

DDL: P_SAFT_BILLDOCONINVOICELIST SQL: PSAFTBDOCSIL Type: view COMPOSITE

P_SAFT_BillDocOnInvoiceList is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_InvoiceList, I_InvoiceListItem) and exposes 10 fields with key fields InvoiceList, InvoiceListItem, BillingDocument.

Data Sources (2)

SourceAliasJoin Type
I_InvoiceList IL inner
I_InvoiceListItem ILItem from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSAFTBDOCSIL 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 (10)

KeyFieldSource TableSource FieldDescription
KEY InvoiceList I_InvoiceListItem InvoiceList
KEY InvoiceListItem I_InvoiceListItem InvoiceListItem
KEY BillingDocument I_InvoiceListItem BillingDocument
SDDocumentCategory I_InvoiceList SDDocumentCategory
NetAmount I_InvoiceListItem NetAmount
RemunerationNetAmount I_InvoiceListItem RemunerationNetAmount
CompanyCode I_InvoiceList CompanyCode
_InvoiceList _InvoiceList
_CompanyCode _CompanyCode
_BillingDocument _BillingDocument
@AbapCatalog.sqlViewName: 'PSAFTBDOCSIL'
@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_SAFT_BillDocOnInvoiceList
  as select from           I_InvoiceListItem       as ILItem
    inner join             I_InvoiceList           as IL        on ILItem.InvoiceList = IL.InvoiceList

    left outer to one join I_SAFTInvoiceListHeader as CancelDoc on CancelDoc.CancelledBillingDocument = IL.InvoiceList
{
  key ILItem.InvoiceList,
  key ILItem.InvoiceListItem,
  key ILItem.BillingDocument,
      IL.SDDocumentCategory,
      ILItem.NetAmount,
      ILItem.RemunerationNetAmount,
      IL.CompanyCode,
      case when IL.CancelledBillingDocument is initial then
        case when CancelDoc.BillingDocument is initial or CancelDoc.BillingDocument is null
        then 'X'
        else ' ' end
      else '' end as BillingDocumentOnInvoiceList,

      _InvoiceList,
      _CompanyCode,
      _BillingDocument
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INVOICELIST",
"I_INVOICELISTITEM",
"I_SAFTINVOICELISTHEADER"
],
"ASSOCIATED":
[
"I_BILLINGDOCUMENT",
"I_COMPANYCODE",
"I_INVOICELIST"
],
"BASE":
[
"I_INVOICELIST",
"I_INVOICELISTITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/