P_BPProtectedAddrUsageCount
P_BPProtectedAddrUsageCount is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (but021_fs, tb008s, tb008u) and exposes 3 fields with key fields BusinessPartner, AddressID.
Data Sources (3)
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PBPPROADRUC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
@AbapCatalog.sqlViewName: 'PBPPROADRUC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AccessControl.personalData.blocking: #REQUIRED
define view P_BPProtectedAddrUsageCount
//as select from but020
as select from but021_fs
//left outer join but021_fs on but020.partner = but021_fs.partner
// and but020.addrnumber = but021_fs.addrnumber
// and but020.nation = ' '
left outer join tb008u on tb008u.adr_kind = but021_fs.adr_kind
left outer join tb008s on tb008s.operation = tb008u.operation
{
key but021_fs.partner as BusinessPartner,
key but021_fs.addrnumber as AddressID,
sum(case when tb008s.protect = 'X' then 1 else 0 end) as BPProtectedAddrUsageCount
}
group by but021_fs.partner, but021_fs.addrnumber
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"BUT021_FS",
"TB008S",
"TB008U"
],
"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