P_ConflictedContrPendingDays

DDL: P_CONFLICTEDCONTRPENDINGDAYS SQL: PRACONPENDINGDTE Type: view COMPOSITE

P_ConflictedContrPendingDays is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_RevenueAccountingContract) and exposes 4 fields with key field RevenueAccountingContract. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_RevenueAccountingContract Contract from

Associations (2)

CardinalityTargetAliasCondition
[1..1] P_RAConflictedContrChangeDate _RAConflictedContrChangeDate $projection.RevenueAccountingContract = _RAConflictedContrChangeDate.RevenueAccountingContract
[0..1] I_UnitOfMeasure _UnitOfMeasure _UnitOfMeasure.UnitOfMeasure = $projection.DurationUnit

Annotations (7)

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

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY RevenueAccountingContract I_RevenueAccountingContract RevenueAccountingContract Revenue Contract
RAContrPendingDurationInDays
DurationUnit
_UnitOfMeasure _UnitOfMeasure

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_ConflictedContrPendingDays.
-- 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: PRACONPENDINGDTE

CREATE VIEW P_ConflictedContrPendingDays AS
SELECT
  Contract.RevenueAccountingContract AS RevenueAccountingContract,
  DATS_DAYS_BETWEEN(_RAConflictedContrChangeDate.CreationDate,_RAConflictedContrChangeDate.CurrentDate) AS RAContrPendingDurationInDays,
  cast( 'TAG' as farr_duration_unit ) AS DurationUnit
FROM I_RevenueAccountingContract AS Contract
LEFT OUTER JOIN P_RAConflictedContrChangeDate AS _RAConflictedContrChangeDate ON RevenueAccountingContract = _RAConflictedContrChangeDate.RevenueAccountingContract  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = DurationUnit  -- association [0..1]
;