I_HandlingUnitItem

DDL: I_HANDLINGUNITITEM Type: view BASIC

Handling Unit Item

I_HandlingUnitItem is a Basic CDS View that provides data about "Handling Unit Item" in SAP S/4HANA. It reads from 1 data source (vepo) and exposes 40 fields with key fields HandlingUnitInternalID, HandlingUnitItem. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
vepo HandlingUnitItem from

Associations (10)

CardinalityTargetAliasCondition
[1..1] I_HandlingUnitHeader _HandlingUnitHeader $projection.HandlingUnitInternalID = _HandlingUnitHeader.HandlingUnitInternalID
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_UnitOfMeasure _BaseUnitOfMeasure _BaseUnitOfMeasure.UnitOfMeasure = $projection.HandlingUnitQuantityUnit
[0..1] I_UnitOfMeasure _AlternativeUnitOfMeasure _AlternativeUnitOfMeasure.UnitOfMeasure = $projection.HandlingUnitAltUnitOfMeasure
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..*] I_SerialNumberHandlingUnit _HandlingUnitSerialNumber _HandlingUnitSerialNumber.HandlingUnitInternalID = $projection.HandlingUnitInternalID and $projection.HandlingUnitItem = _HandlingUnitSerialNumber.HandlingUnitItem
[0..1] I_SalesDocumentItemCategory _SalesDocumentItemCategory $projection.SalesDocumentItemCategory = _SalesDocumentItemCategory.SalesDocumentItemCategory
[0..1] I_BatchCrossPlant _Batch $projection.Batch = _Batch.Batch and $projection.Material = _Batch.Material
[0..*] I_JITCallCompMaterialBasic _JITCallCompMaterialBasic $projection.HandlingUnitReferenceDocument = _JITCallCompMaterialBasic.SalesOrder and $projection.HandlingUnitRefDocumentItem = _JITCallCompMaterialBasic.SalesOrderItem

Annotations (15)

NameValueLevelField
EndUserText.label Handling Unit Item view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
AbapCatalog.sqlViewName IHANDLINGUNITIT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.representativeKey HandlingUnitItem view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.modelingPattern #NONE view
Metadata.ignorePropagatedAnnotations true view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY HandlingUnitInternalID venum
KEY HandlingUnitItem vepos
HandlingUnitExternalID _HandlingUnitHeader HandlingUnitExternalID
HandlingUnitTypeOfContent velin
HandlingUnitReferenceDocument vbeln
HandlingUnitRefDocumentItem posnr
SDDocumentCategory vbtyp
HandlingUnitNestedInternalID unvel
HandlingUnitQuantity vemng
HandlingUnitQuantityUnit vemeh
HandlingUnitAltUnitOfMeasure altme
HandlingUnitNrOfAuxPackgMat veanz
HandlingUnitItemIsSupplement kzbei
Material matnr
Batch charg
Plant werks
StorageLocation lgort
ConfigurationObject cuobj
InventorySpecialStockType sobkz
SpecialStockNumber sonum
HandlingUnitInspectLotNumber qplos
HandlingUnitNumberOfSerialNumb anzsn
SerialNumberProfile serail
SalesDocumentItemCategory pstyv
HandlingUnitGenDeliveryItem posnr_gen
MaterialByCustomer p_material
HandlingUnitGoodsReceiptDate wdatu
ShelfLifeExpirationDate vfdat
StockSegment sgt_scat
HandlingUnitItemUUID handle_vepo
_HandlingUnitHeader _HandlingUnitHeader
_BaseUnitOfMeasure _BaseUnitOfMeasure
_AlternativeUnitOfMeasure _AlternativeUnitOfMeasure
_Material _Material
_Plant _Plant
_StorageLocation _StorageLocation
_SalesDocumentItemCategory _SalesDocumentItemCategory
_Batch _Batch
_JITCallCompMaterialBasic _JITCallCompMaterialBasic
_HandlingUnitSerialNumber _HandlingUnitSerialNumber
@EndUserText.label: 'Handling Unit Item'
@VDM.viewType: #BASIC
@VDM.lifecycle.contract.type:  #PUBLIC_LOCAL_API
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED

@AbapCatalog: {
    sqlViewName: 'IHANDLINGUNITIT',
    compiler.compareFilter: true,
    preserveKey:true
}

@ObjectModel: {
//   semanticKey:       [ 'ExternalId' ],

//  representativeKey: 'HandlingUnitInternalId',

    representativeKey: 'HandlingUnitItem',
    usageType: {
     serviceQuality:  #C,
     dataClass:       #MIXED,
     sizeCategory:    #XL
   },
   supportedCapabilities: [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE ],
   modelingPattern: #NONE
}

@Metadata.ignorePropagatedAnnotations: true

define view I_HandlingUnitItem
  as select from vepo as HandlingUnitItem
  association [1..1] to I_HandlingUnitHeader        as _HandlingUnitHeader        on  $projection.HandlingUnitInternalID = _HandlingUnitHeader.HandlingUnitInternalID
  association [0..1] to I_Plant                     as _Plant                     on  $projection.Plant = _Plant.Plant
  association [0..1] to I_UnitOfMeasure             as _BaseUnitOfMeasure         on  _BaseUnitOfMeasure.UnitOfMeasure = $projection.HandlingUnitQuantityUnit
  association [0..1] to I_UnitOfMeasure             as _AlternativeUnitOfMeasure  on  _AlternativeUnitOfMeasure.UnitOfMeasure = $projection.HandlingUnitAltUnitOfMeasure
  association [0..1] to I_Material                  as _Material                  on  $projection.Material = _Material.Material
  association [0..1] to I_StorageLocation           as _StorageLocation           on  $projection.Plant           = _StorageLocation.Plant
                                                                                  and $projection.StorageLocation = _StorageLocation.StorageLocation
  association [0..*] to I_SerialNumberHandlingUnit  as _HandlingUnitSerialNumber  on  _HandlingUnitSerialNumber.HandlingUnitInternalID = $projection.HandlingUnitInternalID
                                                                                  and $projection.HandlingUnitItem                     = _HandlingUnitSerialNumber.HandlingUnitItem
  //  association [0..1]  to C_SrlNmbrAsGprfTemp          as _SerialNumberProfile        on _SerialNumberProfile.SerialNumberProfile = $projection.SerialNumberProfile

  association [0..1] to I_SalesDocumentItemCategory as _SalesDocumentItemCategory on  $projection.SalesDocumentItemCategory = _SalesDocumentItemCategory.SalesDocumentItemCategory
  association [0..1] to I_BatchCrossPlant           as _Batch                     on  $projection.Batch    = _Batch.Batch
                                                                                  and $projection.Material = _Batch.Material
  association [0..*] to I_JITCallCompMaterialBasic  as _JITCallCompMaterialBasic  on  $projection.HandlingUnitReferenceDocument = _JITCallCompMaterialBasic.SalesOrder
                                                                                  and $projection.HandlingUnitRefDocumentItem   = _JITCallCompMaterialBasic.SalesOrderItem
{
  @ObjectModel.foreignKey.association: '_HandlingUnitHeader'
  key        venum                                      as HandlingUnitInternalID,
  key        vepos                                      as HandlingUnitItem,

             _HandlingUnitHeader.HandlingUnitExternalID as HandlingUnitExternalID,

             velin                                      as HandlingUnitTypeOfContent,
             vbeln                                      as HandlingUnitReferenceDocument,
             posnr                                      as HandlingUnitRefDocumentItem,
             vbtyp                                      as SDDocumentCategory,
             unvel                                      as HandlingUnitNestedInternalID,
             @Semantics.quantity.unitOfMeasure: 'HandlingUnitQuantityUnit'
             vemng                                      as HandlingUnitQuantity,
             vemeh                                      as HandlingUnitQuantityUnit,
             altme                                      as HandlingUnitAltUnitOfMeasure,
             veanz                                      as HandlingUnitNrOfAuxPackgMat,
             kzbei                                      as HandlingUnitItemIsSupplement,
             matnr                                      as Material,
             charg                                      as Batch,
             werks                                      as Plant,
             lgort                                      as StorageLocation,
             cuobj                                      as ConfigurationObject,
             sobkz                                      as InventorySpecialStockType,
             sonum                                      as SpecialStockNumber,
             qplos                                      as HandlingUnitInspectLotNumber,
             anzsn                                      as HandlingUnitNumberOfSerialNumb,
             serail                                     as SerialNumberProfile,
             pstyv                                      as SalesDocumentItemCategory,
             posnr_gen                                  as HandlingUnitGenDeliveryItem,
             p_material                                 as MaterialByCustomer,
             wdatu                                      as HandlingUnitGoodsReceiptDate,
             vfdat                                      as ShelfLifeExpirationDate,
             sgt_scat                                   as StockSegment,
             handle_vepo                                as HandlingUnitItemUUID,


             // Associations

             _HandlingUnitHeader,
             _BaseUnitOfMeasure,
             _AlternativeUnitOfMeasure,
             _Material,
             _Plant,
             _StorageLocation,
             _SalesDocumentItemCategory,
             _Batch,
             _JITCallCompMaterialBasic,
             _HandlingUnitSerialNumber
             //_SerialNumberProfile,

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_HANDLINGUNITHEADER",
"VEPO"
],
"ASSOCIATED":
[
"I_BATCHCROSSPLANT",
"I_HANDLINGUNITHEADER",
"I_JITCALLCOMPMATERIALBASIC",
"I_MATERIAL",
"I_PLANT",
"I_SALESDOCUMENTITEMCATEGORY",
"I_SERIALNUMBERHANDLINGUNIT",
"I_STORAGELOCATION",
"I_UNITOFMEASURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/