P_ChgDocUUIDConvertToCharLong

DDL: P_CHGDOCUUIDCONVERTTOCHARLONG SQL: PCHGDOCCCHAR32 Type: view BASIC

P_ChgDocUUIDConvertToCharLong is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (I_ChangeDocumentItem) and exposes 21 fields with key fields ChangeDocumentUUID, ChangeDocObjectClass, ChangeDocument, DatabaseTable, ChangeDocTableKey.

Data Sources (1)

SourceAliasJoin Type
I_ChangeDocumentItem I_ChangeDocumentItem from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PCHGDOCCCHAR32 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #BASIC view
VDM.private true view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY ChangeDocumentUUID Object Value
KEY ChangeDocObjectClass ChangeDocObjectClass Change Doc. Object
KEY ChangeDocument ChangeDocument Document Number
KEY DatabaseTable DatabaseTable Table Name
KEY ChangeDocTableKey ChangeDocTableKey Table Keys
KEY ChangeDocDatabaseTableField ChangeDocDatabaseTableField User
KEY ChangeDocItemChangeType ChangeDocItemChangeType Change Indicator
ChangeDocPreviousUnit ChangeDocPreviousUnit
ChangeDocNewUnit ChangeDocNewUnit
ChangeDocPreviousCurrency ChangeDocPreviousCurrency
ChangeDocNewCurrency ChangeDocNewCurrency
ChangeDocNewFieldValue ChangeDocNewFieldValue New Value
ChangeDocPreviousFieldValue ChangeDocPreviousFieldValue Old Value
CreatedByUser _ChangeDocument CreatedByUser User Name
CreationDate _ChangeDocument CreationDate Time Stamp
CreationTime _ChangeDocument CreationTime Time of Change
clientNULLasCreationDateTime
ChangeTransactionCode _ChangeDocument ChangeTransactionCode Change Tcode
ChangeDocChangeType _ChangeDocument ChangeDocChangeType
ChangeDocLanguage _ChangeDocument ChangeDocLanguage
_ChangeDocLanguage _ChangeDocument _ChangeDocLanguage

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_ChgDocUUIDConvertToCharLong.
-- 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: PCHGDOCCCHAR32

CREATE VIEW P_ChgDocUUIDConvertToCharLong AS
SELECT
  cast(ChangeDocObject as abap.char( 32 )) AS ChangeDocumentUUID,
  ChangeDocObjectClass,
  ChangeDocument,
  DatabaseTable,
  ChangeDocTableKey,
  ChangeDocDatabaseTableField,
  ChangeDocItemChangeType,
  ChangeDocPreviousUnit,
  ChangeDocNewUnit,
  ChangeDocPreviousCurrency,
  ChangeDocNewCurrency,
  ChangeDocNewFieldValue,
  ChangeDocPreviousFieldValue,
  _ChangeDocument.CreatedByUser AS CreatedByUser,
  _ChangeDocument.CreationDate AS CreationDate,
  _ChangeDocument.CreationTime AS CreationTime,
  DATS_TIMS_TO_TSTMP( _ChangeDocument.CreationDate, _ChangeDocument.CreationTime, abap_system_timezone( $session.client,'NULL'), $session.client, 'NULL') as CreationDateTime AS clientNULLasCreationDateTime,
  _ChangeDocument.ChangeTransactionCode AS ChangeTransactionCode,
  _ChangeDocument.ChangeDocChangeType AS ChangeDocChangeType,
  _ChangeDocument.ChangeDocLanguage AS ChangeDocLanguage,
  _ChangeDocument._ChangeDocLanguage AS _ChangeDocLanguage
FROM I_ChangeDocumentItem
;