ACMTST_VIEWENTITY_SO
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)
| Source | Alias | Join Type |
|---|---|---|
| acmtst_db_so | acmtst_db_so | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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