R_TR_EDocInvoiceIdentifier

DDL: R_TR_EDOCINVOICEIDENTIFIER Type: view_entity BASIC Package: GLO-EDO-TR

eDocument Turkey Invoice Identifiers

R_TR_EDocInvoiceIdentifier is a Basic CDS View that provides data about "eDocument Turkey Invoice Identifiers" in SAP S/4HANA. It reads from 1 data source (edotrinv) and exposes 15 fields with key field ElectronicDocUUID. It has 1 association to related views. Part of development package GLO-EDO-TR.

Data Sources (1)

SourceAliasJoin Type
edotrinv edotrinv from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ElectronicDoc _ElectronicDoc edotrinv.edoc_guid = _ElectronicDoc.ElectronicDocUUID

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label eDocument Turkey Invoice Identifiers view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY ElectronicDocUUID edoc_guid eDocument GUID
TR_ElectronicDocEnvelopeID fit_envelope_id Envelope ID
TR_ElectronicDocInvoiceID fit_tra_id Invoice ID
TR_ElectronicDocUniqueID uuid Waste Partner UUID
TR_EDocBusinessPartnerAlias identifier Snd. Alias
TR_ElectronicDocTaxID vkn_tckn VKN/TCKN
TR_ElectronicDocBusPartner business_partner Busn. Partner
TR_EDocTaxExclusiveAmount Tax-Exclusive Amount
TR_ElectronicDocTaxAmount VAT Amount Type
TR_EDocTaxInclusiveAmount Tax-Inclusive Amount
TR_EDocCurrencyKey currency Valuation Crcy
TR_EDocBusPartnerName business_partner_name Bus. Partner 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_EDocInvoiceIdentifier.
-- 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_EDocInvoiceIdentifier AS
SELECT
  edoc_guid AS ElectronicDocUUID,
  fit_envelope_id AS TR_ElectronicDocEnvelopeID,
  fit_tra_id AS TR_ElectronicDocInvoiceID,
  uuid AS TR_ElectronicDocUniqueID,
  identifier AS TR_EDocBusinessPartnerAlias,
  vkn_tckn AS TR_ElectronicDocTaxID,
  business_partner AS TR_ElectronicDocBusPartner,
  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 TR_EDocCurrencyKey,
  business_partner_name AS TR_EDocBusPartnerName,
  cancelreason AS TR_EDocCancelReason,
  canclreasncode AS TR_EDocCancelReasonCode,
  _ElectronicDoc.ElectronicDocCompanyCode AS TR_ElectronicDocCompanyCode
FROM edotrinv
LEFT OUTER JOIN I_ElectronicDoc AS _ElectronicDoc ON edotrinv.edoc_guid = _ElectronicDoc.ElectronicDocUUID  -- association [1..1]
;