A_PurgCat
Purchasing Category
A_PurgCat is a Basic CDS View that provides data about "Purchasing Category" in SAP S/4HANA. It reads from 1 data source (I_PurchasingCategory) and exposes 17 fields with key field PurgCatUUID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingCategory | I_PurchasingCategory | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | A_PurgCatDescription | _PurgCatDescription | $projection.PurgCatUUID = _PurgCatDescription.PurgCatUUID |
| [0..*] | A_PurgCatPlannedSpend | _PurgCatPlannedSpend | $projection.PurgCatUUID = _PurgCatPlannedSpend.PurgCatUUID |
| [0..*] | A_PurgCatMaterialGroup | _PurgCatMaterialGroup | $projection.PurgCatUUID = _PurgCatMaterialGroup.PurgCatUUID |
| [1..1] | A_PurgCatPurchaserResponsible | _PurgCatPurchaserResponsible | $projection.PurgCatUUID = _PurgCatPurchaserResponsible.PurgCatUUID |
| [0..*] | A_PurgCatSupplier | _PurgCatSupplier | $projection.PurgCatUUID = _PurgCatSupplier.PurgCatUUID |
| [0..*] | A_PurgCatTranslationStatus | _PurgCatTranslationStatus | $projection.PurgCatUUID = _PurgCatTranslationStatus.PurgCatUUID |
| [0..*] | A_PurgCatMember | _PurgCatMember | $projection.PurgCatUUID = _PurgCatMember.PurgCatUUID |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | APURGCATRT | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Purchasing Category | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | false | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurgCatUUID | PurgCatUUID | ||
| PurchasingCategory | PurchasingCategory | Purchasing Category | ||
| PurgCatName | PurgCatName | Purchasing Cat. Name | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| CreatedByUser | User Name | |||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| LastChangedByUser | User Name | |||
| Language | Language | Report Text Language | ||
| PurgCatIsInactive | PurgCatIsInactive | |||
| PurgCatTranslationOvrlStatus | PurgCatTranslationOvrlStatus | |||
| _PurgCatDescription | _PurgCatDescription | |||
| _PurgCatPlannedSpend | _PurgCatPlannedSpend | |||
| _PurgCatMaterialGroup | _PurgCatMaterialGroup | |||
| _PurgCatPurchaserResponsible | _PurgCatPurchaserResponsible | |||
| _PurgCatSupplier | _PurgCatSupplier | |||
| _PurgCatTranslationStatus | _PurgCatTranslationStatus | |||
| _PurgCatMember | _PurgCatMember |
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 A_PurgCat.
-- 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.
-- SQL view name: APURGCATRT
CREATE VIEW A_PurgCat AS
SELECT
PurgCatUUID,
PurchasingCategory,
PurgCatName,
CreationDateTime,
cast(CreatedByUser as /srmsmc/created_by ) AS CreatedByUser,
LastChangeDateTime,
cast(LastChangedByUser as /srmsmc/last_changed_by ) AS LastChangedByUser,
Language,
PurgCatIsInactive,
PurgCatTranslationOvrlStatus
FROM I_PurchasingCategory
LEFT OUTER JOIN A_PurgCatDescription AS _PurgCatDescription ON PurgCatUUID = _PurgCatDescription.PurgCatUUID -- association [1..*]
LEFT OUTER JOIN A_PurgCatPlannedSpend AS _PurgCatPlannedSpend ON PurgCatUUID = _PurgCatPlannedSpend.PurgCatUUID -- association [0..*]
LEFT OUTER JOIN A_PurgCatMaterialGroup AS _PurgCatMaterialGroup ON PurgCatUUID = _PurgCatMaterialGroup.PurgCatUUID -- association [0..*]
LEFT OUTER JOIN A_PurgCatPurchaserResponsible AS _PurgCatPurchaserResponsible ON PurgCatUUID = _PurgCatPurchaserResponsible.PurgCatUUID -- association [1..1]
LEFT OUTER JOIN A_PurgCatSupplier AS _PurgCatSupplier ON PurgCatUUID = _PurgCatSupplier.PurgCatUUID -- association [0..*]
LEFT OUTER JOIN A_PurgCatTranslationStatus AS _PurgCatTranslationStatus ON PurgCatUUID = _PurgCatTranslationStatus.PurgCatUUID -- association [0..*]
LEFT OUTER JOIN A_PurgCatMember AS _PurgCatMember ON PurgCatUUID = _PurgCatMember.PurgCatUUID -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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