I_SchedgAgrmtPartnerFunctionVH

DDL: I_SCHEDGAGRMTPARTNERFUNCTIONVH SQL: ISAPARTNFUNCTVH Type: view BASIC Package: VDM_MM_PUR_SCHD

Scheduling Agreement Partner Function VH

I_SchedgAgrmtPartnerFunctionVH is a Basic CDS View that provides data about "Scheduling Agreement Partner Function VH" in SAP S/4HANA. It reads from 3 data sources (t161, I_PartnerFunction, I_PartFuncByPartDetnProced) and exposes 6 fields with key fields PurchasingDocumentType, PartnerSchema, PartnerFunction. It has 2 associations to related views. Part of development package VDM_MM_PUR_SCHD.

Data Sources (3)

SourceAliasJoin Type
t161 doctype from
I_PartnerFunction function inner
I_PartFuncByPartDetnProced procedure inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_PartnerFunctionText _PartnerFunctionText _PartnerFunctionText.PartnerFunction = $projection.PartnerFunction and _PartnerFunctionText.Language = $session.system_language
[0..1] I_PartnerFunctionLangDepdnt _PartnerFunctionLangDepdnt _PartnerFunctionLangDepdnt.PartnerFunction = $projection.PartnerFunction and _PartnerFunctionLangDepdnt.Language = $session.system_language

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ISAPARTNFUNCTVH view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Scheduling Agreement Partner Function VH view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Search.searchable true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocumentType t161 bsart
KEY PartnerSchema t161 pargr Partner Determination Procedure
KEY PartnerFunction I_PartnerFunction PartnerFunction
PurchasingDocumentPartnerType I_PartnerFunction SDDocumentPartnerType
PartnerFunctionName _PartnerFunctionText PartnerFunctionName
PartnerFunctionLanguageDepdnt
@AbapCatalog.sqlViewName: 'ISAPARTNFUNCTVH'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Scheduling Agreement Partner Function VH'
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API

@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@Search.searchable: true
define view I_SchedgAgrmtPartnerFunctionVH
  as select from t161                       as doctype
    inner join   I_PartFuncByPartDetnProced as procedure on doctype.pargr = procedure.PartnerDeterminationProcedure
    inner join   I_PartnerFunction          as function  on procedure.PartnerFunction = function.PartnerFunction

  association [0..1] to I_PartnerFunctionText       as _PartnerFunctionText       on  _PartnerFunctionText.PartnerFunction = $projection.PartnerFunction
                                                                                  and _PartnerFunctionText.Language        = $session.system_language
  association [0..1] to I_PartnerFunctionLangDepdnt as _PartnerFunctionLangDepdnt on  _PartnerFunctionLangDepdnt.PartnerFunction = $projection.PartnerFunction
                                                                                  and _PartnerFunctionLangDepdnt.Language        = $session.system_language
{
  key doctype.bsart                                                                                  as PurchasingDocumentType,
      @EndUserText.label: 'Partner Determination Procedure'
  key doctype.pargr                                                                                  as PartnerSchema,
      @Search: { defaultSearchElement: true }
  key function.PartnerFunction                                                                       as PartnerFunction,
      function.SDDocumentPartnerType                                                                 as PurchasingDocumentPartnerType,
      @Semantics.text:true
      _PartnerFunctionText.PartnerFunctionName                                                       as PartnerFunctionName,
      // Adding below field to get the external representation of partner function code (from TPAUM if it exists)

      // This field will be shown in the value help for partner functions

      coalesce( _PartnerFunctionLangDepdnt.PartnerFunctionLanguageDepdnt , function.PartnerFunction) as PartnerFunctionLanguageDepdnt

}
where
  doctype.bstyp = 'L'