P_AccrEngnRptgSimlnActlUnion
P_AccrEngnRptgSimlnActlUnion is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_AccrEngnAccrPostingEntryItem, I_AccrEngnAccrSimlnEntryItem) and exposes 216 fields with key fields SourceLedger, CompanyCode, FiscalYear, JournalEntry, LedgerGLLineItem. It has 4 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_AccrEngnAccrPostingEntryItem | I_AccrEngnAccrPostingEntryItem | from |
| I_AccrEngnAccrSimlnEntryItem | I_AccrEngnAccrSimlnEntryItem | union_all |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Ledger | _Ledger | $projection.Ledger = _Ledger.Ledger |
| [0..1] | I_Ledger | _SourceLedger | $projection.SourceLedger = _SourceLedger.Ledger |
| [0..1] | I_AccrObjResponsiblePerson | _AccrObjPersonResponsibleName | $projection.AccrObjPersonResponsibleName = _AccrObjPersonResponsibleName.UserID |
| [0..*] | I_AccrEngineAccrSubobjRawItem | _SubobjAccrItem | $projection.AccrualEngineAccrualObjectType = _SubobjAccrItem.AccrualEngineAccrualObjectType and $projection.AccrualObjectLogicalSystem = _SubobjAccrItem.AccrualObjectLogicalSystem and $projection.CompanyCode = _SubobjAccrItem.CompanyCode and $projection.AccrualObject = _SubobjAccrItem.AccrualObject and $projection.AccrualSubobject = _SubobjAccrItem.AccrualSubobject and $projection.AccrualItemType = _SubobjAccrItem.AccrualItemType and $projection.Ledger = _SubobjAccrItem.Ledger |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (216)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | SourceLedger | Source Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | JournalEntry | JournalEntry | ||
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| KEY | Ledger | Ledger | Ledger | |
| KEY | FinancialPlanningReqTransSqnc | Request TSN | ||
| KEY | FinancialPlanningDataPacket | Data packet number | ||
| KEY | FinancialPlanningEntryItem | |||
| PlanningCategory | Plan Category | |||
| AccrualEngineAccrualObjectType | AccrualEngineAccrualObjectType | Component | ||
| AccrualObjectLogicalSystem | AccrualObjectLogicalSystem | Logical System | ||
| AccrualObject | AccrualObject | External Reference of Accrual Object | ||
| AccrualSubobject | AccrualSubobject | External Reference of Accrual Subobject | ||
| AccrualItemType | AccrualItemType | Accrual Item Type | ||
| AccrualReferenceObject | AccrualReferenceObject | Acr. Reference ID | ||
| AccrualValueDate | AccrualValueDate | |||
| AccrualTransactionType | AccrualTransactionType | |||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| PostdAccrAmtInTransCurrency | PostdAccrAmtInTransCurrency | |||
| PostdAccrAmtInCoCodeCrcy | PostdAccrAmtInCoCodeCrcy | |||
| PostdAccrAmtInGlobalCurrency | PostdAccrAmtInGlobalCurrency | |||
| SmltdAccrAmtInTransCrcy | ||||
| SmltdAccrAmtInCoCodeCrcy | ||||
| SmltdAccrAmtInGlobCrcy | ||||
| AccrualObjectDescription | AccrualObjectDescription | |||
| AccrObjPersonResponsibleName | AccrObjPersonResponsibleName | |||
| AccrSubobjHdrStartOfLifeDate | _SubobjAccrItem | AccrSubobjHdrStartOfLifeDate | Start of Life | |
| AccrSubobjHdrEndOfLifeDate | _SubobjAccrItem | AccrSubobjHdrEndOfLifeDate | End of Life | |
| AccrualGeneralValidityStartDte | _SubobjAccrItem | AccrSubobjectItmValdtyStrtDte | From | |
| AccrualGeneralValidityEndDte | _SubobjAccrItem | AccrSubobjectItmValdtyEndDte | To | |
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| LedgerFiscalYear | LedgerFiscalYear | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| CreationDateTime | CreationDateTime | |||
| AccountingDocCreatedByUser | AccountingDocCreatedByUser | |||
| BusinessTransactionType | BusinessTransactionType | Bus.transaction | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| ReferenceDocumentContext | ReferenceDocumentContext | Reference Document Context | ||
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| FinancialTransactionType | FinancialTransactionType | Transact. Type | ||
| SubLedgerAcctLineItemType | SubLedgerAcctLineItemType | SLALineItemType | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| DocumentItemText | DocumentItemText | Text | ||
| BusinessArea | BusinessArea | Business Area | ||
| Product | Product | Product Sold | ||
| GLAccount | GLAccount | General Ledger | ||
| OffsettingAccount | OffsettingAccount | Offsetting Acct | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| OffsettingChartOfAccounts | OffsettingChartOfAccounts | Offsetting Chart of Accounts | ||
| CostCenter | CostCenter | Cost Center | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| SalesDocument | SalesDocument | SD Document | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| OrderID | OrderID | Order ID | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| ProjectInternalID | ProjectInternalID | Project Def. | ||
| ProjectExternalID | ProjectExternalID | Project def. | ||
| WorkPackage | WorkPackage | Plan Item | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| Segment | Segment | Segment number | ||
| Customer | Customer | Sold-to Party | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| _SourceLedger | _SourceLedger | |||
| _Ledger | _Ledger | |||
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| _AccrTransactionType | _AccrTransactionType | |||
| _AccrObjectType | _AccrObjectType | |||
| _AccrLogicalSystem | _AccrLogicalSystem | |||
| _AccrItemType | _AccrItemType | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _GlobalCurrency | _GlobalCurrency | |||
| _FiscalYearVariant | _FiscalYearVariant | |||
| _FiscalPeriodForVariant | _FiscalPeriodForVariant | |||
| _FiscalYearPeriodForVariant | _FiscalYearPeriodForVariant | |||
| _LedgerFiscalYearForVariant | _LedgerFiscalYearForVariant | |||
| _BusinessTransactionType | _BusinessTransactionType | |||
| _SubLedgerAccLineItemType | _SubLedgerAccLineItemType | |||
| _FunctionalArea | _FunctionalArea | |||
| _ControllingArea | _ControllingArea | |||
| _BusinessArea | _BusinessArea | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _OffstgGLAcctInChartOfAccounts | _OffstgGLAcctInChartOfAccounts | |||
| _OffsettingChartOfAccounts | _OffsettingChartOfAccounts | |||
| _CostCenter | _CostCenter | |||
| _ProfitCenter | _ProfitCenter | |||
| _Segment | _Segment | |||
| _SalesDocument | _SalesDocument | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _ProjectBasicData | _ProjectBasicData | |||
| _WBSElementByExternalID | _WBSElementByExternalID | |||
| _ProjectByExternalID | _ProjectByExternalID | |||
| _FinancialTransactionType | _FinancialTransactionType | |||
| _Order | _Order | |||
| _ServiceDocument | _ServiceDocument | |||
| _AccrObjPersonResponsibleName | _AccrObjPersonResponsibleName | |||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | JournalEntry | |||
| KEY | LedgerGLLineItem | Journal Entry Item | ||
| KEY | Ledger | Ledger | Ledger | |
| KEY | FinancialPlanningReqTransSqnc | FinancialPlanningReqTransSqnc | Request TSN | |
| KEY | FinancialPlanningDataPacket | FinancialPlanningDataPacket | Data packet number | |
| KEY | FinancialPlanningEntryItem | FinancialPlanningEntryItem | ||
| PlanningCategory | PlanningCategory | Plan Category | ||
| AccrualEngineAccrualObjectType | AccrualEngineAccrualObjectType | Component | ||
| AccrualObjectLogicalSystem | AccrualObjectLogicalSystem | Logical System | ||
| AccrualObject | AccrualObject | External Reference of Accrual Object | ||
| AccrualSubobject | AccrualSubobject | External Reference of Accrual Subobject | ||
| AccrualItemType | AccrualItemType | Accrual Item Type | ||
| AccrualReferenceObject | AccrualReferenceObject | Acr. Reference ID | ||
| AccrualValueDate | AccrualValueDate | |||
| AccrualTransactionType | AccrualTransactionType | |||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| PostdAccrAmtInTransCurrency | ||||
| PostdAccrAmtInCoCodeCrcy | ||||
| PostdAccrAmtInGlobalCurrency | ||||
| SmltdAccrAmtInTransCrcy | SmltdAccrAmtInTransCrcy | |||
| SmltdAccrAmtInCoCodeCrcy | SmltdAccrAmtInCoCodeCrcy | |||
| SmltdAccrAmtInGlobCrcy | SmltdAccrAmtInGlobCrcy | |||
| AccrualObjectDescription | ||||
| AccrObjPersonResponsibleName | ||||
| AccrSubobjHdrStartOfLifeDate | Start of Life | |||
| AccrSubobjHdrEndOfLifeDate | End of Life | |||
| AccrualGeneralValidityStartDte | From | |||
| AccrualGeneralValidityEndDte | To | |||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| LedgerFiscalYear | LedgerFiscalYear | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| CreationDateTime | ||||
| AccountingDocCreatedByUser | ||||
| BusinessTransactionType | BusinessTransactionType | Bus.transaction | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| ReferenceDocumentContext | ReferenceDocumentContext | Reference Document Context | ||
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| FinancialTransactionType | FinancialTransactionType | Transact. Type | ||
| SubLedgerAcctLineItemType | SubLedgerAcctLineItemType | SLALineItemType | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| DocumentItemText | DocumentItemText | Text | ||
| BusinessArea | BusinessArea | Business Area | ||
| Product | Product | Product Sold | ||
| GLAccount | GLAccount | General Ledger | ||
| OffsettingAccount | OffsettingAccount | Offsetting Acct | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| OffsettingChartOfAccounts | OffsettingChartOfAccounts | Offsetting Chart of Accounts | ||
| CostCenter | CostCenter | Cost Center | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| SalesDocument | SalesDocument | SD Document | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| OrderID | OrderID | Order ID | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| ProjectInternalID | ProjectInternalID | Project Def. | ||
| ProjectExternalID | ProjectExternalID | Project def. | ||
| WorkPackage | WorkPackage | Plan Item | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| Segment | Segment | Segment number | ||
| Customer | Customer | Sold-to Party | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| _SourceLedger | _SourceLedger | |||
| _Ledger | _Ledger | |||
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| _AccrTransactionType | _AccrTransactionType | |||
| _AccrObjectType | _AccrObjectType | |||
| _AccrLogicalSystem | _AccrLogicalSystem | |||
| _AccrItemType | _AccrItemType | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _GlobalCurrency | _GlobalCurrency | |||
| _FiscalYearVariant | _FiscalYearVariant | |||
| _FiscalPeriodForVariant | _FiscalPeriodForVariant | |||
| _FiscalYearPeriodForVariant | _FiscalYearPeriodForVariant | |||
| _LedgerFiscalYearForVariant | _LedgerFiscalYearForVariant | |||
| _BusinessTransactionType | _BusinessTransactionType | |||
| _SubLedgerAccLineItemType | _SubLedgerAccLineItemType | |||
| _FunctionalArea | _FunctionalArea | |||
| _ControllingArea | _ControllingArea | |||
| _BusinessArea | _BusinessArea | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _OffstgGLAcctInChartOfAccounts | _OffstgGLAcctInChartOfAccounts | |||
| _OffsettingChartOfAccounts | _OffsettingChartOfAccounts | |||
| _CostCenter | _CostCenter | |||
| _ProfitCenter | _ProfitCenter | |||
| _Segment | _Segment | |||
| _SalesDocument | _SalesDocument | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _ProjectBasicData | _ProjectBasicData | |||
| _WBSElementByExternalID | _WBSElementByExternalID | |||
| _ProjectByExternalID | _ProjectByExternalID | |||
| _FinancialTransactionType | _FinancialTransactionType | |||
| _Order | _Order | |||
| _ServiceDocument | _ServiceDocument | |||
| _AccrObjPersonResponsibleName | _AccrObjPersonResponsibleName | |||
| _SubobjAccrItem | _SubobjAccrItem |
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 P_AccrEngnRptgSimlnActlUnion.
-- 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.
CREATE VIEW P_AccrEngnRptgSimlnActlUnion AS
SELECT
SourceLedger,
CompanyCode,
FiscalYear,
JournalEntry,
LedgerGLLineItem,
Ledger,
cast ( abap.numc'00000000000000000000000' as fis_fp_request_tsn preserving type ) AS FinancialPlanningReqTransSqnc,
cast (abap.numc'000000' as rsdatapid preserving type ) AS FinancialPlanningDataPacket,
cast (abap.int1'0' as rsarecord ) AS FinancialPlanningEntryItem,
cast( abap.char' ' as fcom_category ) AS PlanningCategory,
AccrualEngineAccrualObjectType,
AccrualObjectLogicalSystem,
AccrualObject,
AccrualSubobject,
AccrualItemType,
AccrualReferenceObject,
AccrualValueDate,
AccrualTransactionType,
TransactionCurrency,
CompanyCodeCurrency,
GlobalCurrency,
PostdAccrAmtInTransCurrency,
PostdAccrAmtInCoCodeCrcy,
PostdAccrAmtInGlobalCurrency,
cast(abap.curr'0.00' as ace_smltd_accr_amnt_wcurr ) AS SmltdAccrAmtInTransCrcy,
cast(abap.curr'0.00' as ace_smltd_accr_amnt_hcurr ) AS SmltdAccrAmtInCoCodeCrcy,
cast(abap.curr'0.00' as ace_smltd_accr_amnt_kcurr ) AS SmltdAccrAmtInGlobCrcy,
AccrualObjectDescription,
AccrObjPersonResponsibleName,
_SubobjAccrItem.AccrSubobjHdrStartOfLifeDate AS AccrSubobjHdrStartOfLifeDate,
_SubobjAccrItem.AccrSubobjHdrEndOfLifeDate AS AccrSubobjHdrEndOfLifeDate,
_SubobjAccrItem.AccrSubobjectItmValdtyStrtDte AS AccrualGeneralValidityStartDte,
_SubobjAccrItem.AccrSubobjectItmValdtyEndDte AS AccrualGeneralValidityEndDte,
FiscalYearVariant,
FiscalPeriod,
FiscalYearPeriod,
LedgerFiscalYear,
PostingDate,
CreationDateTime,
AccountingDocCreatedByUser,
BusinessTransactionType,
ReferenceDocumentType,
ReferenceDocumentContext,
ReferenceDocument,
FinancialTransactionType,
SubLedgerAcctLineItemType,
FunctionalArea,
ControllingArea,
DocumentItemText,
BusinessArea,
Product,
GLAccount,
OffsettingAccount,
ChartOfAccounts,
OffsettingChartOfAccounts,
CostCenter,
ProfitCenter,
SalesDocument,
SalesDocumentItem,
OrderID,
WBSElementInternalID,
WBSElementExternalID,
ProjectInternalID,
ProjectExternalID,
WorkPackage,
ProjectNetwork,
ServiceDocument,
ServiceDocumentType,
Segment,
Customer,
AssignmentReference
FROM I_AccrEngnAccrPostingEntryItem
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger -- association [1..1]
LEFT OUTER JOIN I_Ledger AS _SourceLedger ON SourceLedger = _SourceLedger.Ledger -- association [0..1]
LEFT OUTER JOIN I_AccrObjResponsiblePerson AS _AccrObjPersonResponsibleName ON AccrObjPersonResponsibleName = _AccrObjPersonResponsibleName.UserID -- association [0..1]
LEFT OUTER JOIN I_AccrEngineAccrSubobjRawItem AS _SubobjAccrItem ON AccrualEngineAccrualObjectType = _SubobjAccrItem.AccrualEngineAccrualObjectType AND AccrualObjectLogicalSystem = _SubobjAccrItem.AccrualObjectLogicalSystem AND CompanyCode = _SubobjAccrItem.CompanyCode AND AccrualObject = _SubobjAccrItem.AccrualObject AND AccrualSubobject = _SubobjAccrItem.AccrualSubobject AND AccrualItemType = _SubobjAccrItem.AccrualItemType AND Ledger = _SubobjAccrItem.Ledger -- association [0..*]
-- UNION ALL with additional select branch(es): I_AccrEngnAccrSimlnEntryItem
;
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