P_Producttextswd

DDL: P_PRODUCTTEXTSWD SQL: PPRDTEXTSWD Type: view COMPOSITE Package: VDM_MD_PRODUCT_OBSOLETE

Product text Union

P_Producttextswd is a Composite CDS View that provides data about "Product text Union" in SAP S/4HANA. It reads from 5 data sources (I_Producttexts, I_DraftAdministrativeData, P_Producttextsd, P_Producttextsd, P_ProductD) and exposes 24 fields with key fields DraftUUID, Product, Language, LongTextID, product. Part of development package VDM_MD_PRODUCT_OBSOLETE.

Data Sources (5)

SourceAliasJoin Type
I_Producttexts ActiveDocument from
I_DraftAdministrativeData DraftAdministrativeData inner
P_Producttextsd DraftDocument left_outer
P_Producttextsd DraftDocument union_all
P_ProductD DraftRootDocument inner

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPRDTEXTSWD view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientDependent true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY DraftUUID
KEY Product
KEY Language I_Producttexts Language Report Text Language
KEY LongTextID I_Producttexts LongTextID Text ID
ParentDraftUUID NodeID
ProductForEdit I_Producttexts Product Product
LanguageForEdit I_Producttexts Language Original Language
LongTextIDForEdit I_Producttexts LongTextID Text ID
LongText I_Producttexts LongText Text Name
IsActiveEntity
HasActiveEntity TRUE
DraftUUID
KEY product P_Producttextsd product Product Sold
KEY language P_Producttextsd language Report Text Language
KEY longtextid P_Producttextsd longtextid Text ID
ParentDraftUUID P_Producttextsd ParentDraftUUID NodeID
ProductForEdit P_Producttextsd productforedit Product
LanguageForEdit P_Producttextsd languageforedit Original Language
LongTextIDForEdit P_Producttextsd longtextidforedit Text ID
LongText P_Producttextsd longtext Text Name
IsActiveEntity
HasActiveEntity P_Producttextsd HasActiveEntity TRUE
HasDraftEntity
DraftAdministrativeDataUUID

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_Producttextswd.
-- 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: PPRDTEXTSWD

CREATE VIEW P_Producttextswd AS
SELECT
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS DraftUUID,
  cast (ActiveDocument.Product as productnumber) AS Product,
  ActiveDocument.Language AS Language,
  ActiveDocument.LongTextID AS LongTextID,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS ParentDraftUUID,
  ActiveDocument.Product AS ProductForEdit,
  ActiveDocument.Language AS LanguageForEdit,
  ActiveDocument.LongTextID AS LongTextIDForEdit,
  ActiveDocument.LongText AS LongText,
  cast( 'X' as boole_d ) AS IsActiveEntity,
  cast( ' ' as boole_d ) AS HasActiveEntity,
  cast( ' ' as boole_d ) AS HasDraftEntity,
  cast(DraftDocument.ParentDraftUUID as sysuuid_x ) AS DraftAdministrativeDataUUID
FROM I_Producttexts AS ActiveDocument
LEFT OUTER JOIN P_Producttextsd AS DraftDocument ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProductD AS DraftRootDocument ON /* join condition not captured in parsed metadata */
INNER JOIN I_DraftAdministrativeData AS DraftAdministrativeData ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_Producttextsd
;