C_InvtryTurnoverPrfrdSupplier

DDL: C_INVTRYTURNOVERPRFRDSUPPLIER SQL: CINVTOPRFSUPLR Type: view CONSUMPTION

Inventory Turnover Preferred Supplier

C_InvtryTurnoverPrfrdSupplier is a Consumption CDS View that provides data about "Inventory Turnover Preferred Supplier" in SAP S/4HANA. It reads from 1 data source (P_InvtryTurnoverPrfrdSupplier) and exposes 14 fields with key field Plant. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_InvtryTurnoverPrfrdSupplier P_InvtryTurnoverPrfrdSupplier from

Parameters (1)

NameTypeDefault
P_StartDate bedat

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_MaterialPlant _MaterialPlant $projection.Plant = _MaterialPlant.Plant and $projection.Material = _MaterialPlant.Material
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[1..1] I_SupplierCompanyByPlant _SupplierCompanyByPlant $projection.Supplier = _SupplierCompanyByPlant.Supplier and $projection.Plant = _SupplierCompanyByPlant.Plant
[0..1] I_UnitOfMeasure _BaseUnit $projection.MaterialBaseUnit = _BaseUnit.UnitOfMeasure

Annotations (12)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CINVTOPRFSUPLR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Inventory Turnover Preferred Supplier view
VDM.private false view
VDM.viewType #CONSUMPTION view

Fields (14)

KeyFieldSource TableSource FieldDescription
resultElementDateFunctionStartDate
UnitOfMeasurekeyMaterial
KEY Plant Plant Valuation Area
Supplier Supplier Supplier
PurchasingOrganization PurchasingOrganization Purchasing Organization
SupplierName _Supplier SupplierName Supplier Name
AuthorizationGroup _Supplier AuthorizationGroup AuthorizGroup
CityName
CountryName
TimeVarianceInPct
MaterialBaseUnit
_Supplier _Supplier
_BaseUnit _BaseUnit
_SupplierCompanyByPlant _SupplierCompanyByPlant

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 C_InvtryTurnoverPrfrdSupplier.
-- 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: CINVTOPRFSUPLR
-- Parameters: P_StartDate : bedat

CREATE VIEW C_InvtryTurnoverPrfrdSupplier AS
SELECT
  resultElement: 'DateFunctionStartDate' AS resultElementDateFunctionStartDate,
  binding: [ { targetParameter: 'P_DateFunction', type: #CONSTANT, value : 'PREVIOUS365DAYS' AS UnitOfMeasurekeyMaterial,
  Plant,
  Supplier,
  PurchasingOrganization,
  _Supplier.SupplierName AS SupplierName,
  _Supplier.AuthorizationGroup AS AuthorizationGroup,
  _Supplier._StandardAddress.CityName AS CityName,
  _Supplier._StandardAddress._Country._Text[1: Language=$session.system_language].CountryName AS CountryName,
  cast(DIVISION(ceil(_InvtryTurnoverSuplrTimeVarc( P_StartDate : $parameters.P_StartDate, P_EndDate : $session.system_date ).TimeVarianceInPct * 1000.0-0.5),1000,3) as invtryto_time_variance) AS TimeVarianceInPct,
  _MaterialPlant._Material.MaterialBaseUnit AS MaterialBaseUnit
FROM P_InvtryTurnoverPrfrdSupplier
LEFT OUTER JOIN I_MaterialPlant AS _MaterialPlant ON Plant = _MaterialPlant.Plant AND Material = _MaterialPlant.Material  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_SupplierCompanyByPlant AS _SupplierCompanyByPlant ON Supplier = _SupplierCompanyByPlant.Supplier AND Plant = _SupplierCompanyByPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON MaterialBaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
;