P_ACMContractConditionNmbr

DDL: P_ACMCONTRACTCONDITIONNMBR SQL: PACMCTRCONDNUM Type: view BASIC

ACM Contract Condition Number

P_ACMContractConditionNmbr is a Basic CDS View that provides data about "ACM Contract Condition Number" in SAP S/4HANA. It reads from 3 data sources (wbhd, wbhk, wbhi) and exposes 5 fields with key fields TradingContractNumber, TradingContractItem.

Data Sources (3)

SourceAliasJoin Type
wbhd Business inner
wbhk Header from
wbhi Item inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PACMCTRCONDNUM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label ACM Contract Condition Number view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY TradingContractNumber wbhk tkonn
KEY TradingContractItem wbhi tposn
ContractMaterial wbhi matnr
sdwrsendasPrcgCndnTradingContrCurrency
knumv_sdendasPricingDocument
@AbapCatalog.sqlViewName: 'PACMCTRCONDNUM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #BASIC
@VDM.private: true
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@EndUserText.label: 'ACM Contract Condition Number'
define view P_ACMContractConditionNmbr
  as select from wbhk as Header
    inner join   wbhi as Item     on  Item.tkonn     = Header.tkonn
                                  and Item.tposn_sub = '000000'
    inner join   wbhd as Business on  Business.tkonn     = Header.tkonn
                                  and Business.tposn     = '000000'
                                  and Business.tposn_sub = '000000'

{
  key Header.tkonn               as TradingContractNumber,
  key Item.tposn                 as TradingContractItem,
      Item.matnr                 as ContractMaterial,
      case when Item.waers_purch is not initial then Item.waers_purch
      else  Item.sdwrs       end as PrcgCndnTradingContrCurrency,
      case when Business.knumv_mm is not initial then Business.knumv_mm
      else Header.knumv_sd   end as PricingDocument

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"WBHD",
"WBHI",
"WBHK"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/