R_TR_EDocIncgInvoiceIdentifier

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

eDocument TR Incoming Invoice Identifier

R_TR_EDocIncgInvoiceIdentifier is a Basic CDS View that provides data about "eDocument TR Incoming Invoice Identifier" in SAP S/4HANA. It reads from 1 data source (edotric) 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)

SourceAliasJoin Type
edotric edotric from

Associations (1)

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

Annotations (5)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label eDocument TR Incoming Invoice Identifier view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY ElectronicDocUUID edoc_guid eDocument GUID
TR_ElectronicDocUniqueID inv_uuid Turkey Invoice UUI
TR_ElectronicDocInvoiceID fit_tra_id Invoice ID
TR_EDocBusinessPartnerAlias identifier Snd. Alias
TR_ElectronicDocTaxID vkn_tckn VKN/TCKN
TR_EDocAcceptStatus app_sta Acceptance
TR_ElectronicDocEnvelopeID app_envelope_id Envelope ID
TR_EDocRejectionReasonText rej_reason Rejection Reason
TR_ElectronicDocRcvdDateTime rec_tmstmp Time Received
TR_ElectronicDocSupplierID supplier Supplier
TR_EDocTaxExclusiveAmount Tax-Exclusive Amount
TR_ElectronicDocTaxAmount VAT Amount Type
TR_EDocTaxInclusiveAmount Tax-Inclusive Amount
TR_EDocCurrencyKey currency Valuation Crcy
TR_ElectronicDocSupplierName supplier_name Supplier 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_EDocIncgInvoiceIdentifier.
-- 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_EDocIncgInvoiceIdentifier AS
SELECT
  edoc_guid AS ElectronicDocUUID,
  inv_uuid AS TR_ElectronicDocUniqueID,
  fit_tra_id AS TR_ElectronicDocInvoiceID,
  identifier AS TR_EDocBusinessPartnerAlias,
  vkn_tckn AS TR_ElectronicDocTaxID,
  app_sta AS TR_EDocAcceptStatus,
  app_envelope_id AS TR_ElectronicDocEnvelopeID,
  rej_reason AS TR_EDocRejectionReasonText,
  rec_tmstmp AS TR_ElectronicDocRcvdDateTime,
  supplier AS TR_ElectronicDocSupplierID,
  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,
  supplier_name AS TR_ElectronicDocSupplierName,
  cancelreason AS TR_EDocCancelReason,
  canclreasncode AS TR_EDocCancelReasonCode,
  _ElectronicDoc.ElectronicDocCompanyCode AS TR_ElectronicDocCompanyCode
FROM edotric
LEFT OUTER JOIN I_ElectronicDoc AS _ElectronicDoc ON edotric.edoc_guid = _ElectronicDoc.ElectronicDocUUID  -- association [1..1]
;