C_MaterialDocumentItemTP
Manage Material Document Item
C_MaterialDocumentItemTP is a Consumption CDS View that provides data about "Manage Material Document Item" in SAP S/4HANA. It reads from 1 data source (R_MaterialDocumentItemTP) and exposes 128 fields with key fields MaterialDocumentYear, MaterialDocument, MaterialDocumentItem. It has 2 associations to related views. It is exposed through 3 OData services (ASQL_F5601, ASQL_F7279, UI_MATERIALDOCUMENT_MNG_V4). Part of development package MM_IM_RAP_MATDOC_UI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_MaterialDocumentItemTP | R_MaterialDocumentItemTP | projection |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_ReservationDocItemOPg | _ReservationDocumentItem | $projection.Reservation = _ReservationDocumentItem.Reservation and $projection.ReservationItem = _ReservationDocumentItem.ReservationItem |
| [0..*] | C_ReservationDocOPg | _ReservationDocument | $projection.Reservation = _ReservationDocument.Reservation |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Manage Material Document Item | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | MaterialDocumentItem | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| Metadata.allowExtensions | true | view |
OData Services (3)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F5601 | ASQL_F5601 | C2 | NOT_RELEASED | |
| ASQL_F7279 | ASQL_F7279 | C2 | NOT_RELEASED | |
| UI_MATERIALDOCUMENT_MNG_V4 | UI_MATERIALDOCUMENT_MNG_V4 | V4 | C1 | NOT_RELEASED |
Fields (128)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocumentYear | MaterialDocumentYear | Material Document Year | |
| KEY | MaterialDocument | MaterialDocument | Material Doc. | |
| KEY | MaterialDocumentItem | MaterialDocumentItem | Material Document Item | |
| MaterialDocumentLine | MaterialDocumentLine | Line ID | ||
| MaterialDocumentParentLine | MaterialDocumentParentLine | Parent ID | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| Material | Material | Vehicle Model | ||
| ProductNameasProductNamelocalized | ||||
| Plant | Plant | Valuation Area | ||
| PlantName | _Plant | PlantName | Plant Name | |
| StorageLocation | StorageLocation | StorageLocation | ||
| StorageLocationName | _StorageLocation | StorageLocationName | Storage Loc. Name | |
| IssuingOrReceivingStorageLoc | IssuingOrReceivingStorageLoc | Receiving SLoc. | ||
| IssuingOrReceivingStorLocName | _IssuingOrReceivingStorageLoc | StorageLocationName | Storage Loc. Name | |
| virtualSerialNumberProfileserail | ||||
| virtualUICT_Batchboole_d | ||||
| virtualUICT_SerialNumberboole_d | ||||
| virtualUICT_HasAccountAssignmentboole_d | ||||
| virtualUICT_GLAccountboole_d | ||||
| virtualUICT_ProfitCenterboole_d | ||||
| virtualUICT_CostCenterboole_d | ||||
| virtualUICT_ManufacturingOrderboole_d | ||||
| virtualUICT_BusinessAreaboole_d | ||||
| StorageType | StorageType | Storage Type | ||
| StorageBin | StorageBin | Storage Bin | ||
| InventoryUsabilityCode | InventoryUsabilityCode | Stock Type | ||
| QuantityInEntryUnit | QuantityInEntryUnit | Quantity in Unit of Entry | ||
| EntryUnit | EntryUnit | Unit of Entry | ||
| QuantityInBaseUnit | QuantityInBaseUnit | Quantity | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| Batch | Batch | Lot No. | ||
| ShelfLifeExpirationDate | ShelfLifeExpirationDate | SLED/BBD | ||
| ManufactureDate | ManufactureDate | Date of Manuf. | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| InventoryStockType | InventoryStockType | Stock Type | ||
| Customer | Customer | Sold-to Party | ||
| Supplier | Supplier | Supplier | ||
| IssgOrRcvgMaterial | IssgOrRcvgMaterial | Transfer Material | ||
| IssuingOrReceivingPlant | IssuingOrReceivingPlant | Transfer Plant | ||
| IssgOrRcvgBatch | IssgOrRcvgBatch | Transfer Batch | ||
| virtualUICT_IssgOrRcvgBatchboole_d | ||||
| IssgOrRcvgSpclStockInd | IssgOrRcvgSpclStockInd | Special Stock | ||
| IssuingOrReceivingValType | IssuingOrReceivingValType | Val. Type Tfr. | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| Reservation | Reservation | Reservation | ||
| ReservationItem | ReservationItem | Reservation Item | ||
| OriginalMaterialDocumentItem | OriginalMaterialDocumentItem | Orig. line itm | ||
| GoodsMovementRefDocType | GoodsMovementRefDocType | Reference Doc. Type | ||
| GoodsMovementReasonCode | GoodsMovementReasonCode | Reason for Mvmt | ||
| InventoryValuationType | InventoryValuationType | Valuation Type | ||
| ValuationArea | _Plant | ValuationArea | Valuation Area | |
| MaterialDocumentPostingType | MaterialDocumentPostingType | Type of posting | ||
| PurchaseOrder | PurchaseOrder | Purchasing Document | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| CostCenter | CostCenter | Cost Center | ||
| GLAccount | GLAccount | General Ledger | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| BusinessArea | BusinessArea | Business Area | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| SalesOrderScheduleLine | SalesOrderScheduleLine | SOrder schedule | ||
| ReferenceDocumentFiscalYear | ReferenceDocumentFiscalYear | Year Cur.Period | ||
| InvtryMgmtRefDocumentItem | InvtryMgmtRefDocumentItem | Ref. Doc. Item | ||
| InvtryMgmtReferenceDocument | InvtryMgmtReferenceDocument | Reference Doc. | ||
| DeliveryDocument | DeliveryDocument | Outbound Delivery | ||
| DeliveryDocumentItem | DeliveryDocumentItem | Outb. Delivery Item | ||
| ReversedMaterialDocumentYear | ReversedMaterialDocumentYear | Reversed Doc Year | ||
| ReversedMaterialDocument | ReversedMaterialDocument | Reversed Mat Doc | ||
| ReversedMaterialDocumentItem | ReversedMaterialDocumentItem | Reversed Doc Item | ||
| GoodsMovementIsCancelled | GoodsMovementIsCancelled | Is Item Cancelled | ||
| GoodsRecipientName | GoodsRecipientName | Recipient Name | ||
| UnloadingPointName | UnloadingPointName | Unloading Point Name | ||
| ReservationIsFinallyIssued | ReservationIsFinallyIssued | Res Final Issue | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| ManufacturingOrder | ManufacturingOrder | Order | ||
| ManufacturingOrderItem | ManufacturingOrderItem | Manufacturing Order Item | ||
| SpecialStockIdfgSalesOrder | SpecialStockIdfgSalesOrder | Stock Ident Header | ||
| SpecialStockIdfgSalesOrderItem | SpecialStockIdfgSalesOrderItem | Stock Ident Item | ||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| IsCompletelyDelivered | IsCompletelyDelivered | Is completely delivered | ||
| MaterialDocumentItemText | MaterialDocumentItemText | Text | ||
| EWMWarehouse | EWMWarehouse | Warehouse No. | ||
| EWMStorageBin | EWMStorageBin | Storage Bin | ||
| ProductStandardID | ProductStandardID | GTIN | ||
| IsAutomaticallyCreated | IsAutomaticallyCreated | Is Automatically Created | ||
| SerialNumbersAreCreatedAutomly | SerialNumbersAreCreatedAutomly | SerialNo. auto. | ||
| _AccountAssignmentCategory | _AccountAssignmentCategory | |||
| _BusinessArea | _BusinessArea | |||
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenter | _CostCenter | |||
| _Customer | _Customer | |||
| _CustomerCompanyByPlant | _CustomerCompanyByPlant | |||
| _DeliveryDocument | _DeliveryDocument | |||
| _DeliveryDocumentItem | _DeliveryDocumentItem | |||
| _EntryUnit | _EntryUnit | |||
| _GLAccount | _GLAccount | |||
| _GoodsMovementReasonCode | _GoodsMovementReasonCode | |||
| _GoodsMovementType | _GoodsMovementType | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _IssuingOrReceivingPlant | _IssuingOrReceivingPlant | |||
| _IssuingOrReceivingStorageLoc | _IssuingOrReceivingStorageLoc | |||
| _Material | _Material | |||
| _MaterialBaseUnit | _MaterialBaseUnit | |||
| _MaterialDocumentYear | _MaterialDocumentYear | |||
| _Plant | _Plant | |||
| _Product | _Product | |||
| _PurchaseOrder | _PurchaseOrder | |||
| _PurchaseOrderItem | _PurchaseOrderItem | |||
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _SalesOrderScheduleLine | _SalesOrderScheduleLine | |||
| _StockType | _StockType | |||
| _StockType_2 | _StockType_2 | |||
| _StorageLocation | _StorageLocation | |||
| _Supplier | _Supplier | |||
| _SupplierCompanyByPlant | _SupplierCompanyByPlant | |||
| _WBSElement | _WBSElement | |||
| _ReservationDocument | _ReservationDocument | |||
| _ReservationDocumentItem | _ReservationDocumentItem | |||
| _ProductPlantBasic | _ProductPlantBasic | |||
| _ProductStorageLocation | _ProductStorageLocation |
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_MaterialDocumentItemTP.
-- 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_MaterialDocumentItemTP AS
SELECT
MaterialDocumentYear,
MaterialDocument,
MaterialDocumentItem,
MaterialDocumentLine,
MaterialDocumentParentLine,
GoodsMovementType,
Material,
_Product._Text.ProductName as ProductName : localized AS ProductNameasProductNamelocalized,
Plant,
_Plant.PlantName AS PlantName,
StorageLocation,
_StorageLocation.StorageLocationName AS StorageLocationName,
IssuingOrReceivingStorageLoc,
_IssuingOrReceivingStorageLoc.StorageLocationName AS IssuingOrReceivingStorLocName,
virtual SerialNumberProfile : serail AS virtualSerialNumberProfileserail,
virtual UICT_Batch : boole_d AS virtualUICT_Batchboole_d,
virtual UICT_SerialNumber : boole_d AS virtualUICT_SerialNumberboole_d,
virtual UICT_HasAccountAssignment : boole_d AS virtualUICT_HasAccountAssignmentboole_d,
virtual UICT_GLAccount : boole_d AS virtualUICT_GLAccountboole_d,
virtual UICT_ProfitCenter : boole_d AS virtualUICT_ProfitCenterboole_d,
virtual UICT_CostCenter : boole_d AS virtualUICT_CostCenterboole_d,
virtual UICT_ManufacturingOrder : boole_d AS virtualUICT_ManufacturingOrderboole_d,
virtual UICT_BusinessArea : boole_d AS virtualUICT_BusinessAreaboole_d,
StorageType,
StorageBin,
InventoryUsabilityCode,
QuantityInEntryUnit,
EntryUnit,
QuantityInBaseUnit,
MaterialBaseUnit,
Batch,
ShelfLifeExpirationDate,
ManufactureDate,
InventorySpecialStockType,
InventoryStockType,
Customer,
Supplier,
IssgOrRcvgMaterial,
IssuingOrReceivingPlant,
IssgOrRcvgBatch,
virtual UICT_IssgOrRcvgBatch : boole_d AS virtualUICT_IssgOrRcvgBatchboole_d,
IssgOrRcvgSpclStockInd,
IssuingOrReceivingValType,
WBSElementInternalID,
Reservation,
ReservationItem,
OriginalMaterialDocumentItem,
GoodsMovementRefDocType,
GoodsMovementReasonCode,
InventoryValuationType,
_Plant.ValuationArea AS ValuationArea,
MaterialDocumentPostingType,
PurchaseOrder,
PurchaseOrderItem,
CostCenter,
GLAccount,
CompanyCode,
PostingDate,
DocumentDate,
ControllingArea,
ProfitCenter,
AccountAssignmentCategory,
BusinessArea,
SalesOrder,
SalesOrderItem,
SalesOrderScheduleLine,
ReferenceDocumentFiscalYear,
InvtryMgmtRefDocumentItem,
InvtryMgmtReferenceDocument,
DeliveryDocument,
DeliveryDocumentItem,
ReversedMaterialDocumentYear,
ReversedMaterialDocument,
ReversedMaterialDocumentItem,
GoodsMovementIsCancelled,
GoodsRecipientName,
UnloadingPointName,
ReservationIsFinallyIssued,
ProjectNetwork,
ManufacturingOrder,
ManufacturingOrderItem,
SpecialStockIdfgSalesOrder,
SpecialStockIdfgSalesOrderItem,
FiscalYearPeriod,
FiscalYearVariant,
IsCompletelyDelivered,
MaterialDocumentItemText,
EWMWarehouse,
EWMStorageBin,
ProductStandardID,
IsAutomaticallyCreated,
SerialNumbersAreCreatedAutomly
FROM R_MaterialDocumentItemTP
LEFT OUTER JOIN C_ReservationDocItemOPg AS _ReservationDocumentItem ON Reservation = _ReservationDocumentItem.Reservation AND ReservationItem = _ReservationDocumentItem.ReservationItem -- association [0..*]
LEFT OUTER JOIN C_ReservationDocOPg AS _ReservationDocument ON Reservation = _ReservationDocument.Reservation -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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