/SAM4U/BTL_L_FILE

DDL: /SAM4U/BTL_L_FILE SQL: /SAM4U/BTLQFILE Type: view

Raw File Storage

/SAM4U/BTL_L_FILE is a CDS View that provides data about "Raw File Storage" in SAP S/4HANA. It reads from 5 data sources (/SAM4U/BTL_L_USER, /SAM4U/BTL_L_USER, /sam4u/btl_dfile, /SAM4U/BTL_L_FILE_TYPE_TEXT, /SAM4U/BTL_L_USE_STATUS_TEXT) and exposes 18 fields with key fields FileGUID, FileTypeId.

Data Sources (5)

SourceAliasJoin Type
/SAM4U/BTL_L_USER ChangedUser left_outer
/SAM4U/BTL_L_USER CreatedUser left_outer
/sam4u/btl_dfile File from
/SAM4U/BTL_L_FILE_TYPE_TEXT FileType left_outer
/SAM4U/BTL_L_USE_STATUS_TEXT Status left_outer

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName /SAM4U/BTLQFILE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Raw File Storage view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY FileGUID /sam4u/btl_dfile file_id UUID
KEY FileTypeId /sam4u/btl_dfile file_type_id File Type ID
FileTypeText /SAM4U/BTL_L_FILE_TYPE_TEXT FileTypeText Short text
FileName /sam4u/btl_dfile file_name Uploaded File Name
StatusId /sam4u/btl_dfile status_id Trans Doc Status
StatusText /SAM4U/BTL_L_USE_STATUS_TEXT StatusText Short text
CreatedAt /sam4u/btl_dfile created_at Uploaded On
CreatedById /sam4u/btl_dfile created_by_id User Name
CreatedByName /SAM4U/BTL_L_USER UserFullName
ChangedAt /sam4u/btl_dfile changed_at Timestamp
ChangedById /sam4u/btl_dfile changed_by_id User Name
ChangedByName /SAM4U/BTL_L_USER UserFullName
IsArchived /sam4u/btl_dfile is_archived Archived
IsDeleted /sam4u/btl_dfile is_deleted Truth Value
IsFavorite /sam4u/btl_dfile is_favorite Favorite
FileValue /sam4u/btl_dfile file_value Binary String
ContentType /sam4u/btl_dfile content_type KTD Content Type
DatasetId /sam4u/btl_dfile datasetguid Object GUID

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 /SAM4U/BTL_L_FILE.
-- 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: /SAM4U/BTLQFILE

CREATE VIEW /SAM4U/BTL_L_FILE AS
SELECT
  File.file_id AS FileGUID,
  File.file_type_id AS FileTypeId,
  FileType.FileTypeText AS FileTypeText,
  File.file_name AS FileName,
  File.status_id AS StatusId,
  Status.StatusText AS StatusText,
  File.created_at AS CreatedAt,
  File.created_by_id AS CreatedById,
  CreatedUser.UserFullName AS CreatedByName,
  File.changed_at AS ChangedAt,
  File.changed_by_id AS ChangedById,
  ChangedUser.UserFullName AS ChangedByName,
  File.is_archived AS IsArchived,
  File.is_deleted AS IsDeleted,
  File.is_favorite AS IsFavorite,
  File.file_value AS FileValue,
  File.content_type AS ContentType,
  File.datasetguid AS DatasetId
FROM /sam4u/btl_dfile AS File
LEFT OUTER JOIN /SAM4U/BTL_L_FILE_TYPE_TEXT AS FileType ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN /SAM4U/BTL_L_USE_STATUS_TEXT AS Status ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN /SAM4U/BTL_L_USER AS CreatedUser ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN /SAM4U/BTL_L_USER AS ChangedUser ON /* join condition not captured in parsed metadata */
;