P_SimulationsForSearch
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)
| Source | Alias | Join Type |
|---|---|---|
| P_ConfigurationCount | _ConfigurationCount | inner |
| P_Simulation | P_Simulation | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | P_Ibin | _CBase | $projection.ProductConfiguration = _CBase.instance |
| [1..1] | P_SimulationSearchSupport | _SearchSupport | _SearchSupport.ProductVariant = '' |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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