I_TranspOrdItemBatch

DDL: I_TRANSPORDITEMBATCH Type: view_entity BASIC Package: VDM_TM_BO_TOR

Transportation Order Item Batch

I_TranspOrdItemBatch (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

TransportationOrderItemBatch · Supply Chain

I_TranspOrdItemBatch is a Basic CDS View (Dimension) that provides data about "Transportation Order Item Batch" in SAP S/4HANA. It reads from 2 data sources (I_TransportationOrderItem_2, /scmtms/d_toriba) and exposes 12 fields with key field TranspOrdItemBatchUUID. It has 3 associations to related views. Part of development package VDM_TM_BO_TOR.

SAP Help Documentation

CategoryCDS Views for Freight Order Management
Purpose
This CDS view retrieves data relating to the batch of a transportation order item. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: TM_PURORG (Transportation Purchasing Organization) You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.

Structure
Important Fields Important fields in this view include the following: Field Name Description TranspOrdItemBatchUUID Item Batch UUID TransportationOrderItemUUID Item UUID Batch Batch Number BatchBySupplier Supplier Batch Number ManufactureDate Date of Manufacture ShelfLifeExpirationDate Shelf Life Expiration or Best-Before Date ProductID Product ID

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessSupply Chain
Application ComponentTM-FRM-2CL
CapabilitiesData Source for Defining CDS Entities,Analytical Dimension,Data Source in SQL Select,Association Target for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSupply Chain for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (2)

SourceAliasJoin Type
I_TransportationOrderItem_2 TransportationOrderItem inner
/scmtms/d_toriba TransportationOrderItemBatch from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_TransportationOrder_2 _TransportationOrder $projection.TransportationOrderUUID = _TransportationOrder.TransportationOrderUUID
[0..1] I_BatchDistinct _Batch $projection.Batch = _Batch.Batch and _Batch.Plant = '' and TransportationOrderItem.ProductID = _Batch.Material
[0..1] I_Product _Product $projection.ProductID = _Product.Product

Annotations (14)

NameValueLevelField
EndUserText.label Transportation Order Item Batch view
ObjectModel.sapObjectNodeType.name TransportationOrderItemBatch view
ObjectModel.representativeKey TranspOrdItemBatchUUID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY TranspOrdItemBatchUUID Transportation Order Item Batch UUID
TransportationOrderUUID Transportation Order UUID
TransportationOrderItemUUID Transportation Order Item UUID
Batch /scmtms/d_toriba batch_id Batch Number
BatchBySupplier /scmtms/d_toriba batch_id_supplier Supplier Batch Number
ManufactureDate /scmtms/d_toriba manufacture_date Date of Manufacture
ShelfLifeExpirationDate /scmtms/d_toriba expiration_date Shelf Life Expiration or Best-Before Date
ProductID I_TransportationOrderItem_2 ProductID Product ID
_TransportationOrder _TransportationOrder
_TransportationOrderItem _TransportationOrderItem
_Batch _Batch
_Product _Product

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 I_TranspOrdItemBatch.
-- 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 I_TranspOrdItemBatch AS
SELECT
  cast(TransportationOrderItemBatch.db_key as /scmtms/vdm_tor_itm_batch_uuid preserving type) AS TranspOrdItemBatchUUID,
  cast(TransportationOrderItemBatch.root_key as /scmtms/vdm_tor_db_key preserving type) AS TransportationOrderUUID,
  cast(TransportationOrderItemBatch.parent_key as /scmtms/vdm_tor_item_db_key preserving type) AS TransportationOrderItemUUID,
  TransportationOrderItemBatch.batch_id AS Batch,
  TransportationOrderItemBatch.batch_id_supplier AS BatchBySupplier,
  TransportationOrderItemBatch.manufacture_date AS ManufactureDate,
  TransportationOrderItemBatch.expiration_date AS ShelfLifeExpirationDate,
  TransportationOrderItem.ProductID AS ProductID
FROM /scmtms/d_toriba AS TransportationOrderItemBatch
INNER JOIN I_TransportationOrderItem_2 AS TransportationOrderItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_TransportationOrder_2 AS _TransportationOrder ON TransportationOrderUUID = _TransportationOrder.TransportationOrderUUID  -- association [1..1]
LEFT OUTER JOIN I_BatchDistinct AS _Batch ON Batch = _Batch.Batch AND _Batch.Plant = '' AND TransportationOrderItem.ProductID = _Batch.Material  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON ProductID = _Product.Product  -- association [0..1]
;