I_PurgInfoRecdOrgPOText

DDL: I_PURGINFORECDORGPOTEXT Type: view BASIC

Purchase Info Record PO - Text

I_PurgInfoRecdOrgPOText is a Basic CDS View that provides data about "Purchase Info Record PO - Text" in SAP S/4HANA. It reads from 1 data source (I_Text_Templates) and exposes 11 fields with key fields Language, DocumentText, TechnicalObjectType, ArchObjectNumber, PurchasingInfoRecord. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Text_Templates I_Text_Templates from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_PurchasingInfoRecord _PurchasingInfoRecord _PurchasingInfoRecord.PurchasingInfoRecord = $projection.PurchasingInfoRecord
[1..1] I_PurgInfoRecdOrgPlantData _PurgInfoRecdOrgPlantData _PurgInfoRecdOrgPlantData.PurchasingInfoRecord = $projection.PurchasingInfoRecord and _PurgInfoRecdOrgPlantData.PurchasingInfoRecordCategory = $projection.PurchasingInfoRecordCategory and _PurgInfoRecdOrgPlantData.PurchasingOrganization = $projection.PurchasingOrganization and _PurgInfoRecdOrgPlantData.Plant = $projection.Plant

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IINFORECORGPOTXT view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Purchase Info Record PO - Text view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY Language Language Report Text Language
KEY DocumentText DocumentText Text ID
KEY TechnicalObjectType TechnicalObjectType Text object
KEY ArchObjectNumber ArchitecturalObjectNumber Text Name
KEY PurchasingInfoRecord
KEY PurchasingOrganization
KEY PurchasingInfoRecordCategory
KEY Plant
NoteDescription NoteDescription Long Text
_PurchasingInfoRecord _PurchasingInfoRecord
_PurgInfoRecdOrgPlantData _PurgInfoRecdOrgPlantData

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_PurgInfoRecdOrgPOText.
-- 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_PurgInfoRecdOrgPOText AS
SELECT
  Language,
  DocumentText,
  TechnicalObjectType,
  ArchitecturalObjectNumber AS ArchObjectNumber,
  cast (substring(ArchitecturalObjectNumber,1,10) as infnr ) AS PurchasingInfoRecord,
  cast (substring(ArchitecturalObjectNumber,11,14) as ekorg ) AS PurchasingOrganization,
  cast (substring(ArchitecturalObjectNumber,15,15) as esokz ) AS PurchasingInfoRecordCategory,
  cast (substring(ArchitecturalObjectNumber,16,19) as ewerk ) AS Plant,
  NoteDescription
FROM I_Text_Templates
LEFT OUTER JOIN I_PurchasingInfoRecord AS _PurchasingInfoRecord ON _PurchasingInfoRecord.PurchasingInfoRecord = PurchasingInfoRecord  -- association [1..1]
LEFT OUTER JOIN I_PurgInfoRecdOrgPlantData AS _PurgInfoRecdOrgPlantData ON _PurgInfoRecdOrgPlantData.PurchasingInfoRecord = PurchasingInfoRecord AND _PurgInfoRecdOrgPlantData.PurchasingInfoRecordCategory = PurchasingInfoRecordCategory AND _PurgInfoRecdOrgPlantData.PurchasingOrganization = PurchasingOrganization AND _PurgInfoRecdOrgPlantData.Plant = Plant  -- association [1..1]
;