P_SalesContractProcessFlow10

DDL: P_SALESCONTRACTPROCESSFLOW10 SQL: PSLSCONPROCFL10 Type: view COMPOSITE

Contract process flow level 1-0

P_SalesContractProcessFlow10 is a Composite CDS View that provides data about "Contract process flow level 1-0" in SAP S/4HANA. It reads from 2 data sources (I_SDDocumentProcessFlow, P_SalesContractProcessFlow0) and exposes 20 fields with key fields SalesContract, PrecedingDocument, PrecedingDocumentItem, PrecedingDocumentCategory, SubsequentDocument. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_SDDocumentProcessFlow _ProcessFlow inner
P_SalesContractProcessFlow0 P_SalesContractProcessFlow0 from

Parameters (1)

NameTypeDefault
P_SalesContract vbeln_von

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_Currency _StatisticsCurrency $projection.StatisticsCurrency = _StatisticsCurrency.Currency

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName PSLSCONPROCFL10 view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Contract process flow level 1-0 view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY SalesContract Level0 SalesContract Sales Document
KEY PrecedingDocument I_SDDocumentProcessFlow PrecedingDocument SD Document
KEY PrecedingDocumentItem I_SDDocumentProcessFlow PrecedingDocumentItem Item
KEY PrecedingDocumentCategory I_SDDocumentProcessFlow PrecedingDocumentCategory
KEY SubsequentDocument I_SDDocumentProcessFlow SubsequentDocument
KEY SubsequentDocumentItem I_SDDocumentProcessFlow SubsequentDocumentItem
KEY SubsequentDocumentCategory I_SDDocumentProcessFlow SubsequentDocumentCategory
QuantityInBaseUnit I_SDDocumentProcessFlow QuantityInBaseUnit Quantity
BaseUnit I_SDDocumentProcessFlow BaseUnit Unit of Measure
NetAmount I_SDDocumentProcessFlow NetAmount Stated Amount
StatisticsCurrency I_SDDocumentProcessFlow StatisticsCurrency Transaction Currency
SDProcessStatusDesc
FiscalYear
CompanyCode
MaterialDocumentYear
SDDocumentCategoryName
CreationDate I_SDDocumentProcessFlow CreationDate Time Stamp
CreationTime I_SDDocumentProcessFlow CreationTime Time of Change
_BaseUnit _BaseUnit
_StatisticsCurrency _StatisticsCurrency

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_SalesContractProcessFlow10.
-- 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: PSLSCONPROCFL10
-- Parameters: P_SalesContract : vbeln_von

CREATE VIEW P_SalesContractProcessFlow10 AS
SELECT
  Level0.SalesContract AS SalesContract,
  _ProcessFlow.PrecedingDocument AS PrecedingDocument,
  _ProcessFlow.PrecedingDocumentItem AS PrecedingDocumentItem,
  _ProcessFlow.PrecedingDocumentCategory AS PrecedingDocumentCategory,
  _ProcessFlow.SubsequentDocument AS SubsequentDocument,
  _ProcessFlow.SubsequentDocumentItem AS SubsequentDocumentItem,
  _ProcessFlow.SubsequentDocumentCategory AS SubsequentDocumentCategory,
  _ProcessFlow.QuantityInBaseUnit AS QuantityInBaseUnit,
  _ProcessFlow.BaseUnit AS BaseUnit,
  _ProcessFlow.NetAmount AS NetAmount,
  _ProcessFlow.StatisticsCurrency AS StatisticsCurrency,
  cast( '' as status_bez ) AS SDProcessStatusDesc,
  cast( '0000' as gjahr ) AS FiscalYear,
  cast( '' as bukrs ) AS CompanyCode,
  cast( '0000' as mjahr ) AS MaterialDocumentYear,
  _SDDocumentCategory._Text[1:Language=$session.system_language].SDDocumentCategoryName AS SDDocumentCategoryName,
  _ProcessFlow.CreationDate AS CreationDate,
  _ProcessFlow.CreationTime AS CreationTime
FROM P_SalesContractProcessFlow0
INNER JOIN I_SDDocumentProcessFlow AS _ProcessFlow ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _StatisticsCurrency ON StatisticsCurrency = _StatisticsCurrency.Currency  -- association [0..1]
;