C_MassChangeSalesDocumentItem

DDL: C_MASSCHANGESALESDOCUMENTITEM Type: view CONSUMPTION

Mass Change of Sales Document Item

C_MassChangeSalesDocumentItem is a Consumption CDS View that provides data about "Mass Change of Sales Document Item" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItem) and exposes 105 fields with key fields SalesDocument, SalesDocumentItem. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItem _SalesDocumentItem from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_SalesDocument _SalesDocument $projection.SalesDocument = _SalesDocument.SalesDocument
[1..*] I_SalesDocItemCompletePartner _SalesItemCompletePartner $projection.SalesDocument = _SalesItemCompletePartner.SalesDocument and $projection.SalesDocumentItem = _SalesItemCompletePartner.SalesDocumentItem
[0..*] I_SlsDocItmNonStdPartner _NonStdPartner $projection.SalesDocument = _NonStdPartner.SalesDocument and $projection.SalesDocumentItem = _NonStdPartner.SalesDocumentItem
[0..1] E_SalesDocumentItemBasic _ItemExtension $projection.SalesDocument = _ItemExtension.SalesDocument and $projection.SalesDocumentItem = _ItemExtension.SalesDocumentItem
[0..1] E_SalesDocumentBasic _Extension $projection.SalesDocument = _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 (19)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Mass Change of Sales Document Item view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CSDMCSLSDOCITM view
AbapCatalog.compiler.compareFilter true view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey SalesDocumentItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
OData.entitySet.name SlsDocumentItem view
Analytics.internalName #LOCAL view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view

