C_SupplierInvoiceUploadHistory

DDL: C_SUPPLIERINVOICEUPLOADHISTORY SQL: CSUPPLINVUPDHIST Type: view CONSUMPTION

History of Uploaded Files

C_SupplierInvoiceUploadHistory is a Consumption CDS View that provides data about "History of Uploaded Files" in SAP S/4HANA. It reads from 1 data source (I_SupplierInvoiceUploadHistory) and exposes 27 fields with key field SupplierInvoiceUploadFileUUID. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SupplierInvoiceUploadHistory _History from

Associations (7)

CardinalityTargetAliasCondition
[1..1] C_SupplierInvoiceUpload _Upload $projection.SupplierInvoiceUploadUUID = _Upload.SupplierInvoiceUploadUUID
[1..1] I_UpldFileLifeCycStatusText _LifecycleStatusText $projection.SuplrInvcUpldFileLifeCycStatus = _LifecycleStatusText.SuplrInvcUpldFileLifeCycStatus and _LifecycleStatusText.Language = $session.system_language
[0..1] C_UpdFileCycStatusValueHelp _UploadLifecycleStatusVH _UploadLifecycleStatusVH.SuplrInvcUpldFileLifeCycStatus = $projection.SuplrInvcUpldFileLifeCycStatus and _UploadLifecycleStatusVH.Language = $session.system_language
[0..1] C_MM_CompanyCodeValueHelp _CompanyCodeValueHelp _CompanyCodeValueHelp.CompanyCode = $projection.companycode
[0..1] C_SuplrInvcUpldCrtedByUsrVH _SuplrInvcUpldCrtedByUsrVH $projection.createdbyuser = _SuplrInvcUpldCrtedByUsrVH.CreatedByUser
[0..1] C_SuplrInvcUpldLastChgdByUsrVH _SuplrInvcUpldLastChgdByUsrVH $projection.lastchangedbyuser = _SuplrInvcUpldLastChgdByUsrVH.LastChangedByUser
[0..1] C_SuplrInvcUpldStatusValHelp _SuplrInvcUpldStatusValHelp _SuplrInvcUpldStatusValHelp.SupplierInvoiceUploadStatus = $projection.supplierinvoiceuploadstatus and _SuplrInvcUpldStatusValHelp.Language = $session.system_language

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CSUPPLINVUPDHIST view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #NONE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label History of Uploaded Files view
ObjectModel.representativeKey SupplierInvoiceUploadFileUUID view
UI.headerInfo.typeName Uploaded Supplier Invoice view
UI.headerInfo.typeNamePlural Uploaded Supplier Invoices view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Search.searchable true view
ObjectModel.text.control #ASSOCIATED_TEXT_UI_HIDDEN view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY SupplierInvoiceUploadFileUUID SupplierInvoiceUploadFileUUID UUID
UploadedSupplierInvoiceUUID I_SupplierInvoiceUploadHistory UploadedSupplierInvoiceUUID UUID
SupplierInvoiceUploadUUID I_SupplierInvoiceUploadHistory SupplierInvoiceUploadUUID UUID
FileUUID FileUUID UUID
SuplrInvcUploadDescription _UploadedInvoice SuplrInvcUploadDescription
SupplierInvoice _UploadedInvoice SupplierInvoice
FiscalYear _UploadedInvoice FiscalYear G/L Fiscal Year
RootDraftKey _UploadedInvoice RootDraftKey Supplier Invoice Draft
FileName FileName File Name
SuplrInvcUpldFileLifeCycStatus SuplrInvcUpldFileLifeCycStatus Workflow Status
CompanyCode _Upload CompanyCode Receiver Company Code
CreatedByUser _Upload CreatedByUser Created By
CreatedByUserDescription _Upload CreatedByUserDescription Description
LastChangedByUser _Upload LastChangedByUser Last Changed By
LastChangedByUserDescription _Upload LastChangedByUserDescription Description
SupplierInvoiceUploadStatus _Upload SupplierInvoiceUploadStatus
clientNULLasCreationDateTime Creation Date
clientNULLasLastChangeDateTime Last Change Date
_CompanyCodeValueHelp _CompanyCodeValueHelp
_UploadLifecycleStatusVH _UploadLifecycleStatusVH
_UploadedInvoice _UploadedInvoice
_Upload _Upload
_LifecycleStatusText _LifecycleStatusText
_UploadStatusText _Upload _UploadStatusText
_SuplrInvcUpldCrtedByUsrVH _SuplrInvcUpldCrtedByUsrVH
_SuplrInvcUpldLastChgdByUsrVH _SuplrInvcUpldLastChgdByUsrVH
_SuplrInvcUpldStatusValHelp _SuplrInvcUpldStatusValHelp

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 C_SupplierInvoiceUploadHistory.
-- 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.
-- SQL view name: CSUPPLINVUPDHIST

