CTSProjects
CTS Projects
CTSProjects is a CDS View that provides data about "CTS Projects" in SAP S/4HANA. It reads from 3 data sources (ctsproject, e070, e070c) and exposes 8 fields with key fields ExternalProjectSystem, ExternalProjectID, SourceClient, SourceSystem.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| ctsproject | project | from |
| e070 | request | inner |
| e070c | rqclient | left_outer |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CTSPROJECTSV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| EndUserText.label | CTS Projects | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ExternalProjectSystem | ctsproject | externalps | |
| KEY | ExternalProjectID | ctsproject | externalid | |
| KEY | SourceClient | ctsproject | srcclient | |
| KEY | SourceSystem | ctsproject | srcsystem | |
| Description | ctsproject | descriptn | ||
| RequestNumber | ctsproject | trkorr | ||
| RequestNumberSystemPrefix | ||||
| TargetClient | e070c | tarclient |
@AbapCatalog.sqlViewName: 'CTSPROJECTSV'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'CTS Projects'
// similar to CTSPROJ_F4 (all) or CTSPRJC_F4 (status <> R) but allows check of request client (TargetClient <> null)
define view CTSProjects
as select from ctsproject as project
inner join e070 as request on project.trkorr = request.trkorr
//and project.srcsystem = Left( request.trkorr, 3 )
and request.trfunction = 'G'
left outer join e070c as rqclient on project.trkorr = rqclient.trkorr
and project.srcclient = rqclient.client
// inner join tadir as ObjectDirectory on ObjectDirectory.pgmid = 'HEAD'
// and ObjectDirectory.object = 'SYST'
// and ObjectDirectory.obj_name = ' '
// and ObjectDirectory.srcsystem = project.srcsystem
{
key project.externalps as ExternalProjectSystem,
key project.externalid as ExternalProjectID,
key project.srcclient as SourceClient,
key project.srcsystem as SourceSystem,
project.descriptn as Description,
project.trkorr as RequestNumber,
Left( project.trkorr, 3 ) as RequestNumberSystemPrefix,
case request.trstatus when 'R' then ' '
when 'N' then ' '
when 'O' then ' '
else 'X' end as Modifiable,
rqclient.tarclient as TargetClient
}
//where
// (
// project.srcclient = $session.client
// )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"CTSPROJECT",
"E070",
"E070C"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA