C_MassChgDebitMemoReqItem
Mass Change of Debit Memo Request Item
C_MassChgDebitMemoReqItem is a Consumption CDS View that provides data about "Mass Change of Debit Memo Request Item" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItem) and exposes 147 fields with key fields DebitMemoRequest, DebitMemoRequestItem. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentItem | DebitMemoRequestItem | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SalesDocument | _DebitMemoReq | $projection.DebitMemoRequest = _DebitMemoReq.SalesDocument |
| [1..*] | I_SalesDocItemCompletePartner | _SalesItemCompletePartner | $projection.DebitMemoRequest = _SalesItemCompletePartner.SalesDocument and $projection.DebitMemoRequestItem = _SalesItemCompletePartner.SalesDocumentItem |
| [0..*] | I_SlsDocItmNonStdPartner | _NonStdPartner | $projection.DebitMemoRequest = _NonStdPartner.SalesDocument and $projection.DebitMemoRequestItem = _NonStdPartner.SalesDocumentItem |
| [0..1] | C_SalesDocPaymentMethodVH | _PaymentMethod | $projection.PaymentMethod = _PaymentMethod.PaymentMethod and _DebitMemoReq.BillingCompanyCode = _PaymentMethod.BillingCompanyCode |
| [0..1] | E_SalesDocumentItemBasic | _ItemExtension | $projection.DebitMemoRequest = _ItemExtension.SalesDocument and $projection.DebitMemoRequestItem = _ItemExtension.SalesDocumentItem |
| [0..1] | E_SalesDocumentBasic | _Extension | $projection.DebitMemoRequest = _Extension.SalesDocument |
| [0..1] | I_ProfitCenterText | _ProfitCenterText | $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ProfitCenter = _ProfitCenterText.ProfitCenter and _ProfitCenterText.ValidityEndDate >= $session.system_date and _ProfitCenterText.Language = $session.system_language |
| [0..1] | I_WBSElementByExternalID | _WBSElementExternalID | $projection.WBSElementExternalID = _WBSElementExternalID.WBSElementExternalID |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | CSDMCDBMEREQITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Mass Change of Debit Memo Request Item | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.representativeKey | DebitMemoRequestItem | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| OData.entitySet.name | DebitMReqItem | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Search.searchable | true | view | |
| Metadata.allowExtensions | true | view |
Fields (147)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DebitMemoRequest | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| Product | Product | Product Sold | ||
| DebitMemoRequestType | Sales Doc. Type | |||
| SDDocumentCategory | SDDocumentCategory | Document Cat. | ||
| SDDocumentReason | SDDocumentReason | Order Reason | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| AdditionalCustomerGroup1 | AdditionalCustomerGroup1 | Customer Grp 1 | ||
| AdditionalCustomerGroup2 | AdditionalCustomerGroup2 | Customer Grp 2 | ||
| AdditionalCustomerGroup3 | AdditionalCustomerGroup3 | Customer Grp 3 | ||
| AdditionalCustomerGroup4 | AdditionalCustomerGroup4 | Customer Grp 4 | ||
| AdditionalCustomerGroup5 | AdditionalCustomerGroup5 | Customer Grp 5 | ||
| HeaderBillingBlockReason | ||||
| DebitMemoReqApprovalReason | ||||
| OverallSDDocumentRejectionSts | ||||
| OverallOrdReltdBillgStatus | ||||
| OverallBillingBlockStatus | ||||
| HdrGeneralIncompletionStatus | ||||
| HeaderBillgIncompletionStatus | ||||
| OverallPricingIncompletionSts | ||||
| OvrlTrdCmplncSnctndListChkSts | ||||
| DebitMemoRequestItemCategory | SalesDocumentItemCategory | Item Category | ||
| Division | Division | Internal Division ID | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| BusinessArea | BusinessArea | Business Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| OrganizationDivision | Org. Division | |||
| SalesGroup | SalesGroup | Sales Group | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| SDProcessStatus | Overall Status | |||
| OrderRelatedBillingStatus | OrderRelatedBillingStatus | |||
| SDDocumentRejectionStatus | SDDocumentRejectionStatus | Rejection Sts | ||
| BillingBlockStatus | BillingBlockStatus | Billg Block Sts | ||
| ItemGeneralIncompletionStatus | ||||
| ItemBillingIncompletionStatus | Billing Doc. | |||
| PricingIncompletionStatus | Pricing – Item | |||
| SDDocReferenceStatus | SDDocReferenceStatus | Reference Sts | ||
| TotalSDDocReferenceStatus | TotalSDDocReferenceStatus | Ovrl Ref. Sts | ||
| DeliveryStatus | Delivery Status | |||
| TotalDeliveryStatus | Ovrl Deliv. Sts | |||
| DeliveryBlockStatus | DeliveryBlockStatus | |||
| DeliveryConfirmationStatus | DeliveryConfirmationStatus | Project stock | ||
| SalesDocumentRjcnReasonName | ||||
| SalesDocumentRjcnReason | SalesDocumentRjcnReason | RejectionReason | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| PayerParty | PayerParty | Payer | ||
| BillToParty | BillToParty | Inv. Recipient | ||
| ResponsibleEmployee | ResponsibleEmployee | Employee Resp. | ||
| SalesEmployee | SalesEmployee | Sales Employee | ||
| ShipToPartyName | ||||
| SoldToPartyName | ||||
| BillToPartyName | ||||
| PayerPartyName | ||||
| ResponsibleEmployeeName | ||||
| SalesEmployeeName | ||||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AdditionalPartnerName | ||||
| PartnerFunction | ||||
| Customer | ||||
| Supplier | ||||
| Personnel | ||||
| ContactPerson | ||||
| DebitMemoRequestDate | SalesDocumentDate | Document Date | ||
| BillingDocumentDate | BillingDocumentDate | Billing Date | ||
| PricingDate | PricingDate | Pricing Date | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| PaymentTerms | CustomerPaymentTerms | Pyt Terms | ||
| CustomerPaymentTerms | ||||
| SlsDocMassChangeRequestUUID | ||||
| SlsDocMassChgEntityLevel | ||||
| DebitMemoRequestItemText | SalesDocumentItemText | Item Descr. | ||
| NetAmount | NetAmount | Stated Amount | ||
| ItemBillingBlockReason | Billing Block | |||
| _BusinessArea | _BusinessArea | |||
| _TotalDeliveryStatus | _TotalDeliveryStatus | |||
| _DeliveryBlockStatus | _DeliveryBlockStatus | |||
| _DeliveryConfirmationStatus | _DeliveryConfirmationStatus | |||
| _ItemCategory | _ItemCategory | |||
| _OrganizationDivision | _OrganizationDivision | |||
| _Product | _Product | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _SDProcessStatus | _SDProcessStatus | |||
| _OrderRelatedBillingStatus | _OrderRelatedBillingStatus | |||
| _BillingBlockStatus | _BillingBlockStatus | |||
| _SDDocumentRejectionStatus | _SDDocumentRejectionStatus | |||
| _ItemGeneralIncompletionStatus | _ItemGeneralIncompletionStatus | |||
| _ItemBillingIncompletionStatus | _ItemBillingIncompletionStatus | |||
| _PricingIncompletionStatus | _PricingIncompletionStatus | |||
| _TotalSDDocReferenceStatus | _TotalSDDocReferenceStatus | |||
| _SDDocReferenceStatus | _SDDocReferenceStatus | |||
| _SalesOrganization | _SalesOrganization | |||
| _SoldToParty | _SoldToParty | |||
| _ShipToParty | _ShipToParty | |||
| _BillToParty | _BillToParty | |||
| _PayerParty | _PayerParty | |||
| _ResponsibleEmployee | _ResponsibleEmployee | |||
| _SalesEmployee | _SalesEmployee | |||
| _SalesGroup | _SalesGroup | |||
| _SalesOffice | _SalesOffice | |||
| _SalesDistrict | _SalesDistrict | |||
| _Division | _Division | |||
| _DeliveryStatus | _DeliveryStatus | |||
| _SalesItemCompletePartner | _SalesItemCompletePartner | |||
| _SalesDocumentRjcnReason | _SalesDocumentRjcnReason | |||
| _NonStdPartner | _NonStdPartner | |||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _DebitMemoReq | _DebitMemoReq | |||
| _TransactionCurrency | _TransactionCurrency | |||
| SalesDocumentItemText | SalesDocumentItemText | Item Descr. | ||
| _WBSElementBasicData_2 | _WBSElementBasicData_2 | |||
| _ProfitCenter | _ProfitCenter | |||
| _PaymentMethod | _PaymentMethod | |||
| _CreatedByUser | _CreatedByUser | |||
| _SDDocumentReason | _SDDocumentReason | |||
| _CustomerGroup | _CustomerGroup | |||
| _ControllingArea | _ControllingArea | |||
| _ProfitCenterText | _ProfitCenterText | |||
| _WBSElementExternalID | _WBSElementExternalID | |||
| _ItemBillingBlockReason | _ItemBillingBlockReason | |||
| KEY | DebitMemoRequestItem | I_SalesDocumentItem | SalesDocumentItem | Sales Document Item |
| _DistributionChannel | I_SalesDocumentItem | _DistributionChannel | ||
| OverallSDProcessStatus | _DebitMemoReq | OverallSDProcessStatus | ||
| PurchaseOrderByCustomer | _DebitMemoReq | PurchaseOrderByCustomer | Purchase Order Number | |
| CustomerPurchaseOrderDate | _DebitMemoReq | CustomerPurchaseOrderDate | Purchase Order Date | |
| TotalBlockStatus | _DebitMemoReq | TotalBlockStatus | ||
| SalesDocApprovalStatus | _DebitMemoReq | SalesDocApprovalStatus | ||
| CostCenter | _DebitMemoReq | CostCenter | Cost Center | |
| BillingCompanyCode | _DebitMemoReq | BillingCompanyCode | CCodeToBeBilled | |
| CreditControlArea | _DebitMemoReq | CreditControlArea | Credit Control Area | |
| TotalNetAmount | _DebitMemoReq | TotalNetAmount | Total Net Amount | |
| SalesDocumentType | _DebitMemoReq | SalesDocumentType | Sales Doc. Type | |
| _OverallPricingIncompletionSts | _DebitMemoReq | _OverallPricingIncompletionSts | ||
| _OverallSDDocumentRejectionSts | _DebitMemoReq | _OverallSDDocumentRejectionSts | ||
| _BillingCompanyCode | _DebitMemoReq | _BillingCompanyCode | ||
| ProfitCenterName | _ProfitCenterText | ProfitCenterName | Profit Center Name | |
| OrganizationBPName1 | _SoldToParty | OrganizationBPName1 | Name 1 | |
| OrganizationBPName2 | _SoldToParty | OrganizationBPName2 | Name 2 | |
| WBSElementExternalID | _WBSElementBasicData_2 | WBSElementExternalID | WBS Element External ID |
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_MassChgDebitMemoReqItem.
-- 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: CSDMCDBMEREQITM
CREATE VIEW C_MassChgDebitMemoReqItem AS
SELECT
cast (DebitMemoRequestItem.SalesDocument as debit_memo_request preserving type) AS DebitMemoRequest,
SalesOrganization,
DistributionChannel,
SoldToParty,
Product,
cast(SalesDocumentType as debit_memo_request_type preserving type ) AS DebitMemoRequestType,
SDDocumentCategory,
SDDocumentReason,
CreationDate,
CreatedByUser,
CustomerGroup,
AdditionalCustomerGroup1,
AdditionalCustomerGroup2,
AdditionalCustomerGroup3,
AdditionalCustomerGroup4,
AdditionalCustomerGroup5,
cast (_DebitMemoReq.HeaderBillingBlockReason as header_billing_block_reason preserving type ) AS HeaderBillingBlockReason,
cast(_DebitMemoReq.SalesDocApprovalReason as sd_apm_approval_reason_vdm preserving type) AS DebitMemoReqApprovalReason,
cast(_DebitMemoReq.OverallSDDocumentRejectionSts as ovrl_sd_doc_rejection_status preserving type ) AS OverallSDDocumentRejectionSts,
cast(_DebitMemoReq.OverallOrdReltdBillgStatus as ovrl_ord_rel_billg_status preserving type ) AS OverallOrdReltdBillgStatus,
cast (_DebitMemoReq.OverallBillingBlockStatus as overall_billing_block_status preserving type ) AS OverallBillingBlockStatus,
cast (_DebitMemoReq.HdrGeneralIncompletionStatus as hdr_general_incompltn_status preserving type ) AS HdrGeneralIncompletionStatus,
cast (_DebitMemoReq.HeaderBillgIncompletionStatus as hdrbillgincompletionstatus preserving type ) AS HeaderBillgIncompletionStatus,
cast(_DebitMemoReq.OverallPricingIncompletionSts as ovrl_pricing_incompletion_sts preserving type ) AS OverallPricingIncompletionSts,
cast(_DebitMemoReq.OvrlTrdCmplncSnctndListChkSts as ovrl_watchlist_screening_sts preserving type ) AS OvrlTrdCmplncSnctndListChkSts,
SalesDocumentItemCategory AS DebitMemoRequestItemCategory,
Division,
ProfitCenter,
WBSElementInternalID,
BusinessArea,
ControllingArea,
cast (OrganizationDivision as organization_division preserving type ) AS OrganizationDivision,
SalesGroup,
SalesOffice,
SalesDistrict,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
cast (SDProcessStatus as overall_sd_doc_processing_sts preserving type ) AS SDProcessStatus,
OrderRelatedBillingStatus,
SDDocumentRejectionStatus,
BillingBlockStatus,
cast (ItemGeneralIncompletionStatus as item_general_incompletion_sts preserving type ) AS ItemGeneralIncompletionStatus,
cast (ItemBillingIncompletionStatus as itms_incompltn_sts_billg preserving type ) AS ItemBillingIncompletionStatus,
cast (PricingIncompletionStatus as pricing_incompletion_status preserving type ) AS PricingIncompletionStatus,
SDDocReferenceStatus,
TotalSDDocReferenceStatus,
cast (DeliveryStatus as itm_overall_delivery_status preserving type ) AS DeliveryStatus,
cast(TotalDeliveryStatus as itms_ovrl_delivery_status preserving type ) AS TotalDeliveryStatus,
DeliveryBlockStatus,
DeliveryConfirmationStatus,
DebitMemoRequestItem._SalesDocumentRjcnReason._Text[1: Language=$session.system_language].SalesDocumentRjcnReasonName AS SalesDocumentRjcnReasonName,
SalesDocumentRjcnReason,
ShipToParty,
PayerParty,
BillToParty,
ResponsibleEmployee,
SalesEmployee,
cast('' as ad_namtext ) AS ShipToPartyName,
cast('' as ad_namtext ) AS SoldToPartyName,
cast('' as ad_namtext ) AS BillToPartyName,
cast('' as ad_namtext ) AS PayerPartyName,
cast('' as ad_namtext ) AS ResponsibleEmployeeName,
cast('' as ad_namtext ) AS SalesEmployeeName,
TransactionCurrency,
cast( ' ' as abap.char( 100 )) AS AdditionalPartnerName,
cast( ' ' as parvw_unv preserving type ) AS PartnerFunction,
cast( ' ' as kunnr) AS Customer,
cast( ' ' as lifnr) AS Supplier,
cast( '00000000' as pernr_d) AS Personnel,
cast( '0000000000' as parnr) AS ContactPerson,
SalesDocumentDate AS DebitMemoRequestDate,
BillingDocumentDate,
PricingDate,
PaymentMethod,
CustomerPaymentTerms AS PaymentTerms,
cast(_DebitMemoReq.CustomerPaymentTerms as hdr_dzterm ) AS CustomerPaymentTerms,
hextobin( '00000000000000000000000000000000' ) AS SlsDocMassChangeRequestUUID,
cast ('I' as sd_mcc_entity_level) AS SlsDocMassChgEntityLevel,
SalesDocumentItemText AS DebitMemoRequestItemText,
NetAmount,
cast( ItemBillingBlockReason as billing_block_reason_item preserving type ) AS ItemBillingBlockReason,
SalesDocumentItemText,
DebitMemoRequestItem.SalesDocumentItem AS DebitMemoRequestItem,
DebitMemoRequestItem._DistributionChannel AS _DistributionChannel,
_DebitMemoReq.OverallSDProcessStatus AS OverallSDProcessStatus,
_DebitMemoReq.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
_DebitMemoReq.CustomerPurchaseOrderDate AS CustomerPurchaseOrderDate,
_DebitMemoReq.TotalBlockStatus AS TotalBlockStatus,
_DebitMemoReq.SalesDocApprovalStatus AS SalesDocApprovalStatus,
_DebitMemoReq.CostCenter AS CostCenter,
_DebitMemoReq.BillingCompanyCode AS BillingCompanyCode,
_DebitMemoReq.CreditControlArea AS CreditControlArea,
_DebitMemoReq.TotalNetAmount AS TotalNetAmount,
_DebitMemoReq.SalesDocumentType AS SalesDocumentType,
_DebitMemoReq._OverallPricingIncompletionSts AS _OverallPricingIncompletionSts,
_DebitMemoReq._OverallSDDocumentRejectionSts AS _OverallSDDocumentRejectionSts,
_DebitMemoReq._BillingCompanyCode AS _BillingCompanyCode,
_ProfitCenterText.ProfitCenterName AS ProfitCenterName,
_SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
_SoldToParty.OrganizationBPName2 AS OrganizationBPName2,
_WBSElementBasicData_2.WBSElementExternalID AS WBSElementExternalID
FROM I_SalesDocumentItem AS DebitMemoRequestItem
LEFT OUTER JOIN I_SalesDocument AS _DebitMemoReq ON DebitMemoRequest = _DebitMemoReq.SalesDocument -- association [1..1]
LEFT OUTER JOIN I_SalesDocItemCompletePartner AS _SalesItemCompletePartner ON DebitMemoRequest = _SalesItemCompletePartner.SalesDocument AND DebitMemoRequestItem = _SalesItemCompletePartner.SalesDocumentItem -- association [1..*]
LEFT OUTER JOIN I_SlsDocItmNonStdPartner AS _NonStdPartner ON DebitMemoRequest = _NonStdPartner.SalesDocument AND DebitMemoRequestItem = _NonStdPartner.SalesDocumentItem -- association [0..*]
LEFT OUTER JOIN C_SalesDocPaymentMethodVH AS _PaymentMethod ON PaymentMethod = _PaymentMethod.PaymentMethod AND _DebitMemoReq.BillingCompanyCode = _PaymentMethod.BillingCompanyCode -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _ItemExtension ON DebitMemoRequest = _ItemExtension.SalesDocument AND DebitMemoRequestItem = _ItemExtension.SalesDocumentItem -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON DebitMemoRequest = _Extension.SalesDocument -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ControllingArea = _ProfitCenterText.ControllingArea AND ProfitCenter = _ProfitCenterText.ProfitCenter AND _ProfitCenterText.ValidityEndDate >= $session.system_date AND _ProfitCenterText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_WBSElementByExternalID AS _WBSElementExternalID ON WBSElementExternalID = _WBSElementExternalID.WBSElementExternalID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA