Test_Cds_Astcheck_24

DDL: TEST_CDS_ASTCHECK_24 SQL: testcdsac24 Type: view Package: SDUT_DDLS

VIEW on SNWD_BPA

Test_Cds_Astcheck_24 is a CDS View that provides data about "VIEW on SNWD_BPA" in SAP S/4HANA. It reads from 1 data source (snwd_so) and exposes 19 fields with key fields node_key, so_id. It has 7 associations to related views. Part of development package SDUT_DDLS.

Data Sources (1)

SourceAliasJoin Type
snwd_so snwd_so from

Associations (7)

CardinalityTargetAliasCondition
[*] qlast_sddl_bpa buyer buyer_guid = buyer.node_key
[2] qlast_sddl_texts note note_guid = note.parent_key
[0..*] qlast_sddl_bpa created_by_partner snwd_so.created_by = created_by_partner.node_key and created_by_bp = 'X'
[0..2] qlast_sddl_bpa changed_by_partner snwd_so.changed_by = changed_by_partner.node_key and changed_by_bp = 'X'
[0..1] qlast_sddl_employee created snwd_so.created_by = created.node_key and created_by_bp = ' '
[0..1] qlast_sddl_employee changed snwd_so.changed_by = changed.node_key and changed_by_bp = ' '
[2] tcurc currency currency_code = waers

Annotations (1)

NameValueLevelField
AbapCatalog.sqlViewName testcdsac24 view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY node_key node_key Tree Model: Node Key
KEY so_id so_id Sales Order ID
created_by created_by Version Created By
created_at created_at Uploaded On
changed_by changed_by User Name
changed_at changed_at Timestamp
note_guid note_guid Node Key
buyer_guid buyer_guid Node Key
gross_amount gross_amount Tax-Inclusive Amount
net_amount net_amount Tax-Exclusive Amount
tax_amount tax_amount VAT Amount Type
op_id op_id Opportunity ID
_dataaging _dataaging Data Aging
dummy dummy Single-Character Flag
buyer buyer Real Buyer Source
created created UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
changed changed Time Stamp
note note TradeRequest Comment
currency currency Valuation Crcy

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 Test_Cds_Astcheck_24.
-- 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: testcdsac24

CREATE VIEW Test_Cds_Astcheck_24 AS
SELECT
  node_key,
  so_id,
  created_by,
  created_at,
  changed_by,
  changed_at,
  note_guid,
  buyer_guid,
  gross_amount,
  net_amount,
  tax_amount,
  op_id,
  dummy,
  buyer,
  created,
  changed,
  note,
  currency
FROM snwd_so
LEFT OUTER JOIN qlast_sddl_bpa AS buyer ON buyer_guid = buyer.node_key  -- association [*]
LEFT OUTER JOIN qlast_sddl_texts AS note ON note_guid = note.parent_key  -- association [2]
LEFT OUTER JOIN qlast_sddl_bpa AS created_by_partner ON snwd_so.created_by = created_by_partner.node_key AND created_by_bp = 'X'  -- association [0..*]
LEFT OUTER JOIN qlast_sddl_bpa AS changed_by_partner ON snwd_so.changed_by = changed_by_partner.node_key AND changed_by_bp = 'X'  -- association [0..2]
LEFT OUTER JOIN qlast_sddl_employee AS created ON snwd_so.created_by = created.node_key AND created_by_bp = ' '  -- association [0..1]
LEFT OUTER JOIN qlast_sddl_employee AS changed ON snwd_so.changed_by = changed.node_key AND changed_by_bp = ' '  -- association [0..1]
LEFT OUTER JOIN tcurc AS currency ON currency_code = waers  -- association [2]
;