R_TR_ElectronicDocExpInvoice
eDocument TR Export Registration data
R_TR_ElectronicDocExpInvoice is a Basic CDS View that provides data about "eDocument TR Export Registration data" in SAP S/4HANA. It reads from 1 data source (edotrereg) and exposes 18 fields with key field ElectronicDocUUID. It has 1 association to related views. Part of development package GLO-EDO-TR.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| edotrereg | edotrereg | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ElectronicDoc | _ElectronicDoc | edotrereg.edoc_guid = _ElectronicDoc.ElectronicDocUUID |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | eDocument TR Export Registration data | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ElectronicDocUUID | edoc_guid | eDocument GUID | |
| TR_ElectronicDocUniqueID | uuid | Waste Partner UUID | ||
| TR_ElectronicDocEnvelopeID | fit_envelope_id | Envelope ID | ||
| TR_ElectronicDocInvoiceID | fit_tra_id | Invoice ID | ||
| TR_EDocBusinessPartnerAlias | identifier | Snd. Alias | ||
| TR_ElectronicDocTaxID | vkn_tckn | VKN/TCKN | ||
| TR_EDocTradeRefNumber | trefnum | GTB Ref. Number | ||
| TR_EDocCustomRegNumber | cxdrnum | Cus.Dec.Reg.No. | ||
| TR_EDocRealExportDate | reldat | Real Exp. Date | ||
| ShipToParty | customer | Sold-to Party | ||
| TR_EDocTaxExclusiveAmount | Tax-Exclusive Amount | |||
| TR_ElectronicDocTaxAmount | VAT Amount Type | |||
| TR_EDocTaxInclusiveAmount | Tax-Inclusive Amount | |||
| SalesCurrency | currency | Valuation Crcy | ||
| TR_EDocShipToPartyName | ship_to_party_name | Ship-to Party Name | ||
| TR_EDocCancelReason | cancelreason | Cancel Reasn | ||
| TR_EDocCancelReasonCode | canclreasncode | Cancel Reason Code | ||
| TR_ElectronicDocCompanyCode | _ElectronicDoc | ElectronicDocCompanyCode |
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 R_TR_ElectronicDocExpInvoice.
-- 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 R_TR_ElectronicDocExpInvoice AS
SELECT
edoc_guid AS ElectronicDocUUID,
uuid AS TR_ElectronicDocUniqueID,
fit_envelope_id AS TR_ElectronicDocEnvelopeID,
fit_tra_id AS TR_ElectronicDocInvoiceID,
identifier AS TR_EDocBusinessPartnerAlias,
vkn_tckn AS TR_ElectronicDocTaxID,
trefnum AS TR_EDocTradeRefNumber,
cxdrnum AS TR_EDocCustomRegNumber,
reldat AS TR_EDocRealExportDate,
customer AS ShipToParty,
cast(net_amount as abap.dec(23,2)) AS TR_EDocTaxExclusiveAmount,
cast(tax_amount as abap.dec(23,2)) AS TR_ElectronicDocTaxAmount,
cast(gross_amount as abap.dec(23,2)) AS TR_EDocTaxInclusiveAmount,
currency AS SalesCurrency,
ship_to_party_name AS TR_EDocShipToPartyName,
cancelreason AS TR_EDocCancelReason,
canclreasncode AS TR_EDocCancelReasonCode,
_ElectronicDoc.ElectronicDocCompanyCode AS TR_ElectronicDocCompanyCode
FROM edotrereg
LEFT OUTER JOIN I_ElectronicDoc AS _ElectronicDoc ON edotrereg.edoc_guid = _ElectronicDoc.ElectronicDocUUID -- 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