R_SG_ElectronicDocInvoice

DDL: R_SG_ELECTRONICDOCINVOICE Type: view_entity BASIC Package: GLO-EDO-SG

Singapore Customer Invoice: Submission to Tax Authority

R_SG_ElectronicDocInvoice is a Basic CDS View that provides data about "Singapore Customer Invoice: Submission to Tax Authority" in SAP S/4HANA. It reads from 1 data source (edosgc5inv) and exposes 7 fields with key field ElectronicDocUUID. Part of development package GLO-EDO-SG.

Data Sources (1)

SourceAliasJoin Type
edosgc5inv edosgc5inv from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Singapore Customer Invoice: Submission to Tax Authority view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ElectronicDocUUID edoc_guid eDocument GUID
SG_ElectronicDocOutDataType data_type Type
SG_ElectronicDocOutAcknID acknowledgement_id
SG_ElectronicDocOutTransmnID
SG_ElectronicDocOutgoingID peppol_id
SG_ElectronicDocOutDocID UUID
SG_ElectronicDocOutB2CCat b2c_category

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_SG_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_SG_ElectronicDocInvoice AS
SELECT
  edoc_guid AS ElectronicDocUUID,
  data_type AS SG_ElectronicDocOutDataType,
  acknowledgement_id AS SG_ElectronicDocOutAcknID,
  cast(transmission_uuid as edoc_sgc5_tran_id_dis ) AS SG_ElectronicDocOutTransmnID,
  peppol_id AS SG_ElectronicDocOutgoingID,
  cast(document_uuid as edoc_sgc5_doc_id_dis ) AS SG_ElectronicDocOutDocID,
  b2c_category AS SG_ElectronicDocOutB2CCat
FROM edosgc5inv
;