P_SalesContractProcessFlow0

DDL: P_SALESCONTRACTPROCESSFLOW0 SQL: PSLSCONTRPROCF0 Type: view COMPOSITE Package: ODATA_SD_CONTRACT

Contract process flow level 0

P_SalesContractProcessFlow0 is a Composite CDS View that provides data about "Contract process flow level 0" in SAP S/4HANA. It reads from 2 data sources (I_SalesContract, I_SalesContractItem) and exposes 17 fields with key fields SalesContract, SalesContractItem, SDDocumentCategory. It has 2 associations to related views. Part of development package ODATA_SD_CONTRACT.

Data Sources (2)

SourceAliasJoin Type
I_SalesContract _SalesContract inner
I_SalesContractItem SalesContractItem 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 PSLSCONTRPROCF0 view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Contract process flow level 0 view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY SalesContract I_SalesContractItem SalesContract Sales Document
KEY SalesContractItem I_SalesContractItem SalesContractItem Item
KEY SDDocumentCategory
QuantityInBaseUnit I_SalesContractItem TargetQuantity Target Quantity
BaseUnit I_SalesContractItem TargetQuantityUnit Target Qty UoM
NetAmount I_SalesContractItem NetAmount Stated Amount
StatisticsCurrency I_SalesContractItem TransactionCurrency Transaction Currency
SDProcessStatusDesc
FiscalYear
CompanyCode
MaterialDocumentYear
SemanticObject
SDDocumentCategoryName
CreationDate I_SalesContract CreationDate Time Stamp
CreationTime I_SalesContract 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_SalesContractProcessFlow0.
-- 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: PSLSCONTRPROCF0
-- Parameters: P_SalesContract : vbeln_von

CREATE VIEW P_SalesContractProcessFlow0 AS
SELECT
  SalesContractItem.SalesContract AS SalesContract,
  SalesContractItem.SalesContractItem AS SalesContractItem,
  cast( 'G' as vbtypl ) AS SDDocumentCategory,
  SalesContractItem.TargetQuantity AS QuantityInBaseUnit,
  SalesContractItem.TargetQuantityUnit AS BaseUnit,
  SalesContractItem.NetAmount AS NetAmount,
  SalesContractItem.TransactionCurrency 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,
  cast( 'SalesContract' as bpf_sem_obj ) AS SemanticObject,
  _SDDocumentCategory._Text[1:Language=$session.system_language].SDDocumentCategoryName AS SDDocumentCategoryName,
  _SalesContract.CreationDate AS CreationDate,
  _SalesContract.CreationTime AS CreationTime
FROM I_SalesContractItem AS SalesContractItem
INNER JOIN I_SalesContract AS _SalesContract 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]
;