R_StockTransportOrderItemTP
Item in Stock Transport Order - TP
R_StockTransportOrderItemTP is a Transactional CDS View that provides data about "Item in Stock Transport Order - TP" in SAP S/4HANA. It reads from 1 data source (R_StockTransportOrderItem) and exposes 97 fields with key fields StockTransportOrder, StockTransportOrderItem. It has 6 associations to related views. Part of development package RAP_MM_STO.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_StockTransportOrderItem | StockTransportOrderItem | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_StockTransportOrderItemBatch | _STOItemBatch | $projection.StockTransportOrder = _STOItemBatch.StockTransportOrder and $projection.StockTransportOrderItem = _STOItemBatch.StockTransportOrderItem ----Extension |
| [0..1] | R_STOShippingTP | _STOShipping | |
| [0..*] | R_STOScheduleLineTP | _STOScheduleLine | |
| [0..*] | R_STOItemNoteTP | _STOItemNote | |
| [0..*] | R_STOItemPricingElementTP | _STOItemPricingElement | |
| [0..*] | R_STOAccountAssignmentTP | _STOAccountAssignment | |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | StockTransportOrderItem | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.representativeKey | StockTransportOrderItem | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Item in Stock Transport Order - TP | view |
Fields (97)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StockTransportOrder | StockTransportOrder | STO Number | |
| KEY | StockTransportOrderItem | StockTransportOrderItem | STO Item | |
| STOItemUniqueID | STOItemUniqueID | Document Item | ||
| StockTransportOrderItemText | StockTransportOrderItemText | |||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| ProductGroup | ProductGroup | Product Sold Group | ||
| Product | Product | Product Sold | ||
| ProductTypeCode | ProductTypeCode | Product Type Group | ||
| ManufacturerMaterial | ManufacturerMaterial | MPN: Material | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| IsCompletelyDelivered | IsCompletelyDelivered | Is completely delivered | ||
| IsFinallyInvoiced | IsFinallyInvoiced | Final Invoice | ||
| GoodsReceiptIsExpected | GoodsReceiptIsExpected | Goods Receipt | ||
| OutwardDeliveryIsComplete | OutwardDeliveryIsComplete | Final Delivery | ||
| InvoiceIsExpected | InvoiceIsExpected | Invoice Receipt | ||
| InvoiceIsGoodsReceiptBased | InvoiceIsGoodsReceiptBased | GR-Based IV | ||
| UnlimitedOverdeliveryIsAllowed | UnlimitedOverdeliveryIsAllowed | Unlimited Tol. | ||
| OverdelivTolrtdLmtRatioInPct | OverdelivTolrtdLmtRatioInPct | Overdeliv. Tol. | ||
| UnderdelivTolrtdLmtRatioInPct | UnderdelivTolrtdLmtRatioInPct | Underdel. Tol. | ||
| RequisitionerName | RequisitionerName | Requisitioner | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| STOItemCategory | STOItemCategory | Item Category | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| ItemVolumeUnit | ItemVolumeUnit | Volume Unit | ||
| ItemWeightUnit | ItemWeightUnit | Unit of Weight | ||
| PricingDateControl | PricingDateControl | Pr. Date Cat. | ||
| DeliveryDocumentType | DeliveryDocumentType | Delivery Type | ||
| IssuingStorageLocation | IssuingStorageLocation | Iss. Stor. Loc. | ||
| IsStatisticalItem | IsStatisticalItem | Statisticl.Indicator | ||
| PurchasingParentItem | PurchasingParentItem | Parent Item No | ||
| IsReturnsItem | IsReturnsItem | Returns Item | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| PurchasingInfoRecord | PurchasingInfoRecord | Info Record | ||
| NetAmount | NetAmount | Stated Amount | ||
| EffectiveAmount | EffectiveAmount | Effective value | ||
| OrderQuantity | OrderQuantity | Quantity | ||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| ItemVolume | ItemVolume | Volume | ||
| ItemNetWeight | ItemNetWeight | Net Weight | ||
| ItemGrossWeight | ItemGrossWeight | Gross Weight | ||
| OrderPriceUnitToOrderUnitNmrtr | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion Numerator | ||
| OrdPriceUnitToOrderUnitDnmntr | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion Denominator | ||
| TaxCode | TaxCode | Tax Code | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| TaxCountry | TaxCountry | Tax Ctry/Reg. | ||
| TaxDeterminationDate | TaxDeterminationDate | Tx Determination Dte | ||
| PartialDeliveryIsAllowed | PartialDeliveryIsAllowed | Partial Deliv. | ||
| GoodsReceiptDurationInDays | GoodsReceiptDurationInDays | GR proc. time | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| MultipleAcctAssgmtDistribution | MultipleAcctAssgmtDistribution | Distribution | ||
| PartialInvoiceDistribution | PartialInvoiceDistribution | Partial invoice | ||
| ShippingInstruction | ShippingInstruction | Shipping Instr. | ||
| InventoryUsabilityCode | InventoryUsabilityCode | Stock Type | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| PurgDocSubitemCategory | PurgDocSubitemCategory | Subitem Cat. | ||
| ManualDeliveryAddressID | ManualDeliveryAddressID | Address Number | ||
| StockTransportOrderType | StockTransportOrderType | Document Type | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| SupplierConfirmationControlKey | SupplierConfirmationControlKey | Conf. Control | ||
| Subcontractor | Subcontractor | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| Batch | _STOItemBatch | Batch | Lot No. | |
| ValuationType | ValuationType | Valuation Type | ||
| ValuationCategory | ValuationCategory | Valuation Cat. | ||
| ReferenceDeliveryAddressID | ReferenceDeliveryAddressID | Reference Address | ||
| CustomerAddressID | ||||
| SubcontractorAddressID | ||||
| PlantAddressID | _Plant | AddressID | Ship-to address | |
| _CompanyCode | _CompanyCode | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _Product | _Product | |||
| _ProductGroup | _ProductGroup | |||
| _BaseUnit | _BaseUnit | |||
| _OrderPriceUnit | _OrderPriceUnit | |||
| _OrderQuantityUnit | _OrderQuantityUnit | |||
| _WeightUnit | _WeightUnit | |||
| _VolumeUnit | _VolumeUnit | |||
| _Plant | _Plant | |||
| _PurgDocumentItemCategory | _PurgDocumentItemCategory | |||
| _StorageLocation | _StorageLocation | |||
| _ValuationCategoryText | _ValuationCategoryText | |||
| _StockTransportOrder | _StockTransportOrder | |||
| _STOShipping | _STOShipping | |||
| _STOScheduleLine | _STOScheduleLine | |||
| _STOItemNote | _STOItemNote | |||
| _STOItemPricingElement | _STOItemPricingElement | |||
| _STOAccountAssignment | _STOAccountAssignment |
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_StockTransportOrderItemTP.
-- 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_StockTransportOrderItemTP AS
SELECT
StockTransportOrder,
StockTransportOrderItem,
STOItemUniqueID,
StockTransportOrderItemText,
DocumentCurrency,
PurchasingDocumentDeletionCode,
ProductGroup,
Product,
ProductTypeCode,
ManufacturerMaterial,
CompanyCode,
Plant,
StorageLocation,
OrderQuantityUnit,
NetPriceQuantity,
IsCompletelyDelivered,
IsFinallyInvoiced,
GoodsReceiptIsExpected,
OutwardDeliveryIsComplete,
InvoiceIsExpected,
InvoiceIsGoodsReceiptBased,
UnlimitedOverdeliveryIsAllowed,
OverdelivTolrtdLmtRatioInPct,
UnderdelivTolrtdLmtRatioInPct,
RequisitionerName,
BaseUnit,
STOItemCategory,
ProfitCenter,
OrderPriceUnit,
ItemVolumeUnit,
ItemWeightUnit,
PricingDateControl,
DeliveryDocumentType,
IssuingStorageLocation,
IsStatisticalItem,
PurchasingParentItem,
IsReturnsItem,
AccountAssignmentCategory,
PurchasingInfoRecord,
NetAmount,
EffectiveAmount,
OrderQuantity,
NetPriceAmount,
ItemVolume,
ItemNetWeight,
ItemGrossWeight,
OrderPriceUnitToOrderUnitNmrtr,
OrdPriceUnitToOrderUnitDnmntr,
TaxCode,
TaxJurisdiction,
TaxCountry,
TaxDeterminationDate,
PartialDeliveryIsAllowed,
GoodsReceiptDurationInDays,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
MultipleAcctAssgmtDistribution,
PartialInvoiceDistribution,
ShippingInstruction,
InventoryUsabilityCode,
InventorySpecialStockType,
PurgDocSubitemCategory,
ManualDeliveryAddressID,
StockTransportOrderType,
PurchasingOrganization,
PurchasingGroup,
SupplierConfirmationControlKey,
Subcontractor,
Customer,
_STOItemBatch.Batch AS Batch,
ValuationType,
ValuationCategory,
ReferenceDeliveryAddressID,
cast(_Customer.AddressID as BT_CustomerAddressID preserving type) AS CustomerAddressID,
cast(_Subcontractor.AddressID as BT_SubcontractorAddressID preserving type) AS SubcontractorAddressID,
_Plant.AddressID AS PlantAddressID
FROM R_StockTransportOrderItem AS StockTransportOrderItem
LEFT OUTER JOIN P_StockTransportOrderItemBatch AS _STOItemBatch ON StockTransportOrder = _STOItemBatch.StockTransportOrder AND StockTransportOrderItem = _STOItemBatch.StockTransportOrderItem -- association [1..1]
LEFT OUTER JOIN R_STOShippingTP AS _STOShipping ON /* condition not available in parsed metadata */ -- association [0..1]
LEFT OUTER JOIN R_STOScheduleLineTP AS _STOScheduleLine ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_STOItemNoteTP AS _STOItemNote ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_STOItemPricingElementTP AS _STOItemPricingElement ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_STOAccountAssignmentTP AS _STOAccountAssignment ON /* condition not available in parsed metadata */ -- association [0..*]
;
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