R_SalesContractItemPartnerTP

DDL: R_SALESCONTRACTITEMPARTNERTP Type: view_entity TRANSACTIONAL

Sales Contract Item Partner - TP

R_SalesContractItemPartnerTP is a Transactional CDS View that provides data about "Sales Contract Item Partner - TP" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocItemCompletePartner, I_SalesDocumentBasic) and exposes 54 fields with key fields SalesContract, SalesContractItem, PartnerFunction. It has 5 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_SalesDocItemCompletePartner ItemPartner from
I_SalesDocumentBasic SalesContract inner

Associations (5)

CardinalityTargetAliasCondition
[1..1] R_SalesContractTP _SalesContract $projection.SalesContract = _SalesContract.SalesContract
[0..1] I_PartnerFunction _PartnerFunction $projection.PartnerFunctionForEdit = _PartnerFunction.PartnerFunction
[0..1] I_FormOfAddress _FormOfAddress $projection.FormOfAddress = _FormOfAddress.FormOfAddress
[0..1] I_Language _CorrespondenceLanguage $projection.CorrespondenceLanguage = _CorrespondenceLanguage.Language
[0..1] I_TransportationZone _TransportationZone $projection.transportzone = _TransportationZone.TransportZone and $projection.country = _TransportationZone.CountryCode

Annotations (8)

NameValueLevelField
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Sales Contract Item Partner - TP view

Fields (54)

KeyFieldSource TableSource FieldDescription
KEY SalesContract
KEY SalesContractItem
KEY PartnerFunction
PartnerFunctionForEdit
Customer I_SalesDocItemCompletePartner Customer
Supplier I_SalesDocItemCompletePartner Supplier
Partner I_SalesDocItemCompletePartner Partner
FullName I_SalesDocItemCompletePartner FullName
SDDocumentPartnerType _PartnerFunction SDDocumentPartnerType
PartnerIsSpecificForSDDocItem I_SalesDocItemCompletePartner PartnerIsSpecificForSDDocItem
ReferenceBusinessPartner I_SalesDocItemCompletePartner ReferenceBusinessPartner
Personnel I_SalesDocItemCompletePartner Personnel
ContactPerson I_SalesDocItemCompletePartner ContactPerson
SDDocPartnerAddrIsDocSpecific I_SalesDocItemCompletePartner SDDocPartnerAddrIsDocSpecific
FormOfAddress I_SalesDocItemCompletePartner FormOfAddress
CorrespondenceLanguage I_SalesDocItemCompletePartner CorrespondenceLanguage
TransportZone
StreetName
HouseNumber
PostalCode
Country
Region
DistrictName
CityName
POBox
POBoxPostalCode
TaxJurisdiction
AddressID I_SalesDocItemCompletePartner AddressID
AddressPersonID I_SalesDocItemCompletePartner AddressPersonID
AddressObjectType I_SalesDocItemCompletePartner AddressObjectType
SDDocPartnerAddressRefType I_SalesDocItemCompletePartner SDDocPartnerAddressRefType
BPAddrDeterminationTransaction I_SalesDocItemCompletePartner BPAddrDeterminationTransaction
BPRefAddressIDForDocSpcfcAddr I_SalesDocItemCompletePartner BPRefAddressIDForDocSpcfcAddr
VATRegistration I_SalesDocItemCompletePartner VATRegistration
UnloadingPointName I_SalesDocItemCompletePartner UnloadingPointName
InternationalPhoneNumber I_SalesDocItemCompletePartner InternationalPhoneNumber
InternationalMobilePhoneNumber I_SalesDocItemCompletePartner InternationalMobilePhoneNumber
EmailAddress I_SalesDocItemCompletePartner EmailAddress
SalesContractType _SalesContract SalesContractType
SalesOrganization _SalesContract SalesOrganization
DistributionChannel _SalesContract DistributionChannel
OrganizationDivision _SalesContract OrganizationDivision
_Item _Item
_SalesContract _SalesContract
_PartnerFunction _PartnerFunction
_CorrespondenceLanguage _CorrespondenceLanguage
_TransportationZone _TransportationZone
_FormOfAddress _FormOfAddress
_ContactPerson I_SalesDocItemCompletePartner _ContactPerson
_DfltAddrRprstn I_SalesDocItemCompletePartner _DfltAddrRprstn
_BusinessPartnerAddress I_SalesDocItemCompletePartner _BusinessPartnerAddress
_BPRefAddressForDocSpcfcAddr I_SalesDocItemCompletePartner _BPRefAddressForDocSpcfcAddr
_Country
_Region
@VDM: {
  lifecycle.contract.type: #SAP_INTERNAL_API,
  viewType: #TRANSACTIONAL
}

@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA'),
  privilegedAssociations: [ '_DfltAddrRprstn' ]
}

@ObjectModel: {
    usageType: {
        dataClass: #TRANSACTIONAL,
        serviceQuality: #C,
        sizeCategory: #L
    }
}

@ObjectModel.semanticKey: ['SalesContract', 'SalesContractItem', 'PartnerFunction']

@Metadata.ignorePropagatedAnnotations: true

