I_PurContractPartnerFunctionVH

DDL: I_PURCONTRACTPARTNERFUNCTIONVH SQL: IPCPARTNFUNCTVH Type: view BASIC

Pur. Contr. Partner Function Value Help

I_PurContractPartnerFunctionVH is a Basic CDS View that provides data about "Pur. Contr. Partner Function Value Help" in SAP S/4HANA. It reads from 3 data sources (I_PartFuncByPartDetnProced, tpar, t161) and exposes 9 fields with key fields PurchasingDocumentType, PartnerSchema, PartnerFunction. It has 3 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_PartFuncByPartDetnProced function inner
tpar functiondetail inner
t161 schema from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_PartnerFunctionText _PartnerFunctionText _PartnerFunctionText.PartnerFunction = $projection.PartnerFunction and _PartnerFunctionText.Language = $session.system_language
[0..1] I_PartnerTypeText _PartnerTypeText _PartnerTypeText.PurchasingDocumentPartnerType = $projection.PurchasingDocumentPartnerType and _PartnerTypeText.Language = $session.system_language
[0..1] I_PurchasingDocumentType _PurchasingDocumentType _PurchasingDocumentType.PurchasingDocumentType = $projection.PurchasingDocumentType and _PurchasingDocumentType.PurchasingDocumentCategory = 'K'

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPCPARTNFUNCTVH view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Pur. Contr. Partner Function Value Help view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
Search.searchable true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocumentType t161 bsart
KEY PartnerSchema t161 pargr
KEY PartnerFunction I_PartFuncByPartDetnProced PartnerFunction
PartnerFunctionLanguageDepdnt Partner Function
PartnerFunctionName _PartnerFunctionText PartnerFunctionName
PartnerFunctionIsUnique tpar stein
PurchasingDocumentPartnerType tpar nrart
PurgDocumentPartnerTypeName _PartnerTypeText PurgDocumentPartnerTypeName
_PurchasingDocumentType _PurchasingDocumentType
@AbapCatalog.sqlViewName: 'IPCPARTNFUNCTVH'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Pur. Contr. Partner Function Value Help'
//@ObjectModel.representativeKey: 'PartnerFunction'


@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass: #MIXED

@Search.searchable: true

define view I_PurContractPartnerFunctionVH
  as select from t161  as schema
    inner join   I_PartFuncByPartDetnProced as function       on schema.pargr = function.PartnerDeterminationProcedure
//    left outer join tpaum as partnerfunction on partnerfunction.parvw = function.parvw

//                          and partnerfunction.spras = $session.system_language

    inner join   tpar  as functiondetail on function.PartnerFunction = functiondetail.parvw

  association [0..1] to I_PartnerFunctionText    as _PartnerFunctionText    on  _PartnerFunctionText.PartnerFunction = $projection.PartnerFunction //function.parvw to be tried by new field exposure

                                                                            and _PartnerFunctionText.Language        = $session.system_language
  association [0..1] to I_PartnerTypeText        as _PartnerTypeText        on  _PartnerTypeText.PurchasingDocumentPartnerType = $projection.PurchasingDocumentPartnerType
                                                                            and _PartnerTypeText.Language                      = $session.system_language

  association [0..1] to I_PurchasingDocumentType as _PurchasingDocumentType on  _PurchasingDocumentType.PurchasingDocumentType     = $projection.PurchasingDocumentType
                                                                            and _PurchasingDocumentType.PurchasingDocumentCategory = 'K'

{
      //    key schema.bstyp as PurchasingDocumentCategory,

      @ObjectModel.foreignKey.association: '_PurchasingDocumentType'
      @Search: { defaultSearchElement: true, ranking: #HIGH }
  key schema.bsart         as PurchasingDocumentType,

      @UI.hidden: true
  key schema.pargr         as PartnerSchema,

      @ObjectModel.text.element: ['PartnerFunctionName']
      @Search: { defaultSearchElement: true, ranking: #HIGH }
      @UI.hidden: true
  key function.PartnerFunction  as PartnerFunction,
  //key  coalesce(partnerfunction.parvw , function.parvw) as PartnerFunction, 

  
    // partnerfunction.pabez as PartnerFunction1,

      @EndUserText.label: 'Partner Function'
      function._PartnerFunction._PartnerFunctionLangDepdnt[Language=$session.system_language].PartnerFunctionLanguageDepdnt,
      
      @Semantics.text: true
      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.7 }
      _PartnerFunctionText.PartnerFunctionName,

      @UI.hidden: true
      functiondetail.stein as PartnerFunctionIsUnique,
      
      @ObjectModel.text.element: ['PurgDocumentPartnerTypeName']
      @Search: { defaultSearchElement: true, ranking: #HIGH }
      functiondetail.nrart as PurchasingDocumentPartnerType,

      @Semantics.text: true
      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.7 }
      _PartnerTypeText.PurgDocumentPartnerTypeName,

      _PurchasingDocumentType

}
where
  schema.bstyp = 'K'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PARTFUNCBYPARTDETNPROCED",
"I_PARTNERFUNCTION",
"I_PARTNERFUNCTIONLANGDEPDNT",
"I_PARTNERFUNCTIONTEXT",
"I_PARTNERTYPETEXT",
"T161",
"TPAR"
],
"ASSOCIATED":
[
"I_PARTNERFUNCTIONTEXT",
"I_PARTNERTYPETEXT",
"I_PURCHASINGDOCUMENTTYPE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/