P_SavedSimulation
P_SavedSimulation is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (vch_simulation, vch_sim_draft) and exposes 21 fields with key field ConfigurationObject.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| vch_simulation | SavedSimulation | from |
| vch_sim_draft | SavedSimulationDraft | left_outer |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSAVEDSIM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConfigurationObject | |||
| CreatedByUser | vch_simulation | created_by | Version Created By | |
| CreationDate | vch_simulation | created_on | Variant created on | |
| CreationTime | vch_simulation | created_on_time | Creation Time | |
| LastChangedByUser | vch_simulation | changed_by | User Name | |
| lastchangedateendasLastChangeDate | ||||
| lastchangetimeendasLastChangeTime | ||||
| Product | vch_simulation | product | Product Sold | |
| Plant | vch_simulation | plant | Valuation Area | |
| ProductConfiguration | vch_simulation | cuobj | Object Number | |
| ConfigurationObjectItem | ||||
| VariantConfigurationSimlnName | vch_simulation | name | Zone name | |
| ConfigurationProfileNumber | vch_simulation | configurationprofilecounter | Int. counter | |
| VariantConfigurationSimlnDate | vch_simulation | simulation_date | Date | |
| DraftUUID | vch_sim_draft | draftuuid | UUID | |
| TemplateConfiguredObject | template_obj_id | Simulation Environment: Simulation Configuration Object | ||
| TemplateConfiguredObjectItem | template_obj_item_id | Object Item | ||
| TemplateConfiguredObjectType | template_obj_type | Owner Type | ||
| BOMExplosionApplication | application | UI Application | ||
| ConfigurationStatus | vch_sim_draft | configurationstatus | Status | |
| VarConfignSimlnExternalID | simulation_external_id | Sim External Id |
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 P_SavedSimulation.
-- 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: PSAVEDSIM
CREATE VIEW P_SavedSimulation AS
SELECT
cast( SavedSimulation.id as vchclf_sim_conf_object ) AS ConfigurationObject,
SavedSimulation.created_by AS CreatedByUser,
SavedSimulation.created_on AS CreationDate,
SavedSimulation.created_on_time AS CreationTime,
SavedSimulation.changed_by AS LastChangedByUser,
case when SavedSimulationDraft.lastchangedate is null then SavedSimulation.changed_on else SavedSimulationDraft.lastchangedate end as LastChangeDate AS lastchangedateendasLastChangeDate,
case when SavedSimulationDraft.lastchangetime is null then SavedSimulation.changed_on_time else SavedSimulationDraft.lastchangetime end as LastChangeTime AS lastchangetimeendasLastChangeTime,
SavedSimulation.product AS Product,
SavedSimulation.plant AS Plant,
SavedSimulation.cuobj AS ProductConfiguration,
cast( '' as vchclf_sim_conf_object_item ) AS ConfigurationObjectItem,
SavedSimulation.name AS VariantConfigurationSimlnName,
SavedSimulation.configurationprofilecounter AS ConfigurationProfileNumber,
SavedSimulation.simulation_date AS VariantConfigurationSimlnDate,
SavedSimulationDraft.draftuuid AS DraftUUID,
template_obj_id AS TemplateConfiguredObject,
template_obj_item_id AS TemplateConfiguredObjectItem,
template_obj_type AS TemplateConfiguredObjectType,
application AS BOMExplosionApplication,
SavedSimulationDraft.configurationstatus AS ConfigurationStatus,
simulation_external_id AS VarConfignSimlnExternalID
FROM vch_simulation AS SavedSimulation
LEFT OUTER JOIN vch_sim_draft AS SavedSimulationDraft ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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