@EndUserText.label: 'Sales Contract Item Partner - TP'
define view entity R_SalesContractItemPartnerTP
  as select from I_SalesDocItemCompletePartner as ItemPartner

    inner join   I_SalesDocumentBasic          as SalesContract on  SalesContract.SalesDocument      = ItemPartner.SalesDocument
                                                                and SalesContract.SDDocumentCategory = 'G'

  association [1..1] to R_SalesContractTP            as _SalesContract          on  $projection.SalesContract = _SalesContract.SalesContract

  association        to parent R_SalesContractItemTP as _Item                   on  $projection.SalesContract     = _Item.SalesContract
                                                                                and $projection.SalesContractItem = _Item.SalesContractItem
  association [0..1] to I_PartnerFunction            as _PartnerFunction        on  $projection.PartnerFunctionForEdit = _PartnerFunction.PartnerFunction
  association [0..1] to I_FormOfAddress              as _FormOfAddress          on  $projection.FormOfAddress = _FormOfAddress.FormOfAddress
  association [0..1] to I_Language                   as _CorrespondenceLanguage on  $projection.CorrespondenceLanguage = _CorrespondenceLanguage.Language
  association [0..1] to I_TransportationZone         as _TransportationZone     on  $projection.transportzone = _TransportationZone.TransportZone
                                                                                and $projection.country       = _TransportationZone.CountryCode

{

  key cast(ItemPartner.SalesDocument as sales_contract preserving type)          as SalesContract,

  key cast(ItemPartner.SalesDocumentItem as sales_contract_item preserving type) as SalesContractItem,

  key cast(ItemPartner.PartnerFunction as parvw_unv preserving type )            as PartnerFunction,

      @ObjectModel.foreignKey.association: '_PartnerFunction'
      cast(ItemPartner.PartnerFunction as parvw_unv preserving type )            as PartnerFunctionForEdit,
      ItemPartner.Customer,
      ItemPartner.Supplier,
      @ObjectModel.text.element: ['FullName']
      ItemPartner.Partner,

      @Semantics.name.fullName: true
      @Semantics.text: true
      ItemPartner.FullName,

      _PartnerFunction.SDDocumentPartnerType,

      ItemPartner.PartnerIsSpecificForSDDocItem,

      ItemPartner.ReferenceBusinessPartner,
      ItemPartner.Personnel,
      ItemPartner.ContactPerson,
      ItemPartner.SDDocPartnerAddrIsDocSpecific,

      @ObjectModel.foreignKey.association: '_FormOfAddress'
      @Semantics.name.jobTitle: true
      ItemPartner.FormOfAddress,

      @ObjectModel.foreignKey.association: '_CorrespondenceLanguage'
      ItemPartner.CorrespondenceLanguage,

      @ObjectModel.foreignKey.association: '_TransportationZone'
      ItemPartner._OrgNamePostalAddress.TransportZone,

      @Semantics.address.street: true
      ItemPartner._OrgNamePostalAddress.StreetName,

      @Semantics.address.streetNoNumber: true
      ItemPartner._OrgNamePostalAddress.HouseNumber,

      @Semantics.address.zipCode:true
      ItemPartner._OrgNamePostalAddress.PostalCode,

      @Semantics.address.country:true
      @ObjectModel.foreignKey.association: '_Country'
      ItemPartner._OrgNamePostalAddress.Country,

      @ObjectModel.foreignKey.association: '_Region'
      @Semantics.address.region: true
      ItemPartner._OrgNamePostalAddress.Region,

      ItemPartner._OrgNamePostalAddress.DistrictName,

      @Semantics.address.city:true
      ItemPartner._OrgNamePostalAddress.CityName,

      @Semantics.address.postBox: true
      ItemPartner._OrgNamePostalAddress.POBox,

      @Semantics.address.zipCode:true
      ItemPartner._OrgNamePostalAddress.POBoxPostalCode,

      ItemPartner._OrgNamePostalAddress.TaxJurisdiction,


      ItemPartner.AddressID,

      ItemPartner.AddressPersonID,

      ItemPartner.AddressObjectType,

      ItemPartner.SDDocPartnerAddressRefType,

      ItemPartner.BPAddrDeterminationTransaction,

      ItemPartner.BPRefAddressIDForDocSpcfcAddr,

      ItemPartner.VATRegistration,

      @Semantics.text: true
      ItemPartner.UnloadingPointName,

      @Semantics.telephone.type: [#WORK]
      ItemPartner.InternationalPhoneNumber,

      @Semantics.telephone.type:  [#CELL]
      ItemPartner.InternationalMobilePhoneNumber,

      @Semantics.eMail.address: true
      @Semantics.eMail.type:  [#WORK]
      ItemPartner.EmailAddress,

      @Consumption.hidden: true
      _SalesContract.SalesContractType,
      @Consumption.hidden: true
      _SalesContract.SalesOrganization,
      @Consumption.hidden: true
      _SalesContract.DistributionChannel,
      @Consumption.hidden: true
      _SalesContract.OrganizationDivision,

      //Associations

      _Item,
      _SalesContract,
      _PartnerFunction,
      _CorrespondenceLanguage,
      _TransportationZone,
      _FormOfAddress,

      ItemPartner._ContactPerson,
      ItemPartner._DfltAddrRprstn,
      ItemPartner._BusinessPartnerAddress,
      ItemPartner._BPRefAddressForDocSpcfcAddr,
      ItemPartner._OrgNamePostalAddress._Country,
      ItemPartner._OrgNamePostalAddress._Region
} 
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ADDRORGNAMEPOSTALADDRESS",
"I_PARTNERFUNCTION",
"I_SALESDOCITEMCOMPLETEPARTNER",
"I_SALESDOCUMENTBASIC",
"R_SALESCONTRACTTP"
],
"ASSOCIATED":
[
"I_ADDRESS_2",
"I_BUSPARTADDRESS",
"I_CONTACTPERSON",
"I_COUNTRY",
"I_FORMOFADDRESS",
"I_LANGUAGE",
"I_PARTNERFUNCTION",
"I_REGION",
"I_TRANSPORTATIONZONE",
"R_SALESCONTRACTITEMTP",
"R_SALESCONTRACTTP"
],
"BASE":
[
"I_ADDRORGNAMEPOSTALADDRESS",
"I_SALESDOCITEMCOMPLETEPARTNER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/