I_USFedAPInvoiceTradingPartner

DDL: I_USFEDAPINVOICETRADINGPARTNER Type: view_entity BASIC

AP Invoice Trading Partner details

I_USFedAPInvoiceTradingPartner is a Basic CDS View that provides data about "AP Invoice Trading Partner details" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItemRawData, bseg) and exposes 7 fields with key fields SourceLedger, CompanyCode, AccountingDocument. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountLineItemRawData _Acdoca from
bseg _Bseg inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] fmfguskontkey _Fmfguskontkey $projection.USFedGovernmentUUID = _Fmfguskontkey.uskontkey

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label AP Invoice Trading Partner details view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger I_GLAccountLineItemRawData SourceLedger
KEY CompanyCode I_GLAccountLineItemRawData CompanyCode
KEY AccountingDocument I_GLAccountLineItemRawData AccountingDocument
USFedGovernmentUUID bseg fmfgus_key
USFedTradingPartnerAgency _Fmfguskontkey tp_agencid
USFedTrdgPartBusEventTypeCode _Fmfguskontkey tp_betc
USFedTrdgPartMainAccount _Fmfguskontkey tp_main_acct
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'AP Invoice Trading Partner details'
@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #BASIC
@ObjectModel.usageType:{
  serviceQuality: #B,
  sizeCategory: #XXL,
  dataClass: #TRANSACTIONAL
}
define view entity I_USFedAPInvoiceTradingPartner
  as select from I_GLAccountLineItemRawData as _Acdoca
    inner join   bseg                       as _Bseg on  _Acdoca.CompanyCode        = _Bseg.bukrs
                                                     and _Acdoca.FiscalYear         = _Bseg.gjahr
                                                     and _Acdoca.AccountingDocument = _Bseg.belnr
                                                     and _Bseg.buzei                = substring(
      _Acdoca.LedgerGLLineItem, 4, 3
    )
  association [0..1] to fmfguskontkey as _Fmfguskontkey on $projection.USFedGovernmentUUID = _Fmfguskontkey.uskontkey
{
  key _Acdoca.SourceLedger        as SourceLedger,
  key _Acdoca.CompanyCode         as CompanyCode,
  key _Acdoca.AccountingDocument  as AccountingDocument,
      _Bseg.fmfgus_key            as USFedGovernmentUUID,
      _Fmfguskontkey.tp_agencid   as USFedTradingPartnerAgency,
      _Fmfguskontkey.tp_betc      as USFedTrdgPartBusEventTypeCode,
      _Fmfguskontkey.tp_main_acct as USFedTrdgPartMainAccount
}