/APE/C_TstDoc_UI

DDL: /APE/C_TSTDOC_UI SQL: /APE/C_TSTDOCUI Type: view CONSUMPTION

Test Document

/APE/C_TstDoc_UI is a Consumption CDS View that provides data about "Test Document" in SAP S/4HANA. It reads from 1 data source (/APE/I_TSTDOC_TP) and exposes 39 fields with key field TestDocumentKey. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
/APE/I_TSTDOC_TP /APE/I_TSTDOC_TP from

Associations (8)

CardinalityTargetAliasCondition
[0..*] /APE/C_TstDocStep_UI _TestStep $projection.TestDocumentKey = _TestStep.TestDocumentKey
[0..1] /APE/C_TestCase_VH _TestCaseVH $projection.TestCaseKey = _TestCaseVH.TestCaseKey
[0..*] /APE/C_TstDocProcess_UI _TestProc $projection.TestDocumentKey = _TestProc.TestDocumentKey
[0..1] /APE/C_TstCaseStatus_VH _TestCaseStatusVH $projection.TestCaseStatus = _TestCaseStatusVH.Value
[0..*] /APE/C_TstDocParameter_UI _TstDocParameter $projection.TestDocumentKey = _TstDocParameter.TestDocumentKey
[0..1] /APE/C_LogLevel_VH _LogLevel _LogLevel.Value = $projection.LogLevel
[0..*] /APE/C_DomainValueTexts _Archived _Archived.Domname = '/APE/D_ARCHIVE_INDICATOR' and _Archived.Domvalue = $projection.Archived
[0..1] /APE/C_TESTDOCAGGRLIST _TestAggrList $projection.TestDocumentKey = _TestAggrList.TestDocumentKey

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName /APE/C_TSTDOCUI view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Test Document view
ObjectModel.modelCategory #BUSINESS_OBJECT view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled false view
ObjectModel.draftEnabled false view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY TestDocumentKey db_key UUID
TestCaseKey test_case_uuid
TestCaseID test_case_id
TestDocNo test_doc_no
TestCaseDescription _TestCaseVH TestCaseDescription
TestCaseStatus test_case_status
TestCaseStatusDescription _TestCaseStatusVH Description Well Code Des.
ProcessIdKey _TestCaseVH ProcessIDKey
ProcessKey _TestCaseVH ProcessKey
ProcessID _TestCaseVH ProcessID Settlement ID
ProcessIDDescriptionLi _TestCaseVH ProcessIDDescription
ProcessIDDescription _TestCaseVH ProcessIDDescription
VersionKey _TestCaseVH VersionKey
Version
VersionDescriptionLi
VersionDescription
ProcessClusterKey
ProcCluster _TestCaseVH ProcCluster
ProcessClusterDescriptionLi _TestCaseVH ProcessClusterDescription
ProcessClusterDescription _TestCaseVH ProcessClusterDescription
clientNULLasExecutionTimeStamp
proc_cluster proc_cluster
auth_grp auth_grp AuthorizGroup
Archived archived Indicators
LogLevel log_level Problem Class
CreateBy created_by Version Created By
clientNULLasCreateAtFt
ChangeBy changed_by User Name
clientNULLasChangeAtFt
LastExecutedStep _TestAggrList test_step_seq_no
test_case_id test_case_id
_dataaging _dataaging Data Aging
_TestStep _TestStep
_TestProc _TestProc
_TstDocParameter _TstDocParameter
_TestCaseVH _TestCaseVH
_TestCaseStatusVH _TestCaseStatusVH
_LogLevel _LogLevel
_Archived _Archived

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 /APE/C_TstDoc_UI.
-- 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: /APE/C_TSTDOCUI

CREATE VIEW /APE/C_TstDoc_UI AS
SELECT
  db_key AS TestDocumentKey,
  test_case_uuid AS TestCaseKey,
  test_case_id AS TestCaseID,
  test_doc_no AS TestDocNo,
  _TestCaseVH.TestCaseDescription AS TestCaseDescription,
  test_case_status AS TestCaseStatus,
  _TestCaseStatusVH.Description AS TestCaseStatusDescription,
  _TestCaseVH.ProcessIDKey AS ProcessIdKey,
  _TestCaseVH.ProcessKey AS ProcessKey,
  _TestCaseVH.ProcessID AS ProcessID,
  _TestCaseVH.ProcessIDDescription AS ProcessIDDescriptionLi,
  _TestCaseVH.ProcessIDDescription AS ProcessIDDescription,
  _TestCaseVH.VersionKey AS VersionKey,
  _TestCaseVH._ProcessVH.Version AS Version,
  _TestCaseVH._ProcessVH.VersionDescription AS VersionDescriptionLi,
  _TestCaseVH._ProcessVH.VersionDescription AS VersionDescription,
  _TestCaseVH._ProcessVH.ProcessClusterKey AS ProcessClusterKey,
  _TestCaseVH.ProcCluster AS ProcCluster,
  _TestCaseVH.ProcessClusterDescription AS ProcessClusterDescriptionLi,
  _TestCaseVH.ProcessClusterDescription AS ProcessClusterDescription,
  tstmp_to_dats( changed_at, abap_user_timezone($session.user, $session.client,'NULL' ), $session.client, 'NULL' ) as ExecutionTimeStamp AS clientNULLasExecutionTimeStamp,
  proc_cluster,
  auth_grp,
  Archived,
  log_level AS LogLevel,
  created_by AS CreateBy,
  tstmp_to_dats( created_at, abap_user_timezone($session.user, $session.client,'NULL' ), $session.client, 'NULL' ) as CreateAtFt AS clientNULLasCreateAtFt,
  changed_by AS ChangeBy,
  tstmp_to_dats( changed_at, abap_user_timezone($session.user, $session.client,'NULL' ), $session.client, 'NULL' ) as ChangeAtFt AS clientNULLasChangeAtFt,
  _TestAggrList.test_step_seq_no AS LastExecutedStep,
  test_case_id
FROM /APE/I_TSTDOC_TP
LEFT OUTER JOIN /APE/C_TstDocStep_UI AS _TestStep ON TestDocumentKey = _TestStep.TestDocumentKey  -- association [0..*]
LEFT OUTER JOIN /APE/C_TestCase_VH AS _TestCaseVH ON TestCaseKey = _TestCaseVH.TestCaseKey  -- association [0..1]
LEFT OUTER JOIN /APE/C_TstDocProcess_UI AS _TestProc ON TestDocumentKey = _TestProc.TestDocumentKey  -- association [0..*]
LEFT OUTER JOIN /APE/C_TstCaseStatus_VH AS _TestCaseStatusVH ON TestCaseStatus = _TestCaseStatusVH.Value  -- association [0..1]
LEFT OUTER JOIN /APE/C_TstDocParameter_UI AS _TstDocParameter ON TestDocumentKey = _TstDocParameter.TestDocumentKey  -- association [0..*]
LEFT OUTER JOIN /APE/C_LogLevel_VH AS _LogLevel ON _LogLevel.Value = LogLevel  -- association [0..1]
LEFT OUTER JOIN /APE/C_DomainValueTexts AS _Archived ON _Archived.Domname = '/APE/D_ARCHIVE_INDICATOR' AND _Archived.Domvalue = Archived  -- association [0..*]
LEFT OUTER JOIN /APE/C_TESTDOCAGGRLIST AS _TestAggrList ON TestDocumentKey = _TestAggrList.TestDocumentKey  -- association [0..1]
;