P_VCH_SIM_DRAFTADMINDATA

DDL: P_VCH_SIM_DRAFTADMINDATA SQL: PVCHSIMDRFTADMIN Type: view BASIC

P_VCH_SIM_DRAFTADMINDATA is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (sdraft_admin, vch_sim_draft) and exposes 8 fields with key fields DraftUUID, Id. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
sdraft_admin DraftAdminData inner
vch_sim_draft SimulationDraft from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_User _LastChangedByUserDesc $projection.LastChangedByUser = _LastChangedByUserDesc.UserID
[1..1] I_User _CreatedByUserDesc $projection.CreatedByUser = _CreatedByUserDesc.UserID
[1..1] I_User _InProcessByUserDesc $projection.InProcessByUser = _InProcessByUserDesc.UserID

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PVCHSIMDRFTADMIN view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.private true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY DraftUUID vch_sim_draft draftuuid UUID
KEY Id vch_sim_draft simulationuuid UUID
VariantConfigurationSimlnName vch_sim_draft name Zone name
CreationDateTime sdraft_admin created_at Uploaded On
CreatedByUser sdraft_admin created_by Version Created By
LastChangeDateTime sdraft_admin last_changed_at Timestamp
LastChangedByUser sdraft_admin last_changed_by Username
InProcessByUser sdraft_admin in_process_by Draft In Process By

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_VCH_SIM_DRAFTADMINDATA.
-- 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: PVCHSIMDRFTADMIN

CREATE VIEW P_VCH_SIM_DRAFTADMINDATA AS
SELECT
  SimulationDraft.draftuuid AS DraftUUID,
  SimulationDraft.simulationuuid AS Id,
  SimulationDraft.name AS VariantConfigurationSimlnName,
  DraftAdminData.created_at AS CreationDateTime,
  DraftAdminData.created_by AS CreatedByUser,
  DraftAdminData.last_changed_at AS LastChangeDateTime,
  DraftAdminData.last_changed_by AS LastChangedByUser,
  DraftAdminData.in_process_by AS InProcessByUser
FROM vch_sim_draft AS SimulationDraft
INNER JOIN sdraft_admin AS DraftAdminData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_User AS _LastChangedByUserDesc ON LastChangedByUser = _LastChangedByUserDesc.UserID  -- association [1..1]
LEFT OUTER JOIN I_User AS _CreatedByUserDesc ON CreatedByUser = _CreatedByUserDesc.UserID  -- association [1..1]
LEFT OUTER JOIN I_User AS _InProcessByUserDesc ON InProcessByUser = _InProcessByUserDesc.UserID  -- association [1..1]
;