APS_COM_CU_A4C_QUERY
Query Comm. User
APS_COM_CU_A4C_QUERY is a CDS View that provides data about "Query Comm. User" in SAP S/4HANA. It reads from 1 data source (usr02) and exposes 12 fields with key field UserID. It has 2 associations to related views. Part of development package SR_APS_COM_PUB_A4C.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| usr02 | usr02 | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | APS_IAM_CUSR_CHANGED_BY | _LastChangedInfo | _LastChangedInfo.UserID = $projection.UserID |
| [0..1] | usr_extuid | _usrEXTUID | _usrEXTUID.bname = $projection.UserID and _usrEXTUID.extuid_type = 'PA' |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Query Comm. User | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | UserID | usr21 | bname | User name |
| UserName | usrefus | useralias | Alias | |
| Description | usr21 | techdesc | Description | |
| LockStatus | usr02 | uflag | User Lock | |
| UserGroup | usr02 | class | User Group | |
| CreationUser | usr02 | aname | Creator | |
| CreationDate | usr02 | erdat | Entered On | |
| LastLogonDate | usr02 | trdat | Transfer Date | |
| LastLogonTime | usr02 | ltime | Time received | |
| LastChangedUser | _LastChangedInfo | LastChangedUser | ||
| LastChangedTimestamp | _LastChangedInfo | LastChangedTimestamp | ||
| ExternalUserID | _usrEXTUID | extuid | External UID |
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 APS_COM_CU_A4C_QUERY.
-- 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 APS_COM_CU_A4C_QUERY AS
SELECT
usr21.bname AS UserID,
usrefus.useralias AS UserName,
usr21.techdesc AS Description,
usr02.uflag AS LockStatus,
usr02.class AS UserGroup,
usr02.aname AS CreationUser,
usr02.erdat AS CreationDate,
usr02.trdat AS LastLogonDate,
usr02.ltime AS LastLogonTime,
_LastChangedInfo.LastChangedUser AS LastChangedUser,
_LastChangedInfo.LastChangedTimestamp AS LastChangedTimestamp,
_usrEXTUID.extuid AS ExternalUserID
FROM usr02
LEFT OUTER JOIN APS_IAM_CUSR_CHANGED_BY AS _LastChangedInfo ON _LastChangedInfo.UserID = UserID -- association [0..1]
LEFT OUTER JOIN usr_extuid AS _usrEXTUID ON _usrEXTUID.bname = UserID AND _usrEXTUID.extuid_type = 'PA' -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA