P_AR_SupplierPaymentBPDetail

DDL: P_AR_SUPPLIERPAYMENTBPDETAIL Type: view_entity CONSUMPTION

P_AR_SupplierPaymentBPDetail is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_AR_SupplierPaymentUnion, I_Supplier) and exposes 26 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CompanyCode, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
P_AR_SupplierPaymentUnion Payment from
I_Supplier Supplier inner

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY StatryRptgEntity P_AR_SupplierPaymentUnion StatryRptgEntity
KEY StatryRptCategory P_AR_SupplierPaymentUnion StatryRptCategory
KEY StatryRptRunID P_AR_SupplierPaymentUnion StatryRptRunID
KEY CompanyCode P_AR_SupplierPaymentUnion CompanyCode
KEY FiscalYear P_AR_SupplierPaymentUnion FiscalYear
KEY AccountingDocument P_AR_SupplierPaymentUnion AccountingDocument
KEY AccountingDocumentItem P_AR_SupplierPaymentUnion AccountingDocumentItem
KEY ClearingInformationIndex P_AR_SupplierPaymentUnion ClearingInformationIndex
KEY ReltdDocAccountingDocument P_AR_SupplierPaymentUnion ReltdDocAccountingDocument
KEY RelatedDocumentItemNumber P_AR_SupplierPaymentUnion RelatedDocumentItemNumber
PaymentDate P_AR_SupplierPaymentUnion PaymentDate
PaymentMethod P_AR_SupplierPaymentUnion PaymentMethod
CompanyCodeCountry P_AR_SupplierPaymentUnion CompanyCodeCountry
CompanyCodeCurrency P_AR_SupplierPaymentUnion CompanyCodeCurrency
PaytAmountInCoCodeCurrency P_AR_SupplierPaymentUnion PaytAmountInCoCodeCurrency
HouseBank P_AR_SupplierPaymentUnion HouseBank
PaymentGLAccount P_AR_SupplierPaymentUnion PaymentGLAccount
_GLAccountInCompanyCode P_AR_SupplierPaymentUnion _GLAccountInCompanyCode
RelatedDocumentFiscalYear P_AR_SupplierPaymentUnion RelatedDocumentFiscalYear
ReltdDocTransactionCurrency P_AR_SupplierPaymentUnion ReltdDocTransactionCurrency
ReltdDocAmtInTransCurrency P_AR_SupplierPaymentUnion ReltdDocAmtInTransCurrency
ReltdSpclGLTransacType P_AR_SupplierPaymentUnion ReltdSpclGLTransacType
Supplier I_Supplier Supplier
CheckIssuerTaxNumber P_AR_SupplierPaymentUnion CheckIssuerTaxNumber
EndorsedBankTaxNumber P_AR_SupplierPaymentUnion EndorsedBankTaxNumber
EndorsedCheckNumber P_AR_SupplierPaymentUnion EndorsedCheckNumber
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@VDM.viewType: #CONSUMPTION
@VDM.private: true
define view entity P_AR_SupplierPaymentBPDetail
  as select from           P_AR_SupplierPaymentUnion     as Payment

    inner join             I_Supplier                    as Supplier         on Supplier.Supplier = Payment.Supplier

    left outer to one join I_JournalEntryItemOneTimeData as OneTimeAccountBP on  OneTimeAccountBP.CompanyCode        = Payment.CompanyCode
                                                                             and OneTimeAccountBP.AccountingDocument = Payment.ReltdDocAccountingDocument
                                                                             and OneTimeAccountBP.FiscalYear         = Payment.RelatedDocumentFiscalYear

{
  key Payment.StatryRptgEntity,
  key Payment.StatryRptCategory,
  key Payment.StatryRptRunID,
  key Payment.CompanyCode,
  key Payment.FiscalYear,
  key Payment.AccountingDocument,
  key Payment.AccountingDocumentItem,
  key Payment.ClearingInformationIndex,
  key Payment.ReltdDocAccountingDocument,
  key Payment.RelatedDocumentItemNumber,
      Payment.PaymentDate,
      Payment.PaymentMethod,
      Payment.CompanyCodeCountry,
      Payment.CompanyCodeCurrency,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      Payment.PaytAmountInCoCodeCurrency,
      Payment.HouseBank,
      Payment.PaymentGLAccount,
      Payment._GLAccountInCompanyCode,
      Payment.RelatedDocumentFiscalYear,
      Payment.ReltdDocTransactionCurrency,
      @Semantics.amount.currencyCode: 'ReltdDocTransactionCurrency'
      Payment.ReltdDocAmtInTransCurrency,
      Payment.ReltdSpclGLTransacType,
      Supplier.Supplier,

      cast(
        case Supplier.IsOneTimeAccount
          when 'X' then OneTimeAccountBP.BusinessPartnerName1
          when ''  then Supplier.BusinessPartnerName1
      end as businesspartnername )                 as BusinessPartnerName,

      cast(
        case Supplier.IsOneTimeAccount
          when 'X' then OneTimeAccountBP.Country
          when ''  then Supplier.Country
      end as glo_partner_country preserving type ) as BusinessPartnerCountry,

      cast(
        case Supplier.IsOneTimeAccount
          when 'X' then OneTimeAccountBP.TaxID1
          when ''  then Supplier.TaxNumber1
      end as stcd1 preserving type )               as TaxNumber1,

      cast(
        case Supplier.IsOneTimeAccount
          when 'X' then OneTimeAccountBP.IsNaturalPerson
          when ''  then Supplier.IsNaturalPerson
      end as bu_natural_person preserving type )   as IsNaturalPerson,

      Payment.CheckIssuerTaxNumber,
      Payment.EndorsedBankTaxNumber,
      Payment.EndorsedCheckNumber
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRYITEMONETIMEDATA",
"I_SUPPLIER",
"P_AR_SUPPLIERPAYMENTUNION"
],
"ASSOCIATED":
[
"I_GLACCOUNTINCOMPANYCODE"
],
"BASE":
[
"P_AR_SUPPLIERPAYMENTUNION"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/