P_SimulationsForSearch

DDL: P_SIMULATIONSFORSEARCH SQL: PSIMFORSEARCH Type: view CONSUMPTION

P_SimulationsForSearch is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_ConfigurationCount, P_Simulation) and exposes 30 fields with key fields Type, ConfigurationObject, ConfigurationObjectItem. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_ConfigurationCount _ConfigurationCount inner
P_Simulation P_Simulation from

Associations (2)

CardinalityTargetAliasCondition
[1..*] P_Ibin _CBase $projection.ProductConfiguration = _CBase.instance
[1..1] P_SimulationSearchSupport _SearchSupport _SearchSupport.ProductVariant = ''

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PSIMFORSEARCH view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY Type
KEY ConfigurationObject ConfigurationObject
KEY ConfigurationObjectItem ConfigurationObjectItem
Product Product Product Sold
Plant Plant Valuation Area
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
LastChangeDate P_Simulation LastChangeDate Time Stamp
LastChangeTime P_Simulation LastChangeTime Time changed
LastChangedByUser P_Simulation LastChangedByUser User Name
ProductConfiguration P_Simulation ProductConfiguration
cstatusendasConfigurationStatus
ConfigurationProfileNumber
VariantConfigurationSimlnDate VariantConfigurationSimlnDate
DraftUUID DraftUUID UUID
HasActiveEntity HasActiveEntity TRUE
ClassType
SalesDocument _SearchSupport SalesDocument SD Document
SalesDocumentItem _SearchSupport SalesDocumentItem Sales Document Item
ProductVariant _SearchSupport ProductVariant Material
VariantConfigurationSimlnName P_Simulation VariantConfigurationSimlnName Simulation Name
PurchasingDocument _SearchSupport PurchasingDocument Purchasing Document
PurchasingDocumentItem _SearchSupport PurchasingDocumentItem Purchasing Doc. Item
PurchaseRequisition _SearchSupport PurchaseRequisition Requisition
PurchaseRequisitionItem _SearchSupport PurchaseRequisitionItem Requisn. item
ConfigurationObjTypeForSorting
TemplateConfiguredObjectType TemplateConfiguredObjectType Owner Type
TemplateConfiguredObject TemplateConfiguredObject Simulation Environment: Simulation Configuration Object
TemplateConfiguredObjectItem TemplateConfiguredObjectItem Object Item
VarConfignSimlnExternalID P_Simulation VarConfignSimlnExternalID 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_SimulationsForSearch.
-- 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: PSIMFORSEARCH

CREATE VIEW P_SimulationsForSearch AS
SELECT
  #vchclf_leading_object.'SSIM' AS Type,
  ConfigurationObject,
  ConfigurationObjectItem,
  Product,
  Plant,
  CreatedByUser,
  CreationDate,
  P_Simulation.LastChangeDate AS LastChangeDate,
  P_Simulation.LastChangeTime AS LastChangeTime,
  P_Simulation.LastChangedByUser AS LastChangedByUser,
  P_Simulation.ProductConfiguration AS ProductConfiguration,
  case when ConfigurationStatus != '' then ConfigurationStatus else coalesce(_CBase.cstatus, '') end as ConfigurationStatus AS cstatusendasConfigurationStatus,
  cast('0000' as cucozhl) AS ConfigurationProfileNumber,
  VariantConfigurationSimlnDate,
  DraftUUID,
  HasActiveEntity,
  cast('' as klassenart) AS ClassType,
  _SearchSupport.SalesDocument AS SalesDocument,
  _SearchSupport.SalesDocumentItem AS SalesDocumentItem,
  _SearchSupport.ProductVariant AS ProductVariant,
  P_Simulation.VariantConfigurationSimlnName AS VariantConfigurationSimlnName,
  _SearchSupport.PurchasingDocument AS PurchasingDocument,
  _SearchSupport.PurchasingDocumentItem AS PurchasingDocumentItem,
  _SearchSupport.PurchaseRequisition AS PurchaseRequisition,
  _SearchSupport.PurchaseRequisitionItem AS PurchaseRequisitionItem,
  #VCHCLF_SIM_CONF_OBJ_TYPE_SORT.7 AS ConfigurationObjTypeForSorting,
  TemplateConfiguredObjectType,
  TemplateConfiguredObject,
  TemplateConfiguredObjectItem,
  P_Simulation.VarConfignSimlnExternalID AS VarConfignSimlnExternalID
FROM P_Simulation
INNER JOIN P_ConfigurationCount AS _ConfigurationCount ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_Ibin AS _CBase ON ProductConfiguration = _CBase.instance  -- association [1..*]
LEFT OUTER JOIN P_SimulationSearchSupport AS _SearchSupport ON _SearchSupport.ProductVariant = ''  -- association [1..1]
;