P_SOTFieldCatalog_STO

DDL: P_SOTFIELDCATALOG_STO SQL: PSOTFC_STO Type: view COMPOSITE Package: ATP_SOT_COMMON

Private source of STO documents for SOT in aATP

P_SOTFieldCatalog_STO is a Composite CDS View that provides data about "Private source of STO documents for SOT in aATP" in SAP S/4HANA. It reads from 1 data source (I_StockTransptOrdScheduleLine) and exposes 5 fields with key fields ATPRelevantDocument, ATPRelevantDocumentItem, ATPRelevantDocScheduleLine, ATPRelevantDocumentCategory. Part of development package ATP_SOT_COMMON.

Data Sources (1)

SourceAliasJoin Type
I_StockTransptOrdScheduleLine I_StockTransptOrdScheduleLine from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PSOTFC_STO view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ATPRelevantDocument PurchaseOrder Purchasing Document
KEY ATPRelevantDocumentItem
KEY ATPRelevantDocScheduleLine ScheduleLine Schedule Line
KEY ATPRelevantDocumentCategory
RequestedDeliveryDate ScheduleLineDeliveryDate Delivery Date

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 P_SOTFieldCatalog_STO.
-- 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: PSOTFC_STO

CREATE VIEW P_SOTFieldCatalog_STO AS
SELECT
  PurchaseOrder AS ATPRelevantDocument,
  concat('0', PurchaseOrderItem ) AS ATPRelevantDocumentItem,
  ScheduleLine AS ATPRelevantDocScheduleLine,
  cast('U1'as atpcat) AS ATPRelevantDocumentCategory,
  ScheduleLineDeliveryDate AS RequestedDeliveryDate
FROM I_StockTransptOrdScheduleLine
;