I_TrdgContrItemPartner
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
| Category | Global Trade Management |
|---|
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.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sales |
| Application Component | LO-GT |
| Capabilities | Data Source for Defining CDS Entities |
| Package | Sales 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_TrdgContrItemPartner | TrdgcontrItemPartner | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_TrdgContr | _TradingContract | $projection.TradingContract = _TradingContract.TradingContract |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA