ACMTST_VIEWENTITY_SO

DDL: ACMTST_VIEWENTITY_SO Type: view_entity

ACMTST: Sales Order - Type=VIEW_ENTITY

ACMTST_VIEWENTITY_SO is a CDS View that provides data about "ACMTST: Sales Order - Type=VIEW_ENTITY" in SAP S/4HANA. It reads from 1 data source (acmtst_db_so) and exposes 17 fields with key field uuid. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
acmtst_db_so acmtst_db_so from

Associations (6)

CardinalityTargetAliasCondition
[0..1] ACMTST_CDSV_BPA toCustomer $projection.customer_uuid = toCustomer.bp_uuid
[0..1] ACMTST_CDSV_EMPL toCreatedBy $projection.created_by = toCreatedBy.uuid
[0..1] ACMTST_CDSV_SO toSalesOrder $projection.uuid = toSalesOrder.uuid
[0..1] acmtst_db_so toSalesOrderDB $projection.uuid = toSalesOrderDB.uuid
[0..*] ACMTST_CDSV_SOI toSalesOrderItems $projection.so_id = toSalesOrderItems.so_id
[0..*] ACMTST_VIEWENTITY_SOI toSalesOrderItemsV2 $projection.so_id = toSalesOrderItemsV2.so_id

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label ACMTST: Sales Order - Type=VIEW_ENTITY view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY uuid uuid Waste Partner UUID
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
friday__enum
so_id__drty Sales Order ID
gross_amount gross_amount Tax-Inclusive Amount
net_amount net_amount Tax-Exclusive Amount
tax_amount tax_amount VAT Amount Type
toCustomer toCustomer
toCreatedBy toCreatedBy
toSalesOrder toSalesOrder
toSalesOrderDB toSalesOrderDB
toSalesOrderItems toSalesOrderItems
toSalesOrderItemsV2 toSalesOrderItemsV2

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 ACMTST_VIEWENTITY_SO.
-- 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 ACMTST_VIEWENTITY_SO AS
SELECT
  uuid,
  so_id,
  created_by,
  created_at,
  changed_by,
  changed_at,
  ACMTST_CDS_ENUM_WEEKDAY.#FRI AS friday__enum,
  cast( so_id as ACMTST_DRTY_SO_ID preserving type ) AS so_id__drty,
  gross_amount,
  net_amount,
  tax_amount,
  toCustomer,
  toCreatedBy,
  toSalesOrder,
  toSalesOrderDB,
  toSalesOrderItems,
  toSalesOrderItemsV2
FROM acmtst_db_so
LEFT OUTER JOIN ACMTST_CDSV_BPA AS toCustomer ON customer_uuid = toCustomer.bp_uuid  -- association [0..1]
LEFT OUTER JOIN ACMTST_CDSV_EMPL AS toCreatedBy ON created_by = toCreatedBy.uuid  -- association [0..1]
LEFT OUTER JOIN ACMTST_CDSV_SO AS toSalesOrder ON uuid = toSalesOrder.uuid  -- association [0..1]
LEFT OUTER JOIN acmtst_db_so AS toSalesOrderDB ON uuid = toSalesOrderDB.uuid  -- association [0..1]
LEFT OUTER JOIN ACMTST_CDSV_SOI AS toSalesOrderItems ON so_id = toSalesOrderItems.so_id  -- association [0..*]
LEFT OUTER JOIN ACMTST_VIEWENTITY_SOI AS toSalesOrderItemsV2 ON so_id = toSalesOrderItemsV2.so_id  -- association [0..*]
;