I_PurContrItemExtReference

DDL: I_PURCONTRITEMEXTREFERENCE SQL: IPCITMEXTLINK Type: view BASIC Package: ODATA_MM_CTR_MAINTAIN

External References of Pur Contract Item

I_PurContrItemExtReference is a Basic CDS View that provides data about "External References of Pur Contract Item" in SAP S/4HANA. It reads from 1 data source (I_ExternalRefForPurgDoc) and exposes 8 fields with key fields PurchaseContract, PurchaseContractItem, LinkType, PurgExtRefSequenceNumber. Part of development package ODATA_MM_CTR_MAINTAIN.

Data Sources (1)

SourceAliasJoin Type
I_ExternalRefForPurgDoc I_ExternalRefForPurgDoc from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPCITMEXTLINK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label External References of Pur Contract Item view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract
KEY PurchaseContractItem
KEY LinkType LinkType Link Types for Doc.
KEY PurgExtRefSequenceNumber SequenceNumber Sort sequence
PurgDocExternalReference
PurgDocExternalReferenceItem
PurgDocExternalSystem PurgDocExternalSystem Ext. Ref. System
PurgDocExtReferenceNodeType PurgDocExtReferenceNodeType Ext. Doc. Type

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_PurContrItemExtReference.
-- 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: IPCITMEXTLINK

CREATE VIEW I_PurContrItemExtReference AS
SELECT
  cast(substring( PurchasingDocumentUniqueID ,1, 10 )as vdm_purchasecontract) AS PurchaseContract,
  cast(substring( PurchasingDocumentUniqueID ,11, 5 ) as vdm_purchasecontractitem) AS PurchaseContractItem,
  LinkType,
  SequenceNumber AS PurgExtRefSequenceNumber,
  cast(substring( PurgDocExternalReference ,1, 35 ) as mmpur_externalreferenceid) AS PurgDocExternalReference,
  cast(substring( PurgDocExternalReference ,36, 10 ) as mmpur_externalreferenceid) AS PurgDocExternalReferenceItem,
  PurgDocExternalSystem,
  PurgDocExtReferenceNodeType
FROM I_ExternalRefForPurgDoc
;