FACRA_MANUALACCRUALOBJECT
Manual Accrual
FACRA_MANUALACCRUALOBJECT is a CDS View that provides data about "Manual Accrual" in SAP S/4HANA. It reads from 1 data source (P_ACCRUALOBJECTPERIOD_ALL) and exposes 60 fields with key fields comp, logsys, bukrs, ref_key, ref_subkey. It has 6 associations to related views. Part of development package FI_GL_ACAC_S4.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_ACCRUALOBJECTPERIOD_ALL | P_ACCRUALOBJECTPERIOD_ALL | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | date |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PeriodAccrual | _periodParam | $projection.comp = _periodParam.AccrualEngineApplication and $projection.logsys = _periodParam.AccrualObjectLogicalSystem and $projection.bukrs = _periodParam.CompanyCode and $projection.ref_key = _periodParam.AccrualObject and $projection.ref_subkey = _periodParam.AccrualSubobject and $projection.itemtype = _periodParam.AccrualItemType and $projection.rldnr = _periodParam.Ledger and $projection.period_end_date = _periodParam.AccrualPeriodEndDate |
| [1..1] | I_AccrualSubObjItem | _item | $projection.comp = _item.AccrualObjectType and $projection.logsys = _item.AccrualObjectLogicalSystem and $projection.bukrs = _item.CompanyCode and $projection.ref_key = _item.AccrualObject and $projection.ref_subkey = _item.AccrualSubobject and $projection.itemtype = _item.AccrualItemType and $projection.rldnr = _item.Ledger and $projection.period_end_date >= _item.AccrSubobjectItmValdtyStrtDte and $projection.period_end_date <= _item.AccrSubobjectItmValdtyEndDte |
| [1..1] | I_ManualAccrualObject | _manual | $projection.bukrs = _manual.CompanyCode and $projection.ref_key = _manual.AccrualObject and $projection.ref_subkey = _manual.AccrualSubobject |
| [0..1] | I_AccrSubObjItemPostedAmt | _posted | $projection.comp = _posted.AccrualEngineApplication and $projection.logsys = _posted.AccrualObjectLogicalSystem and $projection.bukrs = _posted.CompanyCode and $projection.ref_key = _posted.AccrualObject and $projection.ref_subkey = _posted.AccrualSubobject and $projection.itemtype = _posted.AccrualItemType and $projection.rldnr = _posted.Ledger and $projection.period_end_date = _posted.AccrualPeriodEndDate |
| [0..1] | I_AccrualObjectAcctAssgmt | _assgmt | $projection.comp = _assgmt.AccrualEngineApplication and $projection.logsys = _assgmt.AccrualObjectLogicalSystem and $projection.bukrs = _assgmt.CompanyCode and $projection.ref_key = _assgmt.AccrualObject and $projection.ref_subkey = _assgmt.AccrualSubobject and $projection.period_end_date >= _assgmt.AccrAcctAssgmtValdtyStrtDte and $projection.period_end_date <= _assgmt.AccrAcctAssgmtValdtyEndDte |
| [0..1] | I_AccrItemTypeForLedgerGroup | _itemtypel | $projection.comp = _itemtypel.AccrualEngineApplication and $projection.bukrs = _itemtypel.CompanyCode and $projection.itemtype = _itemtypel.AccrualItemType and $projection.rldnr = _itemtypel.Ledger |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FACRA_ACACACCR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | comp | _period | comp | Legal competence |
| KEY | logsys | _period | logsys | Source system |
| KEY | bukrs | _period | bukrs | Value |
| KEY | ref_key | _period | ref_key | Source Reference Key |
| KEY | ref_subkey | _period | ref_subkey | Ext Ref of Subobject |
| KEY | itemtype | _period | itemtype | Object Type |
| KEY | rldnr | _period | rldnr | Ledger (Compat.) |
| KEY | is_proposed | _periodParam | ProposedAccrAmtIsExisting | |
| ldgrp | _itemtypel | LedgerGroup | Ledger Group | |
| acac_objtype | _manual | ManualAccrualsAccrObjectType | ||
| text | _manual | AccrualObjectDescription | ||
| uname | _manual | CreatedByUser | User Name | |
| pause_date | _manual | AccrSubobjPauseDate | ||
| acrmethod | _item | AccrualCalculationMethod | ||
| xobsolete | _item | AccrualItemIsObsolete | Obsolete | |
| rwcurttl | _item | TransactionCurrency | Transaction Currency | |
| rhcurttl | _item | CompanyCodeCurrency | Local Currency | |
| rkcurttl | _item | GlobalCurrency | GM Billing Element: Global Currency | |
| rocurttl | _item | FreeDefinedCurrency1 | Freely Defined Currency 1 | |
| rvcurttl | _item | FreeDefinedCurrency2 | Freely Defined Currency 2 | |
| rbcurttl | _item | FreeDefinedCurrency3 | Freely Defined Currency 3 | |
| rccurttl | _item | FreeDefinedCurrency4 | Freely Defined Currency 4 | |
| rdcurttl | _item | FreeDefinedCurrency5 | Freely Defined Currency 5 | |
| recurttl | _item | FreeDefinedCurrency6 | Freely Defined Currency 6 | |
| rfcurttl | _item | FreeDefinedCurrency7 | Freely Defined Currency 7 | |
| rgcurttl | _item | FreeDefinedCurrency8 | Freely Defined Currency 8 | |
| adjusted_by | _periodParam | AccrualAmountAdjustedByUser | ||
| adjusted_on | _periodParam | AccrualAmountAdjustmentDate | ||
| adjusted_at | _periodParam | AccrualAmountAdjustmentTime | ||
| xreviewed | _periodParam | AccrualAmountIsReviewed | ||
| review_type | _periodParam | AccrualPostingReviewType | ||
| reviewed_by | _periodParam | ReviewedByUser | ||
| reviewed_on | _periodParam | AmountReviewDate | ||
| reviewed_at | _periodParam | AmountReviewTime | ||
| xapproved | _periodParam | AccrualAmountIsApproved | ||
| approved_by | _periodParam | ApprovedByUser | ||
| approved_on | _periodParam | AccrualAmountApprovalDate | ||
| approved_at | _periodParam | AccrualAmountApprovalTime | ||
| PERIOD_AMNT_CHANGED_BY | _periodParam | AccrualAmountProposedByUser | ||
| PERIOD_AMNT_CHANGED_ON | _periodParam | AccrualAmountProposalDate | ||
| PERIOD_AMNT_CHANGED_AT | _periodParam | AccrualAmountProposalTime | ||
| prctr_name | ||||
| fistl_name | ||||
| geber_name | ||||
| fkber_name | ||||
| fikrs | _assgmt | FinancialManagementArea | FM Area | |
| kokrs | _assgmt | ControllingArea | Controlling Area | |
| aufnr_name | ||||
| WBSElementendasps_psp_pnrasps_psp_pnr | ||||
| WBSElementendasrcpe_ps_posnrasposid | ||||
| lstar_name | ||||
| SalesOrderItemendaskdposaskdpos | ||||
| ProjectInternalIDendasps_psphiaspsphi | ||||
| Projectendasps_pspidasPSPID | ||||
| _periodParam | _periodParam | |||
| _item | _item | |||
| _manual | _manual | |||
| _posted | _posted | |||
| _assgmt | _assgmt | |||
| _itemtypel | _itemtypel |
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 FACRA_MANUALACCRUALOBJECT.
-- 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.
-- SQL view name: FACRA_ACACACCR
-- Parameters: P_KeyDate : date
CREATE VIEW FACRA_MANUALACCRUALOBJECT AS
SELECT
_period.comp AS comp,
_period.logsys AS logsys,
_period.bukrs AS bukrs,
_period.ref_key AS ref_key,
_period.ref_subkey AS ref_subkey,
_period.itemtype AS itemtype,
_period.rldnr AS rldnr,
_periodParam.ProposedAccrAmtIsExisting AS is_proposed,
_itemtypel.LedgerGroup AS ldgrp,
_manual.ManualAccrualsAccrObjectType AS acac_objtype,
_manual.AccrualObjectDescription AS text,
_manual.CreatedByUser AS uname,
_manual.AccrSubobjPauseDate AS pause_date,
_item.AccrualCalculationMethod AS acrmethod,
_item.AccrualItemIsObsolete AS xobsolete,
_item.TransactionCurrency AS rwcurttl,
_item.CompanyCodeCurrency AS rhcurttl,
_item.GlobalCurrency AS rkcurttl,
_item.FreeDefinedCurrency1 AS rocurttl,
_item.FreeDefinedCurrency2 AS rvcurttl,
_item.FreeDefinedCurrency3 AS rbcurttl,
_item.FreeDefinedCurrency4 AS rccurttl,
_item.FreeDefinedCurrency5 AS rdcurttl,
_item.FreeDefinedCurrency6 AS recurttl,
_item.FreeDefinedCurrency7 AS rfcurttl,
_item.FreeDefinedCurrency8 AS rgcurttl,
_periodParam.AccrualAmountAdjustedByUser AS adjusted_by,
_periodParam.AccrualAmountAdjustmentDate AS adjusted_on,
_periodParam.AccrualAmountAdjustmentTime AS adjusted_at,
_periodParam.AccrualAmountIsReviewed AS xreviewed,
_periodParam.AccrualPostingReviewType AS review_type,
_periodParam.ReviewedByUser AS reviewed_by,
_periodParam.AmountReviewDate AS reviewed_on,
_periodParam.AmountReviewTime AS reviewed_at,
_periodParam.AccrualAmountIsApproved AS xapproved,
_periodParam.ApprovedByUser AS approved_by,
_periodParam.AccrualAmountApprovalDate AS approved_on,
_periodParam.AccrualAmountApprovalTime AS approved_at,
_periodParam.AccrualAmountProposedByUser AS PERIOD_AMNT_CHANGED_BY,
_periodParam.AccrualAmountProposalDate AS PERIOD_AMNT_CHANGED_ON,
_periodParam.AccrualAmountProposalTime AS PERIOD_AMNT_CHANGED_AT,
_assgmt._ProfitCenter._Text[1: Language = $session.system_language].ProfitCenterName AS prctr_name,
_assgmt._FundsCenter._Text[1: Language = $session.system_language].FundsCenterName AS fistl_name,
_assgmt._Fund._Text[1: Language = $session.system_language].FundName AS geber_name,
_assgmt._FunctionalArea._Text[1: Language = $session.system_language].FunctionalAreaName AS fkber_name,
_assgmt.FinancialManagementArea AS fikrs,
_assgmt.ControllingArea AS kokrs,
_assgmt._InternalOrder.OrderDescription AS aufnr_name,
cast(case when _assgmt.WBSElement is null then '' else _assgmt.WBSElement end as ps_psp_pnr) as ps_psp_pnr AS WBSElementendasps_psp_pnrasps_psp_pnr,
cast(case when _assgmt._WBSElement.WBSElement is null then '' else _assgmt._WBSElement.WBSElement end as rcpe_ps_posnr) as posid AS WBSElementendasrcpe_ps_posnrasposid,
_assgmt._ActivityType._Text[1: Language = $session.system_language].CostCtrActivityTypeName AS lstar_name,
cast(case when _assgmt.SalesOrderItem is null then '' else _assgmt.SalesOrderItem end as kdpos) as kdpos AS SalesOrderItemendaskdposaskdpos,
cast(case when _assgmt._WBSElement.ProjectInternalID is null then '' else _assgmt._WBSElement.ProjectInternalID end as ps_psphi) as psphi AS ProjectInternalIDendasps_psphiaspsphi,
cast(case when _assgmt._WBSElement.Project is null then '' else _assgmt._WBSElement.Project end as ps_pspid) as PSPID AS Projectendasps_pspidasPSPID
FROM P_ACCRUALOBJECTPERIOD_ALL
LEFT OUTER JOIN I_PeriodAccrual AS _periodParam ON comp = _periodParam.AccrualEngineApplication AND logsys = _periodParam.AccrualObjectLogicalSystem AND bukrs = _periodParam.CompanyCode AND ref_key = _periodParam.AccrualObject AND ref_subkey = _periodParam.AccrualSubobject AND itemtype = _periodParam.AccrualItemType AND rldnr = _periodParam.Ledger AND period_end_date = _periodParam.AccrualPeriodEndDate -- association [0..1]
LEFT OUTER JOIN I_AccrualSubObjItem AS _item ON comp = _item.AccrualObjectType AND logsys = _item.AccrualObjectLogicalSystem AND bukrs = _item.CompanyCode AND ref_key = _item.AccrualObject AND ref_subkey = _item.AccrualSubobject AND itemtype = _item.AccrualItemType AND rldnr = _item.Ledger AND period_end_date >= _item.AccrSubobjectItmValdtyStrtDte AND period_end_date <= _item.AccrSubobjectItmValdtyEndDte -- association [1..1]
LEFT OUTER JOIN I_ManualAccrualObject AS _manual ON bukrs = _manual.CompanyCode AND ref_key = _manual.AccrualObject AND ref_subkey = _manual.AccrualSubobject -- association [1..1]
LEFT OUTER JOIN I_AccrSubObjItemPostedAmt AS _posted ON comp = _posted.AccrualEngineApplication AND logsys = _posted.AccrualObjectLogicalSystem AND bukrs = _posted.CompanyCode AND ref_key = _posted.AccrualObject AND ref_subkey = _posted.AccrualSubobject AND itemtype = _posted.AccrualItemType AND rldnr = _posted.Ledger AND period_end_date = _posted.AccrualPeriodEndDate -- association [0..1]
LEFT OUTER JOIN I_AccrualObjectAcctAssgmt AS _assgmt ON comp = _assgmt.AccrualEngineApplication AND logsys = _assgmt.AccrualObjectLogicalSystem AND bukrs = _assgmt.CompanyCode AND ref_key = _assgmt.AccrualObject AND ref_subkey = _assgmt.AccrualSubobject AND period_end_date >= _assgmt.AccrAcctAssgmtValdtyStrtDte AND period_end_date <= _assgmt.AccrAcctAssgmtValdtyEndDte -- association [0..1]
LEFT OUTER JOIN I_AccrItemTypeForLedgerGroup AS _itemtypel ON comp = _itemtypel.AccrualEngineApplication AND bukrs = _itemtypel.CompanyCode AND itemtype = _itemtypel.AccrualItemType AND rldnr = _itemtypel.Ledger -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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