R_GR_ElectronicDocInvoice

DDL: R_GR_ELECTRONICDOCINVOICE Type: view_entity BASIC

eDocument Greece: Country/Region Specific Data

R_GR_ElectronicDocInvoice is a Basic CDS View that provides data about "eDocument Greece: Country/Region Specific Data" in SAP S/4HANA. It reads from 1 data source (edogrinv) and exposes 22 fields with key field ElectronicDocUUID.

Data Sources (1)

SourceAliasJoin Type
edogrinv edogrinv from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label eDocument Greece: Country/Region Specific Data 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 #TRANSACTIONAL view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY ElectronicDocUUID edoc_guid eDocument GUID
GR_ElectronicDocRefDocNumber legaldoc Reference
GR_ElectronicDocPrintTaskCode prntsk Print Task Code
GR_ElectronicDocSeriesPrefix stext Text
GR_ElectronicDocumentSeries series Series ID
GR_ElectronicDocLegalNumber numbr Counter
GR_PrintDate prdate Approved on
GR_PrintTime prtime Time
GR_MovePurpose move_purpose
GR_ElectronicDocUniqueID inv_uid UID
GR_ElectronicDocMarkID inv_mark MARK
GR_ElectronicDocClfnMarkID classif_mark Classifcation MARK
GR_ElectronicDocCancelMarkID cancel_mark Can Mark
GR_ElectronicDocCustVATID customer_vat_reg_id Customer VAT Id
GR_ElectronicDocIssueDate invoice_date Tax Inv Date
GR_ElectronicDocInvoiceType invoice_type SAF-T Document Type
GR_ElectronicDocSupplierVATID vendor_vat_reg_id Vendor VAT Id
GR_ElectronicDocBranchID issuer_branch_id branch id
GR_ElectronicDocGrossAmount total_gross_amount amount
GR_ElectronicDocPayableAmount total_payable_amount amount
GR_ElectronicDocNetAmount total_net_amount amount
GR_ElectronicDocFuelInvoice fuel_invoice Fuel Invoice

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_GR_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.

CREATE VIEW R_GR_ElectronicDocInvoice AS
SELECT
  edoc_guid AS ElectronicDocUUID,
  legaldoc AS GR_ElectronicDocRefDocNumber,
  prntsk AS GR_ElectronicDocPrintTaskCode,
  stext AS GR_ElectronicDocSeriesPrefix,
  series AS GR_ElectronicDocumentSeries,
  numbr AS GR_ElectronicDocLegalNumber,
  prdate AS GR_PrintDate,
  prtime AS GR_PrintTime,
  move_purpose AS GR_MovePurpose,
  inv_uid AS GR_ElectronicDocUniqueID,
  inv_mark AS GR_ElectronicDocMarkID,
  classif_mark AS GR_ElectronicDocClfnMarkID,
  cancel_mark AS GR_ElectronicDocCancelMarkID,
  customer_vat_reg_id AS GR_ElectronicDocCustVATID,
  invoice_date AS GR_ElectronicDocIssueDate,
  invoice_type AS GR_ElectronicDocInvoiceType,
  vendor_vat_reg_id AS GR_ElectronicDocSupplierVATID,
  issuer_branch_id AS GR_ElectronicDocBranchID,
  total_gross_amount AS GR_ElectronicDocGrossAmount,
  total_payable_amount AS GR_ElectronicDocPayableAmount,
  total_net_amount AS GR_ElectronicDocNetAmount,
  fuel_invoice AS GR_ElectronicDocFuelInvoice
FROM edogrinv
;