I_TR_ElectronicDocInvoice
eDocument Turkey eInvoice
I_TR_ElectronicDocInvoice (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Cross Applications
I_TR_ElectronicDocInvoice is a Composite CDS View that provides data about "eDocument Turkey eInvoice" in SAP S/4HANA. It reads from 1 data source (I_ElectronicDoc) and exposes 22 fields with key field ElectronicDocUUID. It has 3 associations to related views. Part of development package GLO-EDO-TR.
SAP API Hub
| Category | Composite |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | CA-GTF-CSC-EDO-TR |
| Capabilities | Data Source in SQL Select |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ElectronicDoc | I_ElectronicDoc | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_TR_ElectronicDocOutgInvoice | _Invoice | $projection.ElectronicDocUUID = _Invoice.ElectronicDocUUID |
| [1] | I_TR_ElectronicDocIncgInvoice | _Incoming | $projection.ElectronicDocUUID = _Incoming.ElectronicDocUUID |
| [1] | I_TR_ElectronicDocExpInvoice | _Export | $projection.ElectronicDocUUID = _Export.ElectronicDocUUID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ITREINVOICE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| EndUserText.label | eDocument Turkey eInvoice | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ElectronicDocUUID | ElectronicDocUUID | eDocument: GUID | |
| ElectronicDocCompanyCode | ElectronicDocCompanyCode | Company Code | ||
| ElectronicDocSourceType | ElectronicDocSourceType | eDocument Source Type | ||
| ElectronicDocSourceKey | ElectronicDocSourceKey | eDocument Source Key | ||
| ElectronicDocType | ElectronicDocType | eDocument Type | ||
| ElectronicDocProcessStatus | ElectronicDocProcessStatus | eDocument Process Status | ||
| ElectronicDocLastChangeDate | ElectronicDocLastChangeDate | Changed on (Date) | ||
| ElectronicDocLastChangeTime | ElectronicDocLastChangeTime | Changed On (Time) | ||
| ElectronicDocProcess | ElectronicDocProcess | eDocument Process | ||
| ElectronicDocPostingDate | ElectronicDocPostingDate | Posting Date of the Source Document | ||
| SalesCurrencyendasSalesCurrency | ||||
| TR_ElectronicDocBusPartner | _Invoice | TR_ElectronicDocBusPartner | Business Partner | |
| TR_EDocBusPartnerName | _Invoice | TR_EDocBusPartnerName | Business Partner Name | |
| TR_EDocRejectionReasonText | _Incoming | TR_EDocRejectionReasonText | ||
| TR_ElectronicDocRcvdDateTime | _Incoming | TR_ElectronicDocRcvdDateTime | Time Received | |
| TR_ElectronicDocSupplierID | _Incoming | TR_ElectronicDocSupplierID | Supplier | |
| TR_ElectronicDocSupplierName | _Incoming | TR_ElectronicDocSupplierName | Supplier Name | |
| TR_EDocTradeRefNumber | _Export | TR_EDocTradeRefNumber | Ministry of Customs and Trade Reference Number | |
| TR_EDocCustomRegNumber | _Export | TR_EDocCustomRegNumber | Customs Exit Declaration Registration Number | |
| TR_EDocRealExportDate | _Export | TR_EDocRealExportDate | Realisition Date (Real Export Date) | |
| ShipToParty | _Export | ShipToParty | Ship-To Party (obsolete) | |
| TR_EDocShipToPartyName | _Export | TR_EDocShipToPartyName | Ship-to Party Name |
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_TR_ElectronicDocInvoice.
-- 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.
-- SQL view name: ITREINVOICE
CREATE VIEW I_TR_ElectronicDocInvoice AS
SELECT
ElectronicDocUUID,
ElectronicDocCompanyCode,
ElectronicDocSourceType,
ElectronicDocSourceKey,
ElectronicDocType,
ElectronicDocProcessStatus,
ElectronicDocLastChangeDate,
ElectronicDocLastChangeTime,
ElectronicDocProcess,
ElectronicDocPostingDate,
case when _Invoice.SalesCurrency is not initial then _Invoice.SalesCurrency when _Export.SalesCurrency is not initial then _Export.SalesCurrency else _Incoming.SalesCurrency end as SalesCurrency AS SalesCurrencyendasSalesCurrency,
_Invoice.TR_ElectronicDocBusPartner AS TR_ElectronicDocBusPartner,
_Invoice.TR_EDocBusPartnerName AS TR_EDocBusPartnerName,
_Incoming.TR_EDocRejectionReasonText AS TR_EDocRejectionReasonText,
_Incoming.TR_ElectronicDocRcvdDateTime AS TR_ElectronicDocRcvdDateTime,
_Incoming.TR_ElectronicDocSupplierID AS TR_ElectronicDocSupplierID,
_Incoming.TR_ElectronicDocSupplierName AS TR_ElectronicDocSupplierName,
_Export.TR_EDocTradeRefNumber AS TR_EDocTradeRefNumber,
_Export.TR_EDocCustomRegNumber AS TR_EDocCustomRegNumber,
_Export.TR_EDocRealExportDate AS TR_EDocRealExportDate,
_Export.ShipToParty AS ShipToParty,
_Export.TR_EDocShipToPartyName AS TR_EDocShipToPartyName
FROM I_ElectronicDoc
LEFT OUTER JOIN I_TR_ElectronicDocOutgInvoice AS _Invoice ON ElectronicDocUUID = _Invoice.ElectronicDocUUID -- association [1]
LEFT OUTER JOIN I_TR_ElectronicDocIncgInvoice AS _Incoming ON ElectronicDocUUID = _Incoming.ElectronicDocUUID -- association [1]
LEFT OUTER JOIN I_TR_ElectronicDocExpInvoice AS _Export ON ElectronicDocUUID = _Export.ElectronicDocUUID -- association [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