C_PurgInfoRecdCndnScalesUpdt

DDL: C_PURGINFORECDCNDNSCALESUPDT SQL: CPIRSCALESUPDT Type: view CONSUMPTION Package: ODATA_MM_PUR_INFRECMASS_UPDATE

Mass Changes to PIR Pricing Conditions Scales

C_PurgInfoRecdCndnScalesUpdt is a Consumption CDS View that provides data about "Mass Changes to PIR Pricing Conditions Scales" in SAP S/4HANA. It reads from 1 data source (P_PurgInfoRecdCndScalesMassUpd) and exposes 33 fields with key fields ConditionRecord, ConditionSequentialNumberShort, ConditionScaleLine. It has 6 associations to related views. Part of development package ODATA_MM_PUR_INFRECMASS_UPDATE.

Data Sources (1)

SourceAliasJoin Type
P_PurgInfoRecdCndScalesMassUpd P_PurgInfoRecdCndScalesMassUpd from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_PurgInfoRecordCategory _PurgInfoRecordCategory $projection.PurchasingInfoRecordCategory = _PurgInfoRecordCategory.PurchasingInfoRecordCategory
[0..1] I_PricingScaleBasisText _ScaleBasisText _ScaleBasisText.PricingScaleBasis = $projection.PricingScaleBasisShort and _ScaleBasisText.Language = $session.system_language
[0..1] I_PricingScaleTypeText _ScaleType _ScaleType.Language = $session.system_language and _ScaleType.PricingScaleType = $projection.PricingScaleType
[0..1] P_PurgInfoRecdCndCheckRuleType _CndnCheckRuleType _CndnCheckRuleType.ConditionType = $projection.ConditionType
[1..1] P_InfoRecdMassUpdtMatlGrp _InfoRecdMassUpdtMatlGrp _InfoRecdMassUpdtMatlGrp.PurchasingInfoRecord = $projection.PurchasingInfoRecord
[1..1 ] I_PricingConditionRecord _PricingConditionRecord $projection.ConditionRecord = _PricingConditionRecord.ConditionRecord and $projection.ConditionSequentialNumberShort = _PricingConditionRecord.ConditionSequentialNumber

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CPIRSCALESUPDT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Mass Changes to PIR Pricing Conditions Scales view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.updateEnabled true view
ObjectModel.createEnabled true view
VDM.lifecycle.contract.type #NONE view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY ConditionRecord ConditionRecord Condition Group ID
KEY ConditionSequentialNumberShort ConditionSequentialNumberShort Sequent. No. of Cond
KEY ConditionScaleLine ConditionScaleLine Line number
PurchasingInfoRecord PurchasingInfoRecord Info Record
Supplier Supplier Supplier
Material Material Vehicle Model
MaterialGroup _InfoRecdMassUpdtMatlGrp MaterialGroup Product Group
Plant Plant Valuation Area
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingInfoRecordCategory PurchasingInfoRecordCategory Info Record Category
PurchasingInfoRecordTitle Info Record Category Description
ConditionType ConditionType Condition type
ConditionValidityStartDate ConditionValidityStartDate Valid From
ConditionValidityEndDate ConditionValidityEndDate Valid To
PricingScaleBasisShort PricingScaleBasisShort Scale Base Type
PricingScaleBasisName _ScaleBasisText PricingScaleBasisName
PricingScaleCheckingRule _CndnCheckRuleType PricingScaleCheckingRule Check Scale Type
PricingScaleCheckingRuleName _CndnCheckRuleType PricingScaleCheckingRuleName Check Scale Type Description
PricingScaleType PricingScaleType Scale Type
PricingScaleTypeName _ScaleType PricingScaleTypeName Scale Type Description
ConditionScaleQuantity ConditionScaleQuantity Scale Quantity
ConditionScaleQuantityUnit ConditionScaleQuantityUnit Scale UoM
ConditionScaleAmount ConditionScaleAmount Scale Value
ConditionScaleAmountCurrency ConditionScaleAmountCurrency Scale Currency
ConditionRateValue ConditionRateValue Condition Value
ConditionRateValueUnit ConditionRateValueUnit Condition Value Unit
ConditionCurrency ConditionCurrency Currency
ConditionQuantity _PricingConditionRecord ConditionQuantity Price Unit Quantity
ConditionQuantityUnit _PricingConditionRecord ConditionQuantityUnit Price Unit UOM
ConditionScaleIsDeleted
PurgInfoRecdCndnScaleIsCreated Is New
_PurgPrcgConditionRecord _PurgPrcgConditionRecord
_PurgPrcgCndnRecdSuplmnt _PurgPrcgCndnRecdSuplmnt

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_PurgInfoRecdCndnScalesUpdt.
-- 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: CPIRSCALESUPDT

CREATE VIEW C_PurgInfoRecdCndnScalesUpdt AS
SELECT
  ConditionRecord,
  ConditionSequentialNumberShort,
  ConditionScaleLine,
  PurchasingInfoRecord,
  Supplier,
  Material,
  _InfoRecdMassUpdtMatlGrp.MaterialGroup AS MaterialGroup,
  Plant,
  PurchasingOrganization,
  PurchasingInfoRecordCategory,
  _PurgInfoRecordCategory._Text[1: Language = $session.system_language].PurchasingInfoRecordTitle AS PurchasingInfoRecordTitle,
  ConditionType,
  ConditionValidityStartDate,
  ConditionValidityEndDate,
  PricingScaleBasisShort,
  _ScaleBasisText.PricingScaleBasisName AS PricingScaleBasisName,
  _CndnCheckRuleType.PricingScaleCheckingRule AS PricingScaleCheckingRule,
  _CndnCheckRuleType.PricingScaleCheckingRuleName AS PricingScaleCheckingRuleName,
  PricingScaleType,
  _ScaleType.PricingScaleTypeName AS PricingScaleTypeName,
  ConditionScaleQuantity,
  ConditionScaleQuantityUnit,
  ConditionScaleAmount,
  ConditionScaleAmountCurrency,
  ConditionRateValue,
  ConditionRateValueUnit,
  ConditionCurrency,
  _PricingConditionRecord.ConditionQuantity AS ConditionQuantity,
  _PricingConditionRecord.ConditionQuantityUnit AS ConditionQuantityUnit,
  cast( '' as loevm_ko ) AS ConditionScaleIsDeleted,
  cast ('' as xfeld) AS PurgInfoRecdCndnScaleIsCreated
FROM P_PurgInfoRecdCndScalesMassUpd
LEFT OUTER JOIN I_PurgInfoRecordCategory AS _PurgInfoRecordCategory ON PurchasingInfoRecordCategory = _PurgInfoRecordCategory.PurchasingInfoRecordCategory  -- association [1..1]
LEFT OUTER JOIN I_PricingScaleBasisText AS _ScaleBasisText ON _ScaleBasisText.PricingScaleBasis = PricingScaleBasisShort AND _ScaleBasisText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PricingScaleTypeText AS _ScaleType ON _ScaleType.Language = $session.system_language AND _ScaleType.PricingScaleType = PricingScaleType  -- association [0..1]
LEFT OUTER JOIN P_PurgInfoRecdCndCheckRuleType AS _CndnCheckRuleType ON _CndnCheckRuleType.ConditionType = ConditionType  -- association [0..1]
LEFT OUTER JOIN P_InfoRecdMassUpdtMatlGrp AS _InfoRecdMassUpdtMatlGrp ON _InfoRecdMassUpdtMatlGrp.PurchasingInfoRecord = PurchasingInfoRecord  -- association [1..1]
LEFT OUTER JOIN I_PricingConditionRecord AS _PricingConditionRecord ON ConditionRecord = _PricingConditionRecord.ConditionRecord AND ConditionSequentialNumberShort = _PricingConditionRecord.ConditionSequentialNumber  -- association [1..1 ]
;