P_SavedSimulation

DDL: P_SAVEDSIMULATION SQL: PSAVEDSIM Type: view BASIC

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)

SourceAliasJoin Type
vch_simulation SavedSimulation from
vch_sim_draft SavedSimulationDraft left_outer

Annotations (6)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;