I_PRAPricingFormulaTerms2

DDL: I_PRAPRICINGFORMULATERMS2 Type: view BASIC Package: OIU_VDM_CDS

Pricing Formula Terms

I_PRAPricingFormulaTerms2 is a Basic CDS View that provides data about "Pricing Formula Terms" in SAP S/4HANA. It reads from 1 data source (oiu_fanda_termsb) and exposes 27 fields with key field PRAPricingFormulaTermUUID. It has 7 associations to related views. Part of development package OIU_VDM_CDS.

Data Sources (1)

SourceAliasJoin Type
oiu_fanda_termsb oiu_fanda_termsb from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_PRAPricingFormulaHeader _PRAPricingFormulaHeader $projection.PRAPricingFormulaUUID = _PRAPricingFormulaHeader.PRAPricingFormulaUUID
[0..1] I_UnitOfMeasure _VolumeUnit $projection.PricingSurchargeVolUnit = _VolumeUnit.UnitOfMeasure
[0..1] I_Currency _Currency $projection.PricingFormulaCurrency = _Currency.Currency
[1..1] I_PRAQuotationSource _PRAQuotationSource $projection.PricingQuotationSource = _PRAQuotationSource.PricingQuotationSource
[1..1] I_PRAQuotationType _PRAQuotationType $projection.PricingQuotationType = _PRAQuotationType.PricingQuotationType
[1..1] I_PRAQuotation _PRAQuotation $projection.PricingQuotationSource = _PRAQuotation.PricingQuotationSource and $projection.PricingQuotationType = _PRAQuotation.PricingQuotationType and $projection.PricingQuotationNumber = _PRAQuotation.PricingQuotationNumber
[1..1] I_PRAFormulaTermItemRule _PRAFormulaTermItemRule $projection.PricingTermCalcRule = _PRAFormulaTermItemRule.PricingTermCalcRule

Annotations (11)

NameValueLevelField
EndUserText.label Pricing Formula Terms view
AbapCatalog.sqlViewName IPRFRMLTERMSB view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY PRAPricingFormulaTermUUID formula_term_uuid UUID
PRAPricingFormulaUUID formula_uuid UUID
FormulaTermType fortrmtyp Term type
PricingFormulaTermItemNumber kopos SequNo of Cond.
PricingQuotationGroup oiu_quotgrp Quot. group
PricingQuotationSource quosrc Quot.source
PricingQuotationType quotyp Quote type
PricingQuotationNumber quotno Quotation no.
PricingFormulaCalcFctrOneVal mult1 Factor 1
PricingFormulaCalcFctrTwoVal mult2 Factor 2
PricingTermCalcRule trmexit Item calc. rule
PricingFormulaSurchargeAmt surcharge Surcharge
PricingFormulaCurrency surcurr Surcharge curr
PricingSurchargeVolInQty surprun Surcharge/unit
PricingSurchargeVolUnit suruom Surch.UoM
PeriodsBeforeRefDteInVal perbef Per before
PeriodsAfterRefDteInVal peraft Per. after
FormulaFixedPeriodStartDte datfrm Fix date from
FormulaFixedPeriodEndDte datto Fix date to
PRALoclLastChgdAtDateTime local_last_changed_at Time Stamp
_PRAPricingFormulaHeader _PRAPricingFormulaHeader
_Currency _Currency
_VolumeUnit _VolumeUnit
_PRAQuotationSource _PRAQuotationSource
_PRAQuotationType _PRAQuotationType
_PRAQuotation _PRAQuotation
_PRAFormulaTermItemRule _PRAFormulaTermItemRule

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 I_PRAPricingFormulaTerms2.
-- 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.

CREATE VIEW I_PRAPricingFormulaTerms2 AS
SELECT
  formula_term_uuid AS PRAPricingFormulaTermUUID,
  formula_uuid AS PRAPricingFormulaUUID,
  fortrmtyp AS FormulaTermType,
  kopos AS PricingFormulaTermItemNumber,
  oiu_quotgrp AS PricingQuotationGroup,
  quosrc AS PricingQuotationSource,
  quotyp AS PricingQuotationType,
  quotno AS PricingQuotationNumber,
  mult1 AS PricingFormulaCalcFctrOneVal,
  mult2 AS PricingFormulaCalcFctrTwoVal,
  trmexit AS PricingTermCalcRule,
  surcharge AS PricingFormulaSurchargeAmt,
  surcurr AS PricingFormulaCurrency,
  surprun AS PricingSurchargeVolInQty,
  suruom AS PricingSurchargeVolUnit,
  perbef AS PeriodsBeforeRefDteInVal,
  peraft AS PeriodsAfterRefDteInVal,
  datfrm AS FormulaFixedPeriodStartDte,
  datto AS FormulaFixedPeriodEndDte,
  local_last_changed_at AS PRALoclLastChgdAtDateTime
FROM oiu_fanda_termsb
LEFT OUTER JOIN I_PRAPricingFormulaHeader AS _PRAPricingFormulaHeader ON PRAPricingFormulaUUID = _PRAPricingFormulaHeader.PRAPricingFormulaUUID  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON PricingSurchargeVolUnit = _VolumeUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON PricingFormulaCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_PRAQuotationSource AS _PRAQuotationSource ON PricingQuotationSource = _PRAQuotationSource.PricingQuotationSource  -- association [1..1]
LEFT OUTER JOIN I_PRAQuotationType AS _PRAQuotationType ON PricingQuotationType = _PRAQuotationType.PricingQuotationType  -- association [1..1]
LEFT OUTER JOIN I_PRAQuotation AS _PRAQuotation ON PricingQuotationSource = _PRAQuotation.PricingQuotationSource AND PricingQuotationType = _PRAQuotation.PricingQuotationType AND PricingQuotationNumber = _PRAQuotation.PricingQuotationNumber  -- association [1..1]
LEFT OUTER JOIN I_PRAFormulaTermItemRule AS _PRAFormulaTermItemRule ON PricingTermCalcRule = _PRAFormulaTermItemRule.PricingTermCalcRule  -- association [1..1]
;