I_TrdgContrScheduleLine
Trading Contract Schedule Line
I_TrdgContrScheduleLine (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Sales
I_TrdgContrScheduleLine is a Composite CDS View that provides data about "Trading Contract Schedule Line" in SAP S/4HANA. It reads from 1 data source (R_TrdgContrScheduleLine) and exposes 21 fields with key fields TradingContract, TradingContractItem, TradingContractScheduleLine. It has 3 associations to related views.
SAP Help Documentation
| Category | Global Trade Management |
|---|
This CDS view contains information about the schedule line data of a trading contract on item level. This CDS view provides the data to answer the following business questions: What are the schedule lines for the given trading contract item? What are the delivered and ordered quantities of the trading contract item? What is the delivery date and what is the ordered date? 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. TradingContractScheduleLine : This field is used to filter for the schedule line number in a trading contract.
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 schedule line 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>What are the schedule lines for the given trading contract item?</p></li> <li><p>What are the delivered and ordered quantities of the trading contract item?</p></li> <li><p>What is the delivery date and what is the ordered date?</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_TrdgContrScheduleLine | TrdgContrScheduleLine | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_TrdgContr | _TrdgContr | $projection.TradingContract = _TrdgContr.TradingContract |
| [1..1] | I_TrdgContrItem | _TrdgContrItem | $projection.TradingContract = _TrdgContrItem.TradingContract and $projection.TradingContractItem = _TrdgContrItem.TradingContractItem |
| [0..1] | E_TradingDocumentScheduleLine | _TradingDocumentScheduleLine | $projection.TradingContract = _TradingDocumentScheduleLine.TradingDocument and $projection.TradingContractItem = _TradingDocumentScheduleLine.TradingDocumentItem and $projection.TradingContractScheduleLine = _TradingDocumentScheduleLine.TradingDocumentScheduleLine |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Trading Contract Schedule Line | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.representativeKey | TradingContractScheduleLine | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TradingContract | TradingContract | Trading Contract | |
| KEY | TradingContractItem | TradingContractItem | Item Number of Trading Contract | |
| KEY | TradingContractScheduleLine | TradingContractScheduleLine | Schedule Line Number in Trading Contract | |
| CreatedByUser | R_TrdgContrScheduleLine | CreatedByUser | Name of Person Responsible for Creating the Object | |
| CreationDate | CreationDate | Record Created On | ||
| CreationTime | CreationTime | Time of Change | ||
| TrdgContrSalesQuantity | TrdgContrSalesQuantity | Cumulative Order Quantity in Sales Units | ||
| TrdgContrSlsQuantityUnit | TrdgContrSlsQuantityUnit | Sales Unit | ||
| TrdgContrPurgQuantity | TrdgContrPurgQuantity | Quantity ordered against this purchase requisition | ||
| TrdgContrPurgQuantityUnit | TrdgContrPurgQuantityUnit | Purchase Order Unit of Measure | ||
| TrdgContrSlsSchedLineDelivDte | TrdgContrSlsSchedLineDelivDte | Sales Schedule Line Delivery Date | ||
| TrdgContrPurgSchedLineDelivDte | TrdgContrPurgSchedLineDelivDte | Purchasing Schedule line delivery date | ||
| TrdgContrSlsDelivDteCat | TrdgContrSlsDelivDteCat | Sales Delivery Date Category | ||
| TrdgContrPurgDelivDteCat | TrdgContrPurgDelivDteCat | Purchasing Delivery Date Category | ||
| TrdgContrSlsReqdDelivTme | TrdgContrSlsReqdDelivTme | Sales Requested Delivery Time | ||
| TrdgContrPurgReqdDelivTme | TrdgContrPurgReqdDelivTme | Purchasing Requested Delivery Time | ||
| TrdgContrInbLglCtrlChkSts | TrdgContrInbLglCtrlChkSts | Legal Control Check Status (Inbound) | ||
| TrdgContrOutbLglCtrlChkSts | TrdgContrOutbLglCtrlChkSts | Legal Control Check Status (Outbound) | ||
| _TrdgContr | _TrdgContr | |||
| _TrdgContrItem | _TrdgContrItem | |||
| _CreatedByUser | _CreatedByUser |
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_TrdgContrScheduleLine.
-- 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_TrdgContrScheduleLine AS
SELECT
TradingContract,
TradingContractItem,
TradingContractScheduleLine,
TrdgContrScheduleLine.CreatedByUser AS CreatedByUser,
CreationDate,
CreationTime,
TrdgContrSalesQuantity,
TrdgContrSlsQuantityUnit,
TrdgContrPurgQuantity,
TrdgContrPurgQuantityUnit,
TrdgContrSlsSchedLineDelivDte,
TrdgContrPurgSchedLineDelivDte,
TrdgContrSlsDelivDteCat,
TrdgContrPurgDelivDteCat,
TrdgContrSlsReqdDelivTme,
TrdgContrPurgReqdDelivTme,
TrdgContrInbLglCtrlChkSts,
TrdgContrOutbLglCtrlChkSts
FROM R_TrdgContrScheduleLine AS TrdgContrScheduleLine
LEFT OUTER JOIN I_TrdgContr AS _TrdgContr ON TradingContract = _TrdgContr.TradingContract -- association [1..1]
LEFT OUTER JOIN I_TrdgContrItem AS _TrdgContrItem ON TradingContract = _TrdgContrItem.TradingContract AND TradingContractItem = _TrdgContrItem.TradingContractItem -- association [1..1]
LEFT OUTER JOIN E_TradingDocumentScheduleLine AS _TradingDocumentScheduleLine ON TradingContract = _TradingDocumentScheduleLine.TradingDocument AND TradingContractItem = _TradingDocumentScheduleLine.TradingDocumentItem AND TradingContractScheduleLine = _TradingDocumentScheduleLine.TradingDocumentScheduleLine -- association [0..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