P_SourcingProjectBiddingCount
P_SourcingProjectBiddingCount is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (R_SourcingProject) and exposes 4 fields with key field SourcingProjectUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_SourcingProject | R_SourcingProject | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourcingProjectUUID | SourcingProjectUUID | ||
| NumberOfBidders | ||||
| NumberOfBiddersWithRefusal | ||||
| BidderasNumberOfBiddersWithQuotation |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view entity P_SourcingProjectBiddingCount
as select from R_SourcingProject
{
key SourcingProjectUUID,
count( distinct _SrcgProjPubdSuplrListBP.SrcgProjPubdSuplrListUUID) as NumberOfBidders,
count( distinct _SrcgProjPubdSuplrListBP[SrcgProjParticipationStatus = '03'].SrcgProjPubdSuplrListUUID ) as NumberOfBiddersWithRefusal,
count( distinct _SourcingProjectQuotation[SrcgProjQtnLifecycleStatus = '02'
or SrcgProjQtnLifecycleStatus = '03'
or SrcgProjQtnLifecycleStatus = '08'].Bidder) as NumberOfBiddersWithQuotation
/*count( distinct _SourcingProjectQuotation[SrcgProjQtnLifecycleStatus = '02'
or SrcgProjQtnLifecycleStatus = '03'
or SrcgProjQtnLifecycleStatus = '08'].SourcingProjectQuotationUUID ) as NumberOfBiddersWithQuotation*/
}
group by
SourcingProjectUUID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SOURCINGPROJECTQUOTATION",
"I_SRCGPROJPUBDSUPLRLISTBP",
"R_SOURCINGPROJECT"
],
"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