CREATE VIEW C_SupplierInvoiceUploadHistory AS
SELECT
  SupplierInvoiceUploadFileUUID,
  _History.UploadedSupplierInvoiceUUID AS UploadedSupplierInvoiceUUID,
  _History.SupplierInvoiceUploadUUID AS SupplierInvoiceUploadUUID,
  FileUUID,
  _UploadedInvoice.SuplrInvcUploadDescription AS SuplrInvcUploadDescription,
  _UploadedInvoice.SupplierInvoice AS SupplierInvoice,
  _UploadedInvoice.FiscalYear AS FiscalYear,
  _UploadedInvoice.RootDraftKey AS RootDraftKey,
  FileName,
  SuplrInvcUpldFileLifeCycStatus,
  _Upload.CompanyCode AS CompanyCode,
  _Upload.CreatedByUser AS CreatedByUser,
  _Upload.CreatedByUserDescription AS CreatedByUserDescription,
  _Upload.LastChangedByUser AS LastChangedByUser,
  _Upload.LastChangedByUserDescription AS LastChangedByUserDescription,
  _Upload.SupplierInvoiceUploadStatus AS SupplierInvoiceUploadStatus,
  tstmp_to_dats( _Upload.CreationDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as CreationDateTime AS clientNULLasCreationDateTime,
  tstmp_to_dats( _Upload.LastChangeDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as LastChangeDateTime AS clientNULLasLastChangeDateTime,
  _Upload._UploadStatusText AS _UploadStatusText
FROM I_SupplierInvoiceUploadHistory AS _History
LEFT OUTER JOIN C_SupplierInvoiceUpload AS _Upload ON SupplierInvoiceUploadUUID = _Upload.SupplierInvoiceUploadUUID  -- association [1..1]
LEFT OUTER JOIN I_UpldFileLifeCycStatusText AS _LifecycleStatusText ON SuplrInvcUpldFileLifeCycStatus = _LifecycleStatusText.SuplrInvcUpldFileLifeCycStatus AND _LifecycleStatusText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN C_UpdFileCycStatusValueHelp AS _UploadLifecycleStatusVH ON _UploadLifecycleStatusVH.SuplrInvcUpldFileLifeCycStatus = SuplrInvcUpldFileLifeCycStatus AND _UploadLifecycleStatusVH.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_MM_CompanyCodeValueHelp AS _CompanyCodeValueHelp ON _CompanyCodeValueHelp.CompanyCode = companycode  -- association [0..1]
LEFT OUTER JOIN C_SuplrInvcUpldCrtedByUsrVH AS _SuplrInvcUpldCrtedByUsrVH ON createdbyuser = _SuplrInvcUpldCrtedByUsrVH.CreatedByUser  -- association [0..1]
LEFT OUTER JOIN C_SuplrInvcUpldLastChgdByUsrVH AS _SuplrInvcUpldLastChgdByUsrVH ON lastchangedbyuser = _SuplrInvcUpldLastChgdByUsrVH.LastChangedByUser  -- association [0..1]
LEFT OUTER JOIN C_SuplrInvcUpldStatusValHelp AS _SuplrInvcUpldStatusValHelp ON _SuplrInvcUpldStatusValHelp.SupplierInvoiceUploadStatus = supplierinvoiceuploadstatus AND _SuplrInvcUpldStatusValHelp.Language = $session.system_language  -- association [0..1]
;