Fields (105)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument SalesDocument SD Document
KEY SalesDocumentItem SalesDocumentItem Sales Document Item
SoldToParty SoldToParty Sold-to Party
ShipToParty ShipToParty Ship-To Party (obsolete)
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OverallSDProcessStatus _SalesDocument OverallSDProcessStatus
ProductName
Product Product Product Sold
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
SalesDocumentType SalesDocumentType Sales Doc. Type
CustomerGroup CustomerGroup Customer Group
PricingDate PricingDate Pricing Date
BillingDocumentDate BillingDocumentDate Billing Date
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
SDDocumentReason SDDocumentReason Order Reason
SDDocumentCategory SDDocumentCategory Document Cat.
ProfitCenter ProfitCenter Profit Center
ProfitCenterName _ProfitCenterText ProfitCenterName Profit Center Name
WBSElementInternalID WBSElementInternalID WBS Internal ID
WBSElementExternalID _WBSElementBasicData_2 WBSElementExternalID WBS Element External ID
BusinessArea BusinessArea Business Area
BillingCompanyCode _SalesDocument BillingCompanyCode CCodeToBeBilled
CostCenter _SalesDocument CostCenter Cost Center
ControllingArea ControllingArea Controlling Area
OrganizationDivision Org. Division
SalesGroup SalesGroup Sales Group
SalesOffice SalesOffice Sales Office
SalesDistrict SalesDistrict Sales District
PayerParty PayerParty Payer
BillToParty BillToParty Inv. Recipient
ResponsibleEmployee ResponsibleEmployee Employee Resp.
SalesEmployee SalesEmployee Sales Employee
ShipToPartyName
SoldToPartyName
BillToPartyName
PayerPartyName
ResponsibleEmployeeName
SalesEmployeeName
AdditionalPartnerName
PartnerFunction
Customer
Supplier
Personnel
ContactPerson
CustomerPaymentTerms
PaymentMethod _SalesDocument PaymentMethod Pymt Meth.
HeaderIncotermsClassification
PaymentTerms CustomerPaymentTerms Pyt Terms
ShippingCondition _SalesDocument ShippingCondition Shipping Conditions
SlsOrdShippingType _SalesDocument ShippingType Shipping Type
DeliveryBlockReason
Division Division Internal Division ID
TransactionCurrency TransactionCurrency Transaction Currency
HeaderBillingBlockReason
SalesDocApprovalReason
Material Material Vehicle Model
RequestedQuantity Requested Quantity
RequestedQuantityUnit RequestedQuantityUnit Requested Quantity Unit
NetAmount NetAmount Stated Amount
SalesDocumentRjcnReasonName
SalesDocumentRjcnReason SalesDocumentRjcnReason RejectionReason
SlsDocMassChangeRequestUUID
SlsDocMassChgEntityLevel
SalesDocumentItemText SalesDocumentItemText Item Descr.
ItemBillingBlockReason Billing Block
OrganizationBPName1 _SoldToParty OrganizationBPName1 Name 1
OrganizationBPName2 _SoldToParty OrganizationBPName2 Name 2
_DistributionChannel _DistributionChannel
_SalesOrganization _SalesOrganization
_OrganizationDivision _OrganizationDivision
_Product _Product
_RequestedQuantityUnit _RequestedQuantityUnit
_TransactionCurrency _TransactionCurrency
_SalesDocumentRjcnReason _SalesDocumentRjcnReason
_CustomerPaymentTerms _CustomerPaymentTerms
_SoldToParty _SoldToParty
_ShipToParty _ShipToParty
_BillToParty _BillToParty
_PayerParty _PayerParty
_ResponsibleEmployee _ResponsibleEmployee
_SalesEmployee _SalesEmployee
_ProductText _ProductText
_SalesDocument _SalesDocument
_SalesItemCompletePartner _SalesItemCompletePartner
_ScheduleLine I_SalesDocumentItem _ScheduleLine
_NonStdPartner _NonStdPartner
_Material _Material
_SalesDistrict _SalesDistrict
_ItemBillingBlockReason _ItemBillingBlockReason
_SDDocumentCategory I_SalesDocumentItem _SDDocumentCategory
_Division _Division
_WBSElementBasicData_2 _WBSElementBasicData_2
_ProfitCenter _ProfitCenter
_ControllingArea _ControllingArea
_BusinessArea _BusinessArea
_SalesGroup _SalesGroup
_SalesOffice _SalesOffice
_ProfitCenterText _ProfitCenterText
_WBSElementExternalID _WBSElementExternalID

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_MassChangeSalesDocumentItem.
-- 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 C_MassChangeSalesDocumentItem AS
SELECT
  SalesDocument,
  SalesDocumentItem,
  SoldToParty,
  ShipToParty,
  SalesOrganization,
  DistributionChannel,
  _SalesDocument.OverallSDProcessStatus AS OverallSDProcessStatus,
  _Product._Text[1:Language = $session.system_language ].ProductName AS ProductName,
  Product,
  CreationDate,
  CreatedByUser,
  SalesDocumentType,
  CustomerGroup,
  PricingDate,
  BillingDocumentDate,
  AdditionalCustomerGroup1,
  AdditionalCustomerGroup2,
  AdditionalCustomerGroup3,
  AdditionalCustomerGroup4,
  AdditionalCustomerGroup5,
  SDDocumentReason,
  SDDocumentCategory,
  ProfitCenter,
  _ProfitCenterText.ProfitCenterName AS ProfitCenterName,
  WBSElementInternalID,
  _WBSElementBasicData_2.WBSElementExternalID AS WBSElementExternalID,
  BusinessArea,
  _SalesDocument.BillingCompanyCode AS BillingCompanyCode,
  _SalesDocument.CostCenter AS CostCenter,
  ControllingArea,
  cast(OrganizationDivision as organization_division preserving type ) AS OrganizationDivision,
  SalesGroup,
  SalesOffice,
  SalesDistrict,
  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,
  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,
  cast(_SalesDocument.CustomerPaymentTerms as hdr_dzterm ) AS CustomerPaymentTerms,
  _SalesDocument.PaymentMethod AS PaymentMethod,
  cast(_SalesDocument.IncotermsClassification as vdm_header_incoterm1 ) AS HeaderIncotermsClassification,
  CustomerPaymentTerms AS PaymentTerms,
  _SalesDocument.ShippingCondition AS ShippingCondition,
  _SalesDocument.ShippingType AS SlsOrdShippingType,
  cast(_SalesDocument.DeliveryBlockReason as header_delivery_block_reason preserving type ) AS DeliveryBlockReason,
  Division,
  TransactionCurrency,
  cast(_SalesDocument.HeaderBillingBlockReason as header_billing_block_reason preserving type ) AS HeaderBillingBlockReason,
  cast(_SalesDocument.SalesDocApprovalReason as sd_apm_approval_reason_vdm preserving type) AS SalesDocApprovalReason,
  Material,
  cast(RequestedQuantity as requested_quantity) AS RequestedQuantity,
  RequestedQuantityUnit,
  NetAmount,
  _SalesDocumentItem._SalesDocumentRjcnReason._Text[1: Language=$session.system_language].SalesDocumentRjcnReasonName AS SalesDocumentRjcnReasonName,
  SalesDocumentRjcnReason,
  hextobin( '00000000000000000000000000000000' ) AS SlsDocMassChangeRequestUUID,
  cast ('I' as sd_mcc_entity_level) AS SlsDocMassChgEntityLevel,
  SalesDocumentItemText,
  cast( ItemBillingBlockReason as billing_block_reason_item preserving type ) AS ItemBillingBlockReason,
  _SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
  _SoldToParty.OrganizationBPName2 AS OrganizationBPName2,
  _SalesDocumentItem._ScheduleLine AS _ScheduleLine,
  _SalesDocumentItem._SDDocumentCategory AS _SDDocumentCategory
FROM I_SalesDocumentItem AS _SalesDocumentItem
LEFT OUTER JOIN I_SalesDocument AS _SalesDocument ON SalesDocument = _SalesDocument.SalesDocument  -- association [1..1]
LEFT OUTER JOIN I_SalesDocItemCompletePartner AS _SalesItemCompletePartner ON SalesDocument = _SalesItemCompletePartner.SalesDocument AND SalesDocumentItem = _SalesItemCompletePartner.SalesDocumentItem  -- association [1..*]
LEFT OUTER JOIN I_SlsDocItmNonStdPartner AS _NonStdPartner ON SalesDocument = _NonStdPartner.SalesDocument AND SalesDocumentItem = _NonStdPartner.SalesDocumentItem  -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _ItemExtension ON SalesDocument = _ItemExtension.SalesDocument AND SalesDocumentItem = _ItemExtension.SalesDocumentItem  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesDocument = _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]
;