C_DebitMemoRequestItemFS

DDL: C_DEBITMEMOREQUESTITEMFS SQL: CDEBITMRITFS Type: view CONSUMPTION Package: ODATA_SD_DEBITMEMOREQUEST

Debit Memo Request Item

C_DebitMemoRequestItemFS is a Consumption CDS View that provides data about "Debit Memo Request Item" in SAP S/4HANA. It reads from 1 data source (I_DebitMemoRequestItem) and exposes 33 fields with key fields DebitMemoRequest, DebitMemoRequestItem. It has 4 associations to related views. Part of development package ODATA_SD_DEBITMEMOREQUEST.

Data Sources (1)

SourceAliasJoin Type
I_DebitMemoRequestItem DMRItem from

Associations (4)

CardinalityTargetAliasCondition
[0..*] C_SDDocumentPartnerCard _SDDocumentPartnerCard $projection.DebitMemoRequest = _SDDocumentPartnerCard.SDDocument and $projection.DebitMemoRequestItem = _SDDocumentPartnerCard.SDDocumentItem
[0..*] C_PrecdgSalesOrderItem _PrecdgSalesOrderItem $projection.DebitMemoRequest = _PrecdgSalesOrderItem.SubsequentDocument and $projection.DebitMemoRequestItem = _PrecdgSalesOrderItem.SubsequentDocumentItem
[0..*] C_SlsDocReltdBillgDocItm _RelatedBillingDocumentItem $projection.DebitMemoRequest = _RelatedBillingDocumentItem.SalesDocument and $projection.DebitMemoRequestItem = _RelatedBillingDocumentItem.SalesDocumentItem
[1] E_SalesDocumentItemBasic _Extension $projection.DebitMemoRequest = _Extension.SalesDocument and $projection.DebitMemoRequestItem = _Extension.SalesDocumentItem

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CDEBITMRITFS view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Search.searchable true view
EndUserText.label Debit Memo Request Item view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
UI.headerInfo.typeName Debit Memo Request Item view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value DebitMemoRequestItemText view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value Material view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY DebitMemoRequest I_DebitMemoRequestItem DebitMemoRequest
KEY DebitMemoRequestItem I_DebitMemoRequestItem DebitMemoRequestItem Item
DebitMemoRequestItemText DebitMemoRequestItemText Item Descr.
SoldToParty
SoldToPartyName
int1asBillingBlockCriticality
ItemBillingBlockReason I_DebitMemoRequestItem ItemBillingBlockReason Billing Block
OrderRelatedBillingStatus I_DebitMemoRequestItem OrderRelatedBillingStatus
SDDocumentRejectionStatus SDDocumentRejectionStatus
SalesDocumentRjcnReason SalesDocumentRjcnReason RejectionReason
TargetQuantity I_DebitMemoRequestItem TargetQuantity Target Quantity
TargetQuantityUnit I_DebitMemoRequestItem TargetQuantityUnit Target Qty UoM
NetAmount I_DebitMemoRequestItem NetAmount Stated Amount
TransactionCurrency I_DebitMemoRequestItem TransactionCurrency Transaction Currency
SDProcessStatus I_DebitMemoRequestItem SDProcessStatus
MaterialName
Material
MaterialByCustomer I_DebitMemoRequestItem MaterialByCustomer Customer Mat.
MaterialGroup
BillingDocumentDate I_DebitMemoRequestItem BillingDocumentDate Billing Date
HigherLevelItem I_DebitMemoRequestItem HigherLevelItem Higher-Lev.Item
_MaterialGroup _MaterialGroup
_Material _Material
_ItemBillingBlockReason _ItemBillingBlockReason
_OrderRelatedBillingStatus _OrderRelatedBillingStatus
_SDProcessStatus _SDProcessStatus
_SDDocumentPartnerCard _SDDocumentPartnerCard
_PrecdgSalesOrderItem _PrecdgSalesOrderItem
_RelatedBillingDocumentItem _RelatedBillingDocumentItem
_DebitMemoRequest _DebitMemoRequest
_SDDocumentRejectionStatus _SDDocumentRejectionStatus
_SalesDocumentRjcnReason _SalesDocumentRjcnReason
_TransactionCurrency _TransactionCurrency

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 C_DebitMemoRequestItemFS.
-- 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: CDEBITMRITFS

CREATE VIEW C_DebitMemoRequestItemFS AS
SELECT
  DMRItem.DebitMemoRequest AS DebitMemoRequest,
  DMRItem.DebitMemoRequestItem AS DebitMemoRequestItem,
  DebitMemoRequestItemText,
  cast(_DebitMemoRequest.SoldToParty as kunag preserving type ) AS SoldToParty,
  cast('' as ad_namtext ) AS SoldToPartyName,
  cast( case when DMRItem.ItemBillingBlockReason != '' then 1 else 0 end as abap.int1 ) as BillingBlockCriticality AS int1asBillingBlockCriticality,
  DMRItem.ItemBillingBlockReason AS ItemBillingBlockReason,
  DMRItem.OrderRelatedBillingStatus AS OrderRelatedBillingStatus,
  SDDocumentRejectionStatus,
  SalesDocumentRjcnReason,
  DMRItem.TargetQuantity AS TargetQuantity,
  DMRItem.TargetQuantityUnit AS TargetQuantityUnit,
  DMRItem.NetAmount AS NetAmount,
  DMRItem.TransactionCurrency AS TransactionCurrency,
  DMRItem.SDProcessStatus AS SDProcessStatus,
  _MaterialText[1:Language=$session.system_language].MaterialName AS MaterialName,
  cast(DMRItem.Material as productnumber preserving type ) AS Material,
  DMRItem.MaterialByCustomer AS MaterialByCustomer,
  cast(DMRItem.MaterialGroup as productgroup preserving type ) AS MaterialGroup,
  DMRItem.BillingDocumentDate AS BillingDocumentDate,
  DMRItem.HigherLevelItem AS HigherLevelItem
FROM I_DebitMemoRequestItem AS DMRItem
LEFT OUTER JOIN C_SDDocumentPartnerCard AS _SDDocumentPartnerCard ON DebitMemoRequest = _SDDocumentPartnerCard.SDDocument AND DebitMemoRequestItem = _SDDocumentPartnerCard.SDDocumentItem  -- association [0..*]
LEFT OUTER JOIN C_PrecdgSalesOrderItem AS _PrecdgSalesOrderItem ON DebitMemoRequest = _PrecdgSalesOrderItem.SubsequentDocument AND DebitMemoRequestItem = _PrecdgSalesOrderItem.SubsequentDocumentItem  -- association [0..*]
LEFT OUTER JOIN C_SlsDocReltdBillgDocItm AS _RelatedBillingDocumentItem ON DebitMemoRequest = _RelatedBillingDocumentItem.SalesDocument AND DebitMemoRequestItem = _RelatedBillingDocumentItem.SalesDocumentItem  -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON DebitMemoRequest = _Extension.SalesDocument AND DebitMemoRequestItem = _Extension.SalesDocumentItem  -- association [1]
;