A_PurgCat

DDL: A_PURGCAT SQL: APURGCATRT Type: view BASIC

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)

SourceAliasJoin Type
I_PurchasingCategory I_PurchasingCategory from

Associations (7)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;