I_TrdgContrItemPartner

DDL: I_TRDGCONTRITEMPARTNER Type: view_entity COMPOSITE

Partner of Trading Contract Item

I_TrdgContrItemPartner (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Sales

I_TrdgContrItemPartner is a Composite CDS View that provides data about "Partner of Trading Contract Item" in SAP S/4HANA. It reads from 1 data source (R_TrdgContrItemPartner) and exposes 28 fields with key fields TradingContract, TradingContractItem, 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 item level. This CDS view provides the data to answer the following business questions: Who is my supplier or customer for this item? Who is the contact person at the supplier or customer company for this item? Where is my supplier or customer for this item located? What type of taxation does my supplier or customer for this item 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. TradingContractItem : This field is used to filter for the number of a trading contract item. 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 item level. To retrieve data for business partners on header level, use the Partner of Trading Contract view.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSales
Application ComponentLO-GT
CapabilitiesData Source for Defining CDS Entities
PackageSales for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view contains information about the business partner data of a trading contract on item level.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Who is my supplier or customer for this item?</p></li> <li><p>Who is the contact person at the supplier or customer company for this item?</p></li> <li><p>Where is my supplier or customer for this item located?</p></li> <li><p>What type of taxation does my supplier or customer for this item have?</p></li> </ul> <p>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.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
R_TrdgContrItemPartner TrdgcontrItemPartner from

Associations (1)

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

Annotations (9)

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

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY TradingContract TradingContract Trading Contract
KEY TradingContractItem TradingContractItem Item Number of Trading Contract
KEY PartnerFunction PartnerFunction Partner Function
KEY PartnerCounter PartnerCounter Partner counter
Supplier Supplier Account Number of Supplier
SoldToParty SoldToParty Sold-to Party
DefaultPartner DefaultPartner Default Partner
ContactPerson ContactPerson Number of Contact Person
Personnel Personnel Personnel Number
AddressID AddressID Ship-to address
TrdgContrPartAddrRefType TrdgContrPartAddrRefType Address indicator
ReferenceBusinessPartner ReferenceBusinessPartner Business Partner Number
BPAddrDeterminationTransaction BPAddrDeterminationTransaction Business Partner Address Determination
AddressObjectType AddressObjectType Address type (1=Organization, 2=Person, 3=Contact person)
AddressPersonID AddressPersonID Person Number
BPRefAddressIDForDocSpcfcAddr BPRefAddressIDForDocSpcfcAddr BP Reference Address Number
TrdgContrPrtnHierLvlVal TrdgContrPrtnHierLvlVal Level number within the hierarchy of a Trdg Doc Partner
NFPartnerIsNaturalPerson NFPartnerIsNaturalPerson Natural Person
TaxNumberType TaxNumberType Tax number type
TrdgContrDelivSchedUnldgPt TrdgContrDelivSchedUnldgPt Unloading Point
TrdgContrCustHierCat TrdgContrCustHierCat Sales Hierarchy Category
TrdgContrSuplrHierCat TrdgContrSuplrHierCat Purchasing Hierarchy Category
TrdgContrIsHierPrDetnRlvt TrdgContrIsHierPrDetnRlvt Relevant for price determination ID
TrdgContrCustIsRbteRlvt TrdgContrCustIsRbteRlvt Indicator: Customer Is Rebate-Relevant
TrdgContrPurgIsSubjToSettlmt TrdgContrPurgIsSubjToSettlmt Indicator: supplier subject to subseq. settlement accounting
TrdgContrPartAddrIsDocSpcfc TrdgContrPartAddrIsDocSpcfc Document-Specific Address Indicator
_Address _Address
_TradingContract _TradingContract

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_TrdgContrItemPartner.
-- 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_TrdgContrItemPartner AS
SELECT
  TradingContract,
  TradingContractItem,
  PartnerFunction,
  PartnerCounter,
  Supplier,
  SoldToParty,
  DefaultPartner,
  ContactPerson,
  Personnel,
  AddressID,
  TrdgContrPartAddrRefType,
  ReferenceBusinessPartner,
  BPAddrDeterminationTransaction,
  AddressObjectType,
  AddressPersonID,
  BPRefAddressIDForDocSpcfcAddr,
  TrdgContrPrtnHierLvlVal,
  NFPartnerIsNaturalPerson,
  TaxNumberType,
  TrdgContrDelivSchedUnldgPt,
  TrdgContrCustHierCat,
  TrdgContrSuplrHierCat,
  TrdgContrIsHierPrDetnRlvt,
  TrdgContrCustIsRbteRlvt,
  TrdgContrPurgIsSubjToSettlmt,
  TrdgContrPartAddrIsDocSpcfc
FROM R_TrdgContrItemPartner AS TrdgcontrItemPartner
LEFT OUTER JOIN I_TrdgContr AS _TradingContract ON TradingContract = _TradingContract.TradingContract  -- association [1..1]
;