I_USFedAPInvoiceTradingPartner
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)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemRawData | _Acdoca | from |
| bseg | _Bseg | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | fmfguskontkey | _Fmfguskontkey | $projection.USFedGovernmentUUID = _Fmfguskontkey.uskontkey |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA