FINOC_CHECK_REC_02_REC_TO_ALL

DDL: FINOC_CHECK_REC_02_REC_TO_ALL Type: view_entity

Org. Change: From RE Contract to All

FINOC_CHECK_REC_02_REC_TO_ALL is a CDS View that provides data about "Org. Change: From RE Contract to All" in SAP S/4HANA. It reads from 6 data sources and exposes 16 fields with key fields orgl_change, intreno.

Data Sources (6)

SourceAliasJoin Type
finoc_orglchg oc from
FINOC_CHECK_REC_01_REC_TO_ALL rec inner
finoc_rt_ccr rt_ccr left_outer
finoc_rt_ord rt_ord left_outer
finoc_rt_rec rt_rec inner
finoc_rt_wbs rt_wbs left_outer

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Org. Change: From RE Contract to All view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY orgl_change finoc_orglchg orgl_change Organizational Change
KEY intreno FINOC_CHECK_REC_01_REC_TO_ALL intreno Source Object
bukrs FINOC_CHECK_REC_01_REC_TO_ALL bukrs Value
recnnr FINOC_CHECK_REC_01_REC_TO_ALL recnnr Contract No.
ccr_val FINOC_CHECK_REC_01_REC_TO_ALL ccr_val
ccr_sbj FINOC_CHECK_REC_01_REC_TO_ALL ccr_sbj
ord_val FINOC_CHECK_REC_01_REC_TO_ALL ord_val
ord_sbj FINOC_CHECK_REC_01_REC_TO_ALL ord_sbj
wbs_val FINOC_CHECK_REC_01_REC_TO_ALL wbs_val
wbs_sbj FINOC_CHECK_REC_01_REC_TO_ALL wbs_sbj
prctrisinitialthenXelseendasccr_missing
prctrthenXelseendasccr_differs
prctrisinitialthenXelseendasord_missing
prctrthenXelseendasord_differs
prctrisinitialthenXelseendaswbs_missing
prctrthenXelseendaswbs_differs

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 FINOC_CHECK_REC_02_REC_TO_ALL.
-- 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 FINOC_CHECK_REC_02_REC_TO_ALL AS
SELECT
  oc.orgl_change AS orgl_change,
  rec.intreno AS intreno,
  rec.bukrs AS bukrs,
  rec.recnnr AS recnnr,
  rec.ccr_val AS ccr_val,
  rec.ccr_sbj AS ccr_sbj,
  rec.ord_val AS ord_val,
  rec.ord_sbj AS ord_sbj,
  rec.wbs_val AS wbs_val,
  rec.wbs_sbj AS wbs_sbj,
  case when ( rec.ccr_val = 'X' or rec.ccr_sbj = 'X' ) and ( rt_ccr.prctr is null or rt_ccr.prctr is initial ) then 'X' else ' ' end as ccr_missing AS prctrisinitialthenXelseendasccr_missing,
  case when ( rec.ccr_val = 'X' or rec.ccr_sbj = 'X' ) and ( rt_ccr.prctr <> rt_rec.prctr ) then 'X' else ' ' end as ccr_differs AS prctrthenXelseendasccr_differs,
  case when ( rec.ord_val = 'X' or rec.ord_sbj = 'X' ) and ( rt_ord.prctr is null or rt_ord.prctr is initial ) then 'X' else ' ' end as ord_missing AS prctrisinitialthenXelseendasord_missing,
  case when ( rec.ord_val = 'X' or rec.ord_sbj = 'X' ) and ( rt_ord.prctr <> rt_rec.prctr ) then 'X' else ' ' end as ord_differs AS prctrthenXelseendasord_differs,
  case when ( rec.wbs_val = 'X' or rec.wbs_sbj = 'X' ) and ( rt_wbs.prctr is null or rt_wbs.prctr is initial ) then 'X' else ' ' end as wbs_missing AS prctrisinitialthenXelseendaswbs_missing,
  case when ( rec.wbs_val = 'X' or rec.wbs_sbj = 'X' ) and ( rt_wbs.prctr <> rt_rec.prctr ) then 'X' else ' ' end as wbs_differs AS prctrthenXelseendaswbs_differs
FROM finoc_orglchg AS oc
INNER JOIN finoc_rt_rec AS rt_rec ON /* join condition not captured in parsed metadata */
INNER JOIN FINOC_CHECK_REC_01_REC_TO_ALL AS rec ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN finoc_rt_ccr AS rt_ccr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN finoc_rt_ord AS rt_ord ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN finoc_rt_wbs AS rt_wbs ON /* join condition not captured in parsed metadata */
;