FARR_POSTING

DDL: FARR_POSTING Type: view_entity

RA Posting Union FARR_D_POSTING-ACDOCA

FARR_POSTING is a CDS View that provides data about "RA Posting Union FARR_D_POSTING-ACDOCA" in SAP S/4HANA. It reads from 2 data sources (farr_d_posting, FARR_JournalEntryItem) and exposes 92 fields with key fields company_code, recon_key, pob_id, post_cat, shkzg. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
farr_d_posting _posting from
FARR_JournalEntryItem FARR_JournalEntryItem union_all

Associations (2)

CardinalityTargetAliasCondition
[1..1] farr_d_recon_key _reconkey _reconkey.company_code = _posting.company_code and _reconkey.acct_principle = _posting.acct_principle and _reconkey.contract_id = _posting.contract_id and _reconkey.recon_key = _posting.recon_key
[0..1] I_WBSElementBasicData _WBSElement $projection.ps_psp_pnr = _WBSElement.WBSElementInternalID

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label RA Posting Union FARR_D_POSTING-ACDOCA view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (92)

KeyFieldSource TableSource FieldDescription
KEY company_code farr_d_posting company_code Company Code
KEY recon_key farr_d_posting recon_key Reconcil. Key
KEY pob_id farr_d_posting pob_id POB
KEY post_cat post_cat Update to FI
KEY shkzg shkzg Returns
KEY guid farr_d_posting guid UUID 22 char.
gjahr farr_d_posting gjahr Settlement Year
poper farr_d_posting poper Posting periods
betrw betrw Reduction Amt
waers waers Transaction Currency
betrh betrh Local Crcy Amt
hwaer hwaer Local Currency
betr2 betr2 Second Local Crcy
hwae2 hwae2 Local curr. 2
betr3 betr3 Third Local Crcy
hwae3 hwae3 Local curr. 3
contract_id farr_d_posting contract_id Contract ID
hkont hkont Transfer acct
statistic statistic Statistical
shkzg_va shkzg_va Returns
srcdoc_comp srcdoc_comp Source Comp.
srcdoc_type srcdoc_type SrcItemType
srcdoc_id srcdoc_id Src. Item ID
valobjtype valobjtype Type of Fin.Val.Obj.
valobj_id valobj_id Fin Valuation Object
fkber fkber Functional Area
gsber gsber Business Area
segment segment Segment number
prctr prctr Profit Centers
paobjnr paobjnr Profit. segment
kostl kostl Substitute CC
aufnr aufnr SettlementOrder
kdauf kdauf SD Document
kdpos kdpos Sales Ord. Item
ps_posid _WBSElement WBSElementExternalID WBS Element
ps_psp_pnr ps_psp_pnr WBS Element
status _reconkey status Workflow Status
awtyp Reference Document Type
awsys Logical System
aworg Refer. Org.Unit
awref Reference Doc.
belnr
bstat Document Status
mig_source Migr. Source
KEY ACCT_PRINCIPLE ACCT_PRINCIPLE Accounting Principle
KEY RECON_KEY RECON_KEY Reconcil. Key
KEY POB_ID POB_ID POB
KEY CONDITION_TYPE CONDITION_TYPE RAI Condition Type
KEY POST_CAT POST_CAT Update to FI
KEY SHKZG SHKZG Returns
KEY guid guid UUID 22 char.
Gjahr Gjahr Settlement Year
poper poper Posting periods
BETRW BETRW Reduction Amt
WAERS WAERS Transaction Currency
BETRH BETRH Local Crcy Amt
HWAER HWAER Local Currency
BETR2 BETR2 Second Local Crcy
HWAE2 HWAE2 Local curr. 2
BETR3 BETR3 Third Local Crcy
HWAE3 HWAE3 Local curr. 3
CONTRACT_ID CONTRACT_ID Contract ID
HKONT HKONT Transfer acct
STATISTIC STATISTIC Statistical
SHKZG_VA SHKZG_VA Returns
SPEC_INDICATOR SPEC_INDICATOR Special Indicator
SRCDOC_COMP SRCDOC_COMP Source Comp.
SRCDOC_LOGSYS SRCDOC_LOGSYS Source System
SRCDOC_TYPE SRCDOC_TYPE SrcItemType
SRCDOC_ID SRCDOC_ID Src. Item ID
ValobjType ValobjType Type of Fin.Val.Obj.
Valobj_Id Valobj_Id Fin Valuation Object
FKBER FKBER Functional Area
GSBER GSBER Business Area
segment segment Segment number
prctr prctr Profit Centers
paobjnr paobjnr Profit. segment
KOSTL KOSTL Substitute CC
aufnr aufnr SettlementOrder
kdauf kdauf SD Document
kdpos kdpos Sales Ord. Item
ps_posid ps_posid WBS Element
ps_psp_pnr ps_psp_pnr WBS Element
Status Status Workflow Status
awtyp awtyp Reference Document Type
awsys awsys Logical System
aworg aworg Refer. Org.Unit
awref awref Reference Doc.
Belnr Belnr SD Document
bstat bstat Document Status
mig_source mig_source Migr. Source
timestamp timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)

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 FARR_POSTING.
-- 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 FARR_POSTING AS
SELECT
  _posting.company_code AS company_code,
  _posting.recon_key AS recon_key,
  _posting.pob_id AS pob_id,
  post_cat,
  shkzg,
  _posting.guid AS guid,
  _posting.gjahr AS gjahr,
  _posting.poper AS poper,
  betrw,
  waers,
  betrh,
  hwaer,
  betr2,
  hwae2,
  betr3,
  hwae3,
  _posting.contract_id AS contract_id,
  hkont,
  statistic,
  shkzg_va,
  srcdoc_comp,
  srcdoc_type,
  srcdoc_id,
  valobjtype,
  valobj_id,
  fkber,
  gsber,
  segment,
  prctr,
  paobjnr,
  kostl,
  aufnr,
  kdauf,
  kdpos,
  _WBSElement.WBSElementExternalID AS ps_posid,
  ps_psp_pnr,
  _reconkey.status AS status,
  cast(' ' as awtyp preserving type) AS awtyp,
  cast(' ' as awsys preserving type) AS awsys,
  cast(' ' as aworg preserving type) AS aworg,
  cast(' ' as awref preserving type) AS awref,
  cast(' ' as fis_belnr preserving type) AS belnr,
  cast(' ' as fis_bstat preserving type) AS bstat,
  cast(' ' as fis_acdoc_mig_source preserving type) AS mig_source,
  ACCT_PRINCIPLE,
  CONDITION_TYPE,
  SPEC_INDICATOR,
  SRCDOC_LOGSYS,
  timestamp
FROM farr_d_posting AS _posting
LEFT OUTER JOIN farr_d_recon_key AS _reconkey ON _reconkey.company_code = _posting.company_code AND _reconkey.acct_principle = _posting.acct_principle AND _reconkey.contract_id = _posting.contract_id AND _reconkey.recon_key = _posting.recon_key  -- association [1..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON ps_psp_pnr = _WBSElement.WBSElementInternalID  -- association [0..1]
-- UNION ALL with additional select branch(es): FARR_JournalEntryItem
;