I_PurchaseReqnChgDocItmAPI01

DDL: I_PURCHASEREQNCHGDOCITMAPI01 Type: view_entity BASIC

Change Doc Item for Purchase Requisition

I_PurchaseReqnChgDocItmAPI01 (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Sourcing & Procurement

I_PurchaseReqnChgDocItmAPI01 is a Basic CDS View that provides data about "Change Doc Item for Purchase Requisition" in SAP S/4HANA. It reads from 1 data source (I_PurchaseReqnChgDocItm) and exposes 14 fields with key fields ChangeDocObject, ChangeDocObjectClass, ChangeDocument, DatabaseTable, ChangeDocTableKey. It has 1 association to related views.

SAP Help Documentation

CategoryCDS Views for Purchase Requisitions
Purpose
This CDS view is used to record the changes in a change document item. A change document can contain several change document items, so that several changes within a purchase requisition can be recorded at the same time. This CDS view provides the data to answer the following business questions: What changes have been made to the purchase requisition items? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Note You need privileged access for this CDS view, which means, that you must develop your own implementation with your own authorization concept.

Structure
Parameters The parameters of the CDS view are as follows: The main parameters of the CDS view are as follows: ChangeDocObject (key) used to specify the change document object. ChangeDocObjectClass (key) used to specify the class of the change document object. ChangeDocument (key) used to specify the change document. DatabaseTable (key) used to specify the database table. ChangeDocTableKey (key) used to specify the key of the change document table. ChangeDocDatabaseTableField (key) used to specify the table field of the change document database. ChangeDocItemChangeType (key) used to specify the change type of the change document item.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-REQ
CapabilitiesData Source for Defining CDS Entities, Data Source in SQL Select
PackageSourcing & Procurement for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view is used to record the changes in a change document item. A change document can contain several change document items, so that several changes within a purchase requisition can be recorded at the same time.</p> This CDS view provides the data to answer the following business questions:<ul> <li><p>What changes have been made to the purchase requisition items? </p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_PurchaseReqnChgDocItm I_PurchaseReqnChgDocItm from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PurchaseReqnChgDocAPI01 _PurchaseReqnChgDocAPI01 $projection.ChangeDocument = _PurchaseReqnChgDocAPI01.ChangeDocument and $projection.ChangeDocObject = _PurchaseReqnChgDocAPI01.ChangeDocObject and $projection.ChangeDocObjectClass = _PurchaseReqnChgDocAPI01.ChangeDocObjectClass

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
EndUserText.label Change Doc Item for Purchase Requisition view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY ChangeDocObject ChangeDocObject Object Value
KEY ChangeDocObjectClass ChangeDocObjectClass Change Doc. Object
KEY ChangeDocument ChangeDocument Change Number of Document
KEY DatabaseTable DatabaseTable Table Name
KEY ChangeDocTableKey ChangeDocTableKey Key of Modified Table Row
KEY ChangeDocDatabaseTableField ChangeDocDatabaseTableField Field Name
KEY ChangeDocItemChangeType ChangeDocItemChangeType Type of Change
ChangeDocPreviousUnit ChangeDocPreviousUnit Change Document Previous Unit
ChangeDocNewUnit ChangeDocNewUnit Change Document New Unit
ChangeDocPreviousCurrency ChangeDocPreviousCurrency Change Document Previous Currency
ChangeDocNewCurrency ChangeDocNewCurrency Change Document New Currency
ChangeDocNewFieldValue ChangeDocNewFieldValue New Content of Changed Field
ChangeDocPreviousFieldValue ChangeDocPreviousFieldValue Old Content of Changed Field
_PurchaseReqnChgDocAPI01 _PurchaseReqnChgDocAPI01

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 I_PurchaseReqnChgDocItmAPI01.
-- 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.

CREATE VIEW I_PurchaseReqnChgDocItmAPI01 AS
SELECT
  ChangeDocObject,
  ChangeDocObjectClass,
  ChangeDocument,
  DatabaseTable,
  ChangeDocTableKey,
  ChangeDocDatabaseTableField,
  ChangeDocItemChangeType,
  ChangeDocPreviousUnit,
  ChangeDocNewUnit,
  ChangeDocPreviousCurrency,
  ChangeDocNewCurrency,
  ChangeDocNewFieldValue,
  ChangeDocPreviousFieldValue
FROM I_PurchaseReqnChgDocItm
LEFT OUTER JOIN I_PurchaseReqnChgDocAPI01 AS _PurchaseReqnChgDocAPI01 ON ChangeDocument = _PurchaseReqnChgDocAPI01.ChangeDocument AND ChangeDocObject = _PurchaseReqnChgDocAPI01.ChangeDocObject AND ChangeDocObjectClass = _PurchaseReqnChgDocAPI01.ChangeDocObjectClass  -- association [1..1]
;