P_MasterDataAttchLinkCount
Number of Attachments
P_MasterDataAttchLinkCount is a Composite CDS View that provides data about "Number of Attachments" in SAP S/4HANA. It reads from 1 data source (I_MasterDataAttachmentLinkTP) and exposes 3 fields with key fields MasterDataAttachmentObjectType, MasterDataAttachmentObjectID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MasterDataAttachmentLinkTP | I_MasterDataAttachmentLinkTP | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Number of Attachments | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MasterDataAttachmentObjectType | MasterDataAttachmentObjectType | ||
| KEY | MasterDataAttachmentObjectID | MasterDataAttachmentObjectID | ||
| NumberOfAttachments |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Number of Attachments'
@Metadata.ignorePropagatedAnnotations: true
@VDM.private:true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
define view entity P_MasterDataAttchLinkCount
as select from I_MasterDataAttachmentLinkTP
{
key MasterDataAttachmentObjectType,
key MasterDataAttachmentObjectID,
count( * ) as NumberOfAttachments
}
group by
MasterDataAttachmentObjectType,
MasterDataAttachmentObjectID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MASTERDATAATTACHMENTLINKTP"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"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