I_PurContrVersRelevance
Purchase Contract Version Relevance Flag
I_PurContrVersRelevance is a Basic CDS View that provides data about "Purchase Contract Version Relevance Flag" in SAP S/4HANA. It reads from 1 data source (ekko) and exposes 1 field with key field PurchaseContract.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ekko | ekko | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPURCHASECTRVERS | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Purchase Contract Version Relevance Flag | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | PurchaseContract | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (1)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContract | ekko | ebeln |
@AbapCatalog.sqlViewName: 'IPURCHASECTRVERS'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Purchase Contract Version Relevance Flag'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'PurchaseContract'
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@VDM.viewType: #BASIC
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #L
define view I_PurContrVersRelevance as select from ekko
left outer to one join ekko as chgvers on ekko.active_id = chgvers.active_id and
( ( chgvers.cr_stat = '2' and chgvers.revno = '00000001' ) or ( chgvers.cr_stat = '4' and chgvers.revno = '00000000' ) )
left outer to one join mmpur_vers_cdocu as cust on ekko.bstyp = cust.bstyp and
ekko.bsart = cust.bsart and
ekko.ekorg = cust.ekorg and
cust.activ = 'X'
left outer to one join t16ca as oldvers on ekko.bstyp = oldvers.bstyp and
ekko.bsart = oldvers.bsart and
ekko.ekorg = oldvers.ekorg
{
key ekko.ebeln as PurchaseContract,
case when ekko.revno > '00000000' and chgvers.ebeln is not initial
then 'X'
when ekko.cr_stat <> ''
then 'X'
when cust.activ is not initial and ekko.revno = '00000000' and ekko.procstat <> '01' and ( oldvers.activ = '' or oldvers.activ is null )
then 'X'
else ''
end as VersionIsEnabled
}
where ekko.bstyp = 'K' and
( ekko.cr_stat = '' or ekko.cr_stat = '2' )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"EKKO",
"MMPUR_VERS_CDOCU",
"T16CA"
],
"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