I_TrdgContrPartner

DDL: I_TRDGCONTRPARTNER Type: view_entity COMPOSITE

Partner of Trading Contract

I_TrdgContrPartner is a Composite CDS View that provides data about "Partner of Trading Contract" in SAP S/4HANA. It reads from 1 data source (R_TrdgContrPartner) and exposes 28 fields with key fields TradingContract, PartnerFunction, PartnerCounter. It has 1 association to related views.

SAP Help Documentation

CategoryGlobal Trade Management
Purpose
This CDS view contains information about the business partner data of a trading contract on header level. This CDS view provides the data to answer the following business questions: Who is my supplier or customer? Who is the contact person at the supplier or customer company? Where is my supplier or customer located? What type of taxation does my supplier or customer have? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: W_WBHK_TCT (Trading Contract: Authorization for Trading Contract Type) W_WBHK_ORG (Trading Contract: Authorization for Organizational Data) V_KNA1_BRG (Customer: Account Authorization for Sales Areas) F_LFA1_BEK (Vendor: Account Authorization)

Structure
Fields Used for Filtering The main filters are as follows: TradingContract : This field is used to filter for the number of the trading contract. Supplier : This field is used to display the supplier name. SoldToParty : This field is used to display the customer name. Further Important Fields Important fields in this view include the following: Field Name Description PartnerFunction Partner Function The representation of the function a business partner takes on in a business process. Standard partner functions include sold-to party, payer, contact person, and more. AddressID Address of the business partner

Constraints
This CDS view only provides information about the business partners on header level. To retrieve data for business partners on item level, use the Partner of Trading Contract Item view.

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
R_TrdgContrPartner TrdgContrPartner from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_TrdgContr _TrdgContr $projection.TradingContract = _TrdgContr.TradingContract

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Partner of Trading Contract view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions false view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY TradingContract TradingContract
KEY PartnerFunction PartnerFunction Partner Functn
KEY PartnerCounter PartnerCounter Partner counter
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
Supplier Supplier Supplier
SoldToParty SoldToParty Sold-to Party
DefaultPartner DefaultPartner Default Partner
ContactPerson ContactPerson Contact Person Key
Personnel Personnel Personnel No.
AddressID AddressID Ship-to address
TrdgContrPartAddrRefType TrdgContrPartAddrRefType
ReferenceBusinessPartner ReferenceBusinessPartner Busn. Partner
BPAddrDeterminationTransaction BPAddrDeterminationTransaction Address Detn
AddressObjectType AddressObjectType Address Type
AddressPersonID AddressPersonID Person Number
BPRefAddressIDForDocSpcfcAddr BPRefAddressIDForDocSpcfcAddr BP Ref. Address Num.
TrdgContrPrtnHierLvlVal TrdgContrPrtnHierLvlVal
NFPartnerIsNaturalPerson NFPartnerIsNaturalPerson
TaxNumberType TaxNumberType Tax number type
TrdgContrDelivSchedUnldgPt TrdgContrDelivSchedUnldgPt
TrdgContrCustHierCat TrdgContrCustHierCat
TrdgContrSuplrHierCat TrdgContrSuplrHierCat
TrdgContrIsHierPrDetnRlvt TrdgContrIsHierPrDetnRlvt
TrdgContrCustIsRbteRlvt TrdgContrCustIsRbteRlvt
TrdgContrPurgIsSubjToSettlmt TrdgContrPurgIsSubjToSettlmt
TrdgContrPartAddrIsDocSpcfc TrdgContrPartAddrIsDocSpcfc
_TrdgContr _TrdgContr

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_TrdgContrPartner.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_TrdgContrPartner AS
SELECT
  TradingContract,
  PartnerFunction,
  PartnerCounter,
  CreatedByUser,
  CreationDate,
  Supplier,
  SoldToParty,
  DefaultPartner,
  ContactPerson,
  Personnel,
  AddressID,
  TrdgContrPartAddrRefType,
  ReferenceBusinessPartner,
  BPAddrDeterminationTransaction,
  AddressObjectType,
  AddressPersonID,
  BPRefAddressIDForDocSpcfcAddr,
  TrdgContrPrtnHierLvlVal,
  NFPartnerIsNaturalPerson,
  TaxNumberType,
  TrdgContrDelivSchedUnldgPt,
  TrdgContrCustHierCat,
  TrdgContrSuplrHierCat,
  TrdgContrIsHierPrDetnRlvt,
  TrdgContrCustIsRbteRlvt,
  TrdgContrPurgIsSubjToSettlmt,
  TrdgContrPartAddrIsDocSpcfc
FROM R_TrdgContrPartner AS TrdgContrPartner
LEFT OUTER JOIN I_TrdgContr AS _TrdgContr ON TradingContract = _TrdgContr.TradingContract  -- association [1..1]
;