P_TradingContractSnapshot

DDL: P_TRADINGCONTRACTSNAPSHOT SQL: PSNPHEADER Type: view BASIC

P_TradingContractSnapshot is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (/accgo/t_snphd1) and exposes 8 fields with key fields TradingContract, DocumentCategory, TradeContractSnapshotDateTime.

Data Sources (1)

SourceAliasJoin Type
/accgo/t_snphd1 SnapshotHeader from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSNPHEADER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY TradingContract document_id Snapshot ID
KEY DocumentCategory application UI Application
KEY TradeContractSnapshotDateTime timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
TradingContractExternalID tkonn_ex Ext. Identifier
ApplicationStatus btbsta Only Copy Appr.TC
TradingContractType tctyp Contract Type
TradingContractSoldToParty kunnr Stock customer
TradingContractSDDocCurrency sdwrs Doc. Currency

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_TradingContractSnapshot.
-- 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: PSNPHEADER

CREATE VIEW P_TradingContractSnapshot AS
SELECT
  document_id AS TradingContract,
  application AS DocumentCategory,
  timestamp AS TradeContractSnapshotDateTime,
  tkonn_ex AS TradingContractExternalID,
  btbsta AS ApplicationStatus,
  tctyp AS TradingContractType,
  kunnr AS TradingContractSoldToParty,
  sdwrs AS TradingContractSDDocCurrency
FROM /accgo/t_snphd1 AS SnapshotHeader
;