P_CmmdtyPrcFixationExerPurg

DDL: P_CMMDTYPRCFIXATIONEXERPURG SQL: PPRCFIXEXERPUR Type: view BASIC

P_CmmdtyPrcFixationExerPurg is a Basic CDS View in SAP S/4HANA. It reads from 8 data sources and exposes 16 fields with key fields PurchasingDocument, PurchasingDocumentItem, ConditionType, PricingCndnTermExtensionGroup, ConditionTermRateFixation.

Data Sources (8)

SourceAliasJoin Type
ekko ekko inner
ekpo ekpo inner
cped_formdoc formdoc inner
cped_knumvtoguid knumvtoguid inner
P_CPED_TERMINPUT_TBLFCT P_CPED_TERMINPUT_TBLFCT inner
cped_termconvin termconvin left_outer
cped_termconvout termconvout left_outer
cped_termgrpout termgrpout from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPRCFIXEXERPUR view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument ekko ebeln
KEY PurchasingDocumentItem ekpo ebelp
KEY ConditionType cped_formdoc cond_type
KEY PricingCndnTermExtensionGroup cped_termgrpout extension_group
KEY ConditionTermRateFixation cped_termgrpout termno
PrcgConditionFormulaInputUUID cped_termgrpout forminput_guid
PricingConditionTermFixedRate terminput fixtermrate_df34
PrcgConditionTermFixedRateCrcy terminput fixtermcurr
PrcgConditionTermFixedRateQty terminput FIXTERMPRUN
PrcgCndnTermFixedRateQtyUnit terminput FIXTERMUOM
ConditionTermExtensionUsage cped_termgrpout extension_usage
ConditionTermQuantity cped_termgrpout termcommquan
ConditionTermUnit cped_termgrpout termcommuom
PrcgCndnTermCnvrsnSourceCrcy cped_termconvout usedcurrfrom
PrcgCndnTermCnvrsnTargetCrcy cped_termconvout usedcurrto
PrcgCndnTermCnvrsnFxdExchRate cped_termconvin fixexchrate
@AbapCatalog.sqlViewName: 'PPRCFIXEXERPUR'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED

@VDM.viewType                               : #BASIC
@VDM.private: true
@AbapCatalog.preserveKey: true

@ObjectModel.usageType.sizeCategory         : #L
@ObjectModel.usageType.serviceQuality       : #B
@ObjectModel.usageType.dataClass            : #TRANSACTIONAL

define view P_CmmdtyPrcFixationExerPurg // Basic Exercise - Item

  as select from    cped_termgrpout         as termgrpout
    inner join      P_CPED_TERMINPUT_TBLFCT ( P_SAPClient : $session.client ) 
                                            as terminput   on termgrpout.terminput_guid = terminput.terminput_guid
    inner join      cped_formdoc            as formdoc     on termgrpout.forminput_guid = formdoc.forminput_guid
    inner join      cped_knumvtoguid        as knumvtoguid on knumvtoguid.docitem_guid = formdoc.docitem_guid
    inner join      ekko                    as ekko        on ekko.knumv = knumvtoguid.knumv
    inner join      ekpo                    as ekpo        on  ekpo.ebeln = ekko.ebeln
                                                          and ekpo.ebelp = substring( knumvtoguid.kposn, 2, 5 )
    left outer join cped_termconvout        as termconvout on  termconvout.termconvout_guid = termgrpout.termconvout_guid
                                                          and termconvout.convplace        = '0062'
    left outer join cped_termconvin         as termconvin  on  termconvin.termconvin_guid = termgrpout.termconvin_guid
                                                          and termconvin.convplace       = '0062'
                                                          and termconvin.currfrom        = termconvout.usedcurrfrom
                                                          and termconvin.uomfrom         = termconvout.useduomfrom
                                                          and termconvin.currto          = termconvout.usedcurrto
                                                          and termconvin.uomto           = termconvout.useduomto
{
  key  ekko.ebeln                 as PurchasingDocument,
  key  ekpo.ebelp                 as PurchasingDocumentItem,
  key  formdoc.cond_type          as ConditionType,
  key  termgrpout.extension_group as PricingCndnTermExtensionGroup,
  key  termgrpout.termno          as ConditionTermRateFixation,
       termgrpout.forminput_guid  as PrcgConditionFormulaInputUUID,
       terminput.fixtermrate_df34 as PricingConditionTermFixedRate,
       terminput.fixtermcurr      as PrcgConditionTermFixedRateCrcy, 
       terminput.FIXTERMPRUN      as PrcgConditionTermFixedRateQty,
       terminput.FIXTERMUOM       as PrcgCndnTermFixedRateQtyUnit, 
       termgrpout.extension_usage as ConditionTermExtensionUsage,
       @Semantics.quantity.unitOfMeasure: 'ConditionTermUnit'
       termgrpout.termcommquan    as ConditionTermQuantity,
       @Semantics.unitOfMeasure: true
       termgrpout.termcommuom     as ConditionTermUnit,
       termconvout.usedcurrfrom   as PrcgCndnTermCnvrsnSourceCrcy,
       termconvout.usedcurrto     as PrcgCndnTermCnvrsnTargetCrcy,
       termconvin.fixexchrate     as PrcgCndnTermCnvrsnFxdExchRate
}
where
  termgrpout.extension_usage = 'B'