R_CmmdtyExpenseHeaderBufferTP

DDL: R_CMMDTYEXPENSEHEADERBUFFERTP Type: view_entity TRANSACTIONAL

Commodity Expense Header Buffer

R_CmmdtyExpenseHeaderBufferTP is a Transactional CDS View that provides data about "Commodity Expense Header Buffer" in SAP S/4HANA. It reads from 1 data source (I_CommodityExpenseHeaderBuffer) and exposes 99 fields with key field ExpnPlngHeaderUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CommodityExpenseHeaderBuffer I_CommodityExpenseHeaderBuffer from

Associations (2)

CardinalityTargetAliasCondition
[0..*] R_CommodityExpenseItemBufferTP _Item
[0..*] R_CmmdtyExpnCstmAttribBufferTP _ExpenseAttribute

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Commodity Expense Header Buffer view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #TRANSACTIONAL view
ObjectModel.sapObjectNodeType.name ExpensePlan view
Feature SW:LOG_CMM_EM view

Fields (99)

KeyFieldSource TableSource FieldDescription
KEY ExpnPlngHeaderUUID ExpnPlngHeaderUUID
ExpnPlngReferenceUUID ExpnPlngReferenceUUID
ExpnPlngReferenceItemUUID ExpnPlngReferenceItemUUID
ExpnPlngObjectUUID ExpnPlngObjectUUID
ExpnPlngRemoteSystemID ExpnPlngRemoteSystemID
CommodityExpenseAction CommodityExpenseAction
CmmdtyExpnCallingApplication CmmdtyExpnCallingApplication
CommodityExpenseStatus CommodityExpenseStatus
CmmdtyExpenseTransactionType CmmdtyExpenseTransactionType
ExpenseDeterminationIsRequired ExpenseDeterminationIsRequired
ExpenseIsInLineSaveEnabled ExpenseIsInLineSaveEnabled
ExpenseEventStatus ExpenseEventStatus
ExpensePlanningObjectIsAmended ExpensePlanningObjectIsAmended
CommodityExpenseIsSplit CommodityExpenseIsSplit
CommodityExpenseHasPriceLot CommodityExpenseHasPriceLot
ExpnPlngTemplateID ExpnPlngTemplateID
ExpnPlngProcessingStatus ExpnPlngProcessingStatus
ExpnPlngProcessingStatusText _Status DomainText Short Description
ExpnPlngSourceDocumentUUID ExpnPlngSourceDocumentUUID
ExpnPlngSourceDocumentItemUUID ExpnPlngSourceDocumentItemUUID
ExpnPlngSourceDocumentNumber ExpnPlngSourceDocumentNumber
ExpnPlngSourceDocumentItem ExpnPlngSourceDocumentItem
ExpnPlngSourceDocumentType ExpnPlngSourceDocumentType
ExpnPlngSourceDocumentTypeText ExpnPlngSourceDocumentTypeText
ExpnPlngSrceDocumentObjectType ExpnPlngSrceDocumentObjectType
ExpnPlngSrceDocObjectTypeText _Source DomainText Short Description
ExpnPlngSourceDocumentItemSide ExpnPlngSourceDocumentItemSide
ExpnPlngSrceDocItemChildItem ExpnPlngSrceDocItemChildItem
ExpnPlngSrceChangedAtDateTime ExpnPlngSrceChangedAtDateTime
ExpnPlngRootDocumentUUID ExpnPlngRootDocumentUUID
ExpnPlngRootDocumentItemUUID ExpnPlngRootDocumentItemUUID
ExpnPlngRootDocumentNumber ExpnPlngRootDocumentNumber
ExpnPlngRootDocumentItem ExpnPlngRootDocumentItem
ExpnPlngRootDocumentType ExpnPlngRootDocumentType
ExpnPlngRootDocumentTypeText ExpnPlngRootDocumentTypeText
ExpnPlngRootDocumentObjectType ExpnPlngRootDocumentObjectType
ExpnPlngRootDocObjectTypeText _Root DomainText Short Description
ExpnPlngPrecdgDocumentNumber ExpnPlngPrecdgDocumentNumber
ExpnPlngPrecedingDocumentItem ExpnPlngPrecedingDocumentItem
ExpnPlngPrecedingDocumentType ExpnPlngPrecedingDocumentType
ExpnPlngPrecdgDocumentTypeText ExpnPlngPrecdgDocumentTypeText
ExpnPlngPrecdgDocObjectType ExpnPlngPrecdgDocObjectType
ExpnPlngPrecdgDocObjTypeText ExpnPlngPrecdgDocObjTypeText
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _Company CompanyCodeName Company Name
Material Material Vehicle Model
MaterialDescription _Material MaterialName Material Description
Plant Plant Valuation Area
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
CommodityExpenseQuantity CommodityExpenseQuantity
ExpenseQuantityUnitOfMeasure ExpenseQuantityUnitOfMeasure Base Unit
Commodity Commodity Commodity Code
CommodityName _Commodity CommodityName
ModeOfTransport ModeOfTransport Mode of Transp.
ModeOfTransportDesc _Mot TransportationModeDesc
Incoterms Incoterms Incoterms
IncotermsClassificationName _Incoterm IncotermsClassificationName Incoterms Classification Description
ExpensePricingDate ExpensePricingDate
AttributeCode1 AttributeCode1
AttributeValue1 AttributeValue1
AttributeCode2 AttributeCode2
AttributeValue2 AttributeValue2
AttributeCode3 AttributeCode3
AttributeValue3 AttributeValue3
AttributeCode4 AttributeCode4
AttributeValue4 AttributeValue4
AttributeCode5 AttributeCode5
AttributeValue5 AttributeValue5
AttributeCode6 AttributeCode6
AttributeValue6 AttributeValue6
AttributeCode7 AttributeCode7
AttributeValue7 AttributeValue7
AttributeCode8 AttributeCode8
AttributeValue8 AttributeValue8
AttributeCode9 AttributeCode9
AttributeValue9 AttributeValue9
AttributeCode10 AttributeCode10
AttributeValue10 AttributeValue10
AttributeCode11 AttributeCode11
AttributeValue11 AttributeValue11
AttributeCode12 AttributeCode12
AttributeValue12 AttributeValue12
AttributeCode13 AttributeCode13
AttributeValue13 AttributeValue13
AttributeCode14 AttributeCode14
AttributeValue14 AttributeValue14
AttributeCode15 AttributeCode15
AttributeValue15 AttributeValue15
ExpenseCreatedOnDate ExpenseCreatedOnDate
ExpenseCreatedAtTime ExpenseCreatedAtTime
ExpenseChangedOnDateTime ExpenseChangedOnDateTime
ExpnPlngIsReadFromSourceUUID
ExpnPlngIsReadFromRootDocument
ExpnPlngIsReadFromSource
ExpnPlngIsReadFromPreceding
ExpnPlngIsReadFromReference
_Item _Item
_ExpenseAttribute _ExpenseAttribute

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 R_CmmdtyExpenseHeaderBufferTP.
-- 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 R_CmmdtyExpenseHeaderBufferTP AS
SELECT
  ExpnPlngHeaderUUID,
  ExpnPlngReferenceUUID,
  ExpnPlngReferenceItemUUID,
  ExpnPlngObjectUUID,
  ExpnPlngRemoteSystemID,
  CommodityExpenseAction,
  CmmdtyExpnCallingApplication,
  CommodityExpenseStatus,
  CmmdtyExpenseTransactionType,
  ExpenseDeterminationIsRequired,
  ExpenseIsInLineSaveEnabled,
  ExpenseEventStatus,
  ExpensePlanningObjectIsAmended,
  CommodityExpenseIsSplit,
  CommodityExpenseHasPriceLot,
  ExpnPlngTemplateID,
  ExpnPlngProcessingStatus,
  _Status.DomainText AS ExpnPlngProcessingStatusText,
  ExpnPlngSourceDocumentUUID,
  ExpnPlngSourceDocumentItemUUID,
  ExpnPlngSourceDocumentNumber,
  ExpnPlngSourceDocumentItem,
  ExpnPlngSourceDocumentType,
  ExpnPlngSourceDocumentTypeText,
  ExpnPlngSrceDocumentObjectType,
  _Source.DomainText AS ExpnPlngSrceDocObjectTypeText,
  ExpnPlngSourceDocumentItemSide,
  ExpnPlngSrceDocItemChildItem,
  ExpnPlngSrceChangedAtDateTime,
  ExpnPlngRootDocumentUUID,
  ExpnPlngRootDocumentItemUUID,
  ExpnPlngRootDocumentNumber,
  ExpnPlngRootDocumentItem,
  ExpnPlngRootDocumentType,
  ExpnPlngRootDocumentTypeText,
  ExpnPlngRootDocumentObjectType,
  _Root.DomainText AS ExpnPlngRootDocObjectTypeText,
  ExpnPlngPrecdgDocumentNumber,
  ExpnPlngPrecedingDocumentItem,
  ExpnPlngPrecedingDocumentType,
  ExpnPlngPrecdgDocumentTypeText,
  ExpnPlngPrecdgDocObjectType,
  ExpnPlngPrecdgDocObjTypeText,
  CompanyCode,
  _Company.CompanyCodeName AS CompanyCodeName,
  Material,
  _Material.MaterialName AS MaterialDescription,
  Plant,
  PurchasingOrganization,
  PurchasingGroup,
  CommodityExpenseQuantity,
  ExpenseQuantityUnitOfMeasure,
  Commodity,
  _Commodity.CommodityName AS CommodityName,
  ModeOfTransport,
  _Mot.TransportationModeDesc AS ModeOfTransportDesc,
  Incoterms,
  _Incoterm.IncotermsClassificationName AS IncotermsClassificationName,
  ExpensePricingDate,
  AttributeCode1,
  AttributeValue1,
  AttributeCode2,
  AttributeValue2,
  AttributeCode3,
  AttributeValue3,
  AttributeCode4,
  AttributeValue4,
  AttributeCode5,
  AttributeValue5,
  AttributeCode6,
  AttributeValue6,
  AttributeCode7,
  AttributeValue7,
  AttributeCode8,
  AttributeValue8,
  AttributeCode9,
  AttributeValue9,
  AttributeCode10,
  AttributeValue10,
  AttributeCode11,
  AttributeValue11,
  AttributeCode12,
  AttributeValue12,
  AttributeCode13,
  AttributeValue13,
  AttributeCode14,
  AttributeValue14,
  AttributeCode15,
  AttributeValue15,
  ExpenseCreatedOnDate,
  ExpenseCreatedAtTime,
  ExpenseChangedOnDateTime,
  '' AS ExpnPlngIsReadFromSourceUUID,
  '' AS ExpnPlngIsReadFromRootDocument,
  '' AS ExpnPlngIsReadFromSource,
  '' AS ExpnPlngIsReadFromPreceding,
  '' AS ExpnPlngIsReadFromReference
FROM I_CommodityExpenseHeaderBuffer
LEFT OUTER JOIN R_CommodityExpenseItemBufferTP AS _Item ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_CmmdtyExpnCstmAttribBufferTP AS _ExpenseAttribute ON /* condition not available in parsed metadata */  -- association [0..*]
;