I_USFedAPInvoiceStatusCube
US Fed AP Invoice Status - Cube
I_USFedAPInvoiceStatusCube is a Composite CDS View (Cube) that provides data about "US Fed AP Invoice Status - Cube" in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemRawData) and exposes 77 fields with key fields CompanyCode, SourceLedger, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 13 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemRawData | I_GLAccountLineItemRawData | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ClearingStatus | fis_clearingstatusselection |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_JournalEntryItem | _Extension | $projection.SourceLedger = _Extension.SourceLedger and $projection.CompanyCode = _Extension.CompanyCode and $projection.FiscalYear = _Extension.FiscalYear and $projection.AccountingDocument = _Extension.AccountingDocument and $projection.LedgerGLLineItem = _Extension.LedgerGLLineItem |
| [0..1] | I_FunctionalArea | _FunctionalAreaHierarchy | $projection.FndsMgmtRptgFctArForHierarchy = _FunctionalAreaHierarchy.FunctionalArea |
| [0..1] | I_Segment | _SegmentHierarchy | $projection.FndsMgmtRptgSegmentForHier = _SegmentHierarchy.Segment |
| [0..1] | I_Fund | _FundHierarchy | $projection.FinancialManagementArea = _FundHierarchy.FinancialManagementArea and $projection.FndsMgmtRptgFundForHierarchy = _FundHierarchy.Fund |
| [0..1] | I_FundedProgram | _FundedProgramHierarchy | $projection.FinancialManagementArea = _FundedProgramHierarchy.FinancialManagementArea and $projection.FndsMgmtRptgFnddPgmForHier = _FundedProgramHierarchy.FundedProgram |
| [0..*] | I_ProfitCenter | _ProfitCenterHierarchy | $projection.ControllingArea = _ProfitCenterHierarchy.ControllingArea and $projection.FndsMgmtRptgPrftCtrForHier = _ProfitCenterHierarchy.ProfitCenter |
| [0..1] | I_BudgetPeriod | _BudgetPeriodHierarchy | $projection.FndsMgmtRptgBdgtPerdForHier = _BudgetPeriodHierarchy.BudgetPeriod |
| [0..*] | I_FundsCenter | _FundsCenterHierarchy | $projection.FinancialManagementArea = _FundsCenterHierarchy.FinancialManagementArea and $projection.FndsMgmtRptgFndsCtrForHier = _FundsCenterHierarchy.FundsCenter |
| [0..1] | I_GLAccountInChartOfAccounts | _GLAccountHierarchy | $projection.ChartOfAccounts = _GLAccountHierarchy.ChartOfAccounts and $projection.GLAccountForHierarchy = _GLAccountHierarchy.GLAccount |
| [0..1] | I_FiscalYearForFinMgmtArea | _FiscalYearForFinMgmtArea | $projection.FinancialManagementArea = _FiscalYearForFinMgmtArea.FinancialManagementArea and $projection.USFedFiscalYearBlank = _FiscalYearForFinMgmtArea.FinMgmtAreaFiscalYear |
| [0..1] | I_WBSElementBasicData | _WBS | $projection.FundedProgram = _WBS.WBSElement |
| [0..1] | I_USFedProjectBasicDetail | _Project | $projection.USFedProjectIdentifier = _Project.ProjectExternalID |
| [0..1] | I_AccountingDocument | _AccDoc | $projection.CompanyCode = _AccDoc.CompanyCode and $projection.AccountingDocument = _AccDoc.AccountingDocument and $projection.FiscalYear = _AccDoc.FiscalYear |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | US Fed AP Invoice Status - Cube | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.internalName | #LOCAL | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| Analytics.dataCategory | #CUBE | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (77)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | SourceLedger | SourceLedger | Source Ledger | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| GLAccount | GLAccount | General Ledger | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| InvoiceReceiptDate | _AccDoc | InvoiceReceiptDate | Invoice Receipt Date | |
| USFedFiscalYearBlank | FiscalYear | G/L Fiscal Year | ||
| Fund | Fund | Sender Fund | ||
| FinancialManagementArea | FinancialManagementArea | FM Area | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| BudgetPeriod | BudgetPeriod | Budget Period | ||
| FundsCenter | FundsCenter | Funds Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| FundedProgram | FundedProgram | Funded Program | ||
| USFedProjectIdentifier | ||||
| Supplier | Supplier | Supplier | ||
| OrganizationBPName1 | _Supplier | OrganizationBPName1 | Name 1 | |
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| Segment | Segment | Segment number | ||
| BusinessArea | BusinessArea | Business Area | ||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| InvoiceReference | InvoiceReference | Invoice Reference | ||
| InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | ||
| InvoiceItemReference | InvoiceItemReference | Item | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| ClearingJournalEntry | ClearingJournalEntry | Clrng doc. | ||
| ClearingJournalEntryFiscalYear | ClearingJournalEntryFiscalYear | Fiscal Year of Clearing Journal Entry | ||
| IsOpenItemManaged | IsOpenItemManaged | Open Item Management | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| AmountInCompanyCodeCurrency | ||||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| FndsMgmtRptgSegmentForHier | Segment | Segment number | ||
| _SegmentHierarchy | _SegmentHierarchy | |||
| FndsMgmtRptgFundForHierarchy | Fund | Sender Fund | ||
| _FundHierarchy | _FundHierarchy | |||
| GLAccountForHierarchy | GLAccount | General Ledger | ||
| _GLAccountHierarchy | _GLAccountHierarchy | |||
| FndsMgmtRptgFnddPgmForHier | FundedProgram | Funded Program | ||
| _FundedProgramHierarchy | _FundedProgramHierarchy | |||
| FndsMgmtRptgPrftCtrForHier | ProfitCenter | Profit Center | ||
| _ProfitCenterHierarchy | _ProfitCenterHierarchy | |||
| FndsMgmtRptgBdgtPerdForHier | BudgetPeriod | Budget Period | ||
| _BudgetPeriodHierarchy | _BudgetPeriodHierarchy | |||
| FndsMgmtRptgFctArForHierarchy | FunctionalArea | Sendr Fctl Area | ||
| _FunctionalAreaHierarchy | _FunctionalAreaHierarchy | |||
| FndsMgmtRptgFndsCtrForHier | FundsCenter | Funds Center | ||
| _FundsCenterHierarchy | _FundsCenterHierarchy | |||
| _CompanyCode | _CompanyCode | |||
| _Ledger | _Ledger | |||
| _FiscalYear | _FiscalYear | |||
| _FiscalYearForFinMgmtArea | _FiscalYearForFinMgmtArea | |||
| _JournalEntry | _JournalEntry | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _Fund | _Fund | |||
| _FinancialManagementArea | _FinancialManagementArea | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _BudgetPeriod | _BudgetPeriod | |||
| _FundsCenter | _FundsCenter | |||
| _FunctionalArea | _FunctionalArea | |||
| _FundedProgram | _FundedProgram | |||
| _Supplier | _Supplier | |||
| _ControllingArea | _ControllingArea | |||
| _ProfitCenter | _ProfitCenter | |||
| _Segment | _Segment | |||
| _BusinessArea | _BusinessArea | |||
| _FiscalYearPeriodForVariant | _FiscalYearPeriodForVariant | |||
| _FiscalYearVariant | _FiscalYearVariant | |||
| _FinancialAccountType | _FinancialAccountType | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _Project | _Project | |||
| _AccDoc | _AccDoc |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_USFedAPInvoiceStatusCube.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- Parameters: P_ClearingStatus : fis_clearingstatusselection
CREATE VIEW I_USFedAPInvoiceStatusCube AS
SELECT
CompanyCode,
SourceLedger,
FiscalYear,
AccountingDocument,
LedgerGLLineItem,
GLAccount,
AccountingDocumentType,
_AccDoc.InvoiceReceiptDate AS InvoiceReceiptDate,
FiscalYear AS USFedFiscalYearBlank,
Fund,
FinancialManagementArea,
ChartOfAccounts,
BudgetPeriod,
FundsCenter,
FunctionalArea,
FundedProgram,
_WBS._Project.ProjectExternalID AS USFedProjectIdentifier,
Supplier,
_Supplier.OrganizationBPName1 AS OrganizationBPName1,
ControllingArea,
ProfitCenter,
Segment,
BusinessArea,
FiscalYearPeriod,
FiscalYearVariant,
InvoiceReference,
InvoiceReferenceFiscalYear,
InvoiceItemReference,
DocumentDate,
ClearingDate,
ClearingJournalEntry,
ClearingJournalEntryFiscalYear,
IsOpenItemManaged,
FinancialAccountType,
PostingDate,
-1 * curr_to_decfloat_amount( AmountInCompanyCodeCurrency ) AS AmountInCompanyCodeCurrency,
CompanyCodeCurrency,
Segment AS FndsMgmtRptgSegmentForHier,
Fund AS FndsMgmtRptgFundForHierarchy,
GLAccount AS GLAccountForHierarchy,
FundedProgram AS FndsMgmtRptgFnddPgmForHier,
ProfitCenter AS FndsMgmtRptgPrftCtrForHier,
BudgetPeriod AS FndsMgmtRptgBdgtPerdForHier,
FunctionalArea AS FndsMgmtRptgFctArForHierarchy,
FundsCenter AS FndsMgmtRptgFndsCtrForHier
FROM I_GLAccountLineItemRawData
LEFT OUTER JOIN E_JournalEntryItem AS _Extension ON SourceLedger = _Extension.SourceLedger AND CompanyCode = _Extension.CompanyCode AND FiscalYear = _Extension.FiscalYear AND AccountingDocument = _Extension.AccountingDocument AND LedgerGLLineItem = _Extension.LedgerGLLineItem -- association [1..1]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalAreaHierarchy ON FndsMgmtRptgFctArForHierarchy = _FunctionalAreaHierarchy.FunctionalArea -- association [0..1]
LEFT OUTER JOIN I_Segment AS _SegmentHierarchy ON FndsMgmtRptgSegmentForHier = _SegmentHierarchy.Segment -- association [0..1]
LEFT OUTER JOIN I_Fund AS _FundHierarchy ON FinancialManagementArea = _FundHierarchy.FinancialManagementArea AND FndsMgmtRptgFundForHierarchy = _FundHierarchy.Fund -- association [0..1]
LEFT OUTER JOIN I_FundedProgram AS _FundedProgramHierarchy ON FinancialManagementArea = _FundedProgramHierarchy.FinancialManagementArea AND FndsMgmtRptgFnddPgmForHier = _FundedProgramHierarchy.FundedProgram -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenterHierarchy ON ControllingArea = _ProfitCenterHierarchy.ControllingArea AND FndsMgmtRptgPrftCtrForHier = _ProfitCenterHierarchy.ProfitCenter -- association [0..*]
LEFT OUTER JOIN I_BudgetPeriod AS _BudgetPeriodHierarchy ON FndsMgmtRptgBdgtPerdForHier = _BudgetPeriodHierarchy.BudgetPeriod -- association [0..1]
LEFT OUTER JOIN I_FundsCenter AS _FundsCenterHierarchy ON FinancialManagementArea = _FundsCenterHierarchy.FinancialManagementArea AND FndsMgmtRptgFndsCtrForHier = _FundsCenterHierarchy.FundsCenter -- association [0..*]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountHierarchy ON ChartOfAccounts = _GLAccountHierarchy.ChartOfAccounts AND GLAccountForHierarchy = _GLAccountHierarchy.GLAccount -- association [0..1]
LEFT OUTER JOIN I_FiscalYearForFinMgmtArea AS _FiscalYearForFinMgmtArea ON FinancialManagementArea = _FiscalYearForFinMgmtArea.FinancialManagementArea AND USFedFiscalYearBlank = _FiscalYearForFinMgmtArea.FinMgmtAreaFiscalYear -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBS ON FundedProgram = _WBS.WBSElement -- association [0..1]
LEFT OUTER JOIN I_USFedProjectBasicDetail AS _Project ON USFedProjectIdentifier = _Project.ProjectExternalID -- association [0..1]
LEFT OUTER JOIN I_AccountingDocument AS _AccDoc ON CompanyCode = _AccDoc.CompanyCode AND AccountingDocument = _AccDoc.AccountingDocument AND FiscalYear = _AccDoc.FiscalYear -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA