P_SalesOrderBOMHeader

DDL: P_SALESORDERBOMHEADER SQL: PKBOMHEADER Type: view BASIC

Private view for Sales order BoM header

P_SalesOrderBOMHeader is a Basic CDS View that provides data about "Private view for Sales order BoM header" in SAP S/4HANA. It reads from 1 data source (I_BillOfMaterial) and exposes 57 fields with key fields BillOfMaterialHeaderUUID, BillOfMaterialVariantUsage, BillOfMaterialCategory, BillOfMaterial, BillOfMaterialVariant.

Data Sources (1)

SourceAliasJoin Type
I_BillOfMaterial orderBOM from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PKBOMHEADER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Private view for Sales order BoM header view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterialHeaderUUID I_BillOfMaterial BillOfMaterialHeaderUUID
KEY BillOfMaterialVariantUsage I_BillOfMaterial BillOfMaterialVariantUsage
KEY BillOfMaterialCategory I_BillOfMaterial BillOfMaterialCategory
KEY BillOfMaterial I_BillOfMaterial BillOfMaterial
KEY BillOfMaterialVariant I_BillOfMaterial BillOfMaterialVariant
KEY BillOfMaterialVersion I_BillOfMaterial BillOfMaterialVersion
KEY EngineeringChangeDocument I_BillOfMaterial EngineeringChangeDocument
KEY Material _Kdst Material
KEY Plant _Kdst Plant
SalesOrder _Kdst SalesOrder
SalesOrderItem _Kdst SalesOrderItem
BOMCharUUID
BillOfMaterialUUID I_BillOfMaterial BillOfMaterialUUID
IsMultipleBOMAlt I_BillOfMaterial IsMultipleBOMAlt
BOMHeaderInternalChangeCount I_BillOfMaterial BOMHeaderInternalChangeCount
BOMPrioritizedVersion I_BillOfMaterial BOMPrioritizedVersion
BOMExplosionApplication I_BillOfMaterial BOMExplosionApplication
BOMUsagePriority I_BillOfMaterial BOMUsagePriority
BillOfMaterialAuthsnGrp I_BillOfMaterial BillOfMaterialAuthsnGrp
BOMVersionStatus I_BillOfMaterial BOMVersionStatus
MaterialToLotSizeQuantity
MatFromLotSizeQuantity
IsVersionBillOfMaterial I_BillOfMaterial IsVersionBillOfMaterial
IsLatestBOMVersion I_BillOfMaterial IsLatestBOMVersion
BOMTechnicalType I_BillOfMaterial BOMTechnicalType
BOMGroup I_BillOfMaterial BOMGroup
IndicatorIsBOMWithDateHistory I_BillOfMaterial IndicatorIsBOMWithDateHistory
IndicatorIsBOMChangedWithHist I_BillOfMaterial IndicatorIsBOMChangedWithHist
BOMHeaderText I_BillOfMaterial BOMHeaderText
BOMAlternativeText I_BillOfMaterial BOMAlternativeText
LongTextLanguage I_BillOfMaterial LongTextLanguage
LongTextExists
BillOfMaterialStatus I_BillOfMaterial BillOfMaterialStatus
HeaderValidityEndDate I_BillOfMaterial HeaderValidityEndDate
HeaderValidityStartDate I_BillOfMaterial HeaderValidityStartDate
ChgToEngineeringChgDocument I_BillOfMaterial ChgToEngineeringChgDocument
IsMarkedForDeletion I_BillOfMaterial IsMarkedForDeletion
BOMIsArchivedForDeletion I_BillOfMaterial BOMIsArchivedForDeletion
IsConfiguredMaterial I_BillOfMaterial IsConfiguredMaterial
BOMIsConfigurableasBOMIsConfigurable
IsALEasIsALE
BOMHeaderBaseUnit I_BillOfMaterial BOMHeaderBaseUnit
BOMHeaderQuantityInBaseUnit I_BillOfMaterial BOMHeaderQuantityInBaseUnit
RecordCreationDate I_BillOfMaterial RecordCreationDate
LastChangeDate I_BillOfMaterial LastChangeDate
LastChangedByUser I_BillOfMaterial LastChangedByUser
CreatedByUser I_BillOfMaterial CreatedByUser
BOMIsToBeDeleted I_BillOfMaterial BOMIsToBeDeleted
DocumentIsCreatedByCAD I_BillOfMaterial DocumentIsCreatedByCAD
LaboratoryOrDesignOffice I_BillOfMaterial LaboratoryOrDesignOffice
LastChangeDateTime I_BillOfMaterial LastChangeDateTime
BOMAssetNtwkHndovrIsRelevant I_BillOfMaterial BOMAssetNtwkHndovrIsRelevant
MaterialBOMObjectID
BOMPredecessorVersion
BOMPredecessorVersion I_BillOfMaterial BOMPredecessorVersion
_Kdst _Kdst
_UnitOfMeasure _UnitOfMeasure
@AbapCatalog.sqlViewName: 'PKBOMHEADER'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.private: true
@VDM.viewType: #BASIC
@ClientHandling.algorithm : #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Private view for Sales order BoM header'
define view P_SalesOrderBOMHeader as select from I_BillOfMaterial as orderBOM
{
  key orderBOM.BillOfMaterialHeaderUUID     as BillOfMaterialHeaderUUID,
  key orderBOM.BillOfMaterialVariantUsage   as BillOfMaterialVariantUsage,
  key orderBOM.BillOfMaterialCategory       as BillOfMaterialCategory,
  key orderBOM.BillOfMaterial               as BillOfMaterial,
  key orderBOM.BillOfMaterialVariant        as BillOfMaterialVariant,
  key orderBOM.BillOfMaterialVersion        as BillOfMaterialVersion,
  key orderBOM.EngineeringChangeDocument    as EngineeringChangeDocument,
  key _Kdst.Material                        as Material,
  key _Kdst.Plant                           as Plant,
      _Kdst.SalesOrder                      as SalesOrder,
      _Kdst.SalesOrderItem                  as SalesOrderItem,

      //orderBOM.BillOfMaterialVariantUsage                                                                                                                                     as BillOfMaterialVariantUsage,

      // orderBOM.BillOfMaterialHeaderUUID                                                                                                                                        as BillOfMaterialHeaderUUID,

      --      bintohex( orderBOM.BillOfMaterialHeaderUUID )                                                                                                                            as BOMCharUUID,
      orderBOM.BillOfMaterialUUID           as BillOfMaterialUUID,
      orderBOM.IsMultipleBOMAlt             as IsMultipleBOMAlt,
      //@ObjectModel.readOnly: true

      orderBOM.BOMHeaderInternalChangeCount as BOMHeaderInternalChangeCount,
      //@ObjectModel.readOnly: true

      orderBOM.BOMPrioritizedVersion        as BOMPrioritizedVersion,
      @Consumption.hidden: true
      //@ObjectModel.readOnly: true

      orderBOM.BOMExplosionApplication      as BOMExplosionApplication,
      //@ObjectModel.readOnly: true

      orderBOM.BOMUsagePriority             as BOMUsagePriority,
      orderBOM.BillOfMaterialAuthsnGrp      as BillOfMaterialAuthsnGrp,
      orderBOM.BOMVersionStatus             as BOMVersionStatus,
      cast( 0 as losvn )                    as MaterialToLotSizeQuantity,
      cast( 0 as losbs )                    as MatFromLotSizeQuantity,
      orderBOM.IsVersionBillOfMaterial      as IsVersionBillOfMaterial,
      orderBOM.IsLatestBOMVersion           as IsLatestBOMVersion,
      orderBOM.BOMTechnicalType             as BOMTechnicalType,
      orderBOM.BOMGroup                     as BOMGroup,
      orderBOM.IndicatorIsBOMWithDateHistory as IndicatorIsBOMWithDateHistory,
      orderBOM.IndicatorIsBOMChangedWithHist as IndicatorIsBOMChangedWithHist,
      orderBOM.BOMHeaderText                as BOMHeaderText,
      orderBOM.BOMAlternativeText           as BOMAlternativeText,
      orderBOM.LongTextLanguage             as LongTextLanguage,
      cast('' as ltxzu )                    as LongTextExists,
      orderBOM.BillOfMaterialStatus         as BillOfMaterialStatus,
      //@ObjectModel.readOnly: true

      @Semantics.businessDate.to: true
      orderBOM.HeaderValidityEndDate,
      @Semantics.businessDate.from: true
      orderBOM.HeaderValidityStartDate,
      orderBOM.ChgToEngineeringChgDocument  as ChgToEngineeringChgDocument,
      orderBOM.IsMarkedForDeletion          as IsMarkedForDeletion,
      orderBOM.BOMIsArchivedForDeletion,
      orderBOM.IsConfiguredMaterial         as IsConfiguredMaterial, -- MAST-KZKFG
      orderBOM.BOMIsConfigurable            as BOMIsConfigurable, -- MAST-KZKFG
      //@ObjectModel.readOnly: true

      orderBOM.IsALE                        as IsALE,
      @Semantics.unitOfMeasure: true
      @ObjectModel.foreignKey.association: '_UnitOfMeasure'
      orderBOM.BOMHeaderBaseUnit            as BOMHeaderBaseUnit,
      @Semantics.quantity.unitOfMeasure: 'BOMHeaderBaseUnit'
      @DefaultAggregation :#NONE
      orderBOM.BOMHeaderQuantityInBaseUnit  as BOMHeaderQuantityInBaseUnit,
      orderBOM.RecordCreationDate           as RecordCreationDate,
      orderBOM.LastChangeDate               as LastChangeDate,
      orderBOM.LastChangedByUser            as LastChangedByUser,
      orderBOM.CreatedByUser                as CreatedByUser,
      orderBOM.BOMIsToBeDeleted             as BOMIsToBeDeleted,
      orderBOM.DocumentIsCreatedByCAD       as DocumentIsCreatedByCAD,
      orderBOM.LaboratoryOrDesignOffice     as LaboratoryOrDesignOffice,
      orderBOM.LastChangeDateTime           as LastChangeDateTime,
      orderBOM.BOMAssetNtwkHndovrIsRelevant as BOMAssetNtwkHndovrIsRelevant,
      cast('' as cs_matbom_key )            as MaterialBOMObjectID,
      --   '' as BOMPredecessorVersion,
      orderBOM.BOMPredecessorVersion,
      _Kdst,
      _UnitOfMeasure
}
where
  BillOfMaterialCategory = 'K'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLOFMATERIAL",
"I_SALESORDERBOMLINK"
],
"ASSOCIATED":
[
"I_SALESORDERBOMLINK",
"I_UNITOFMEASURE"
],
"BASE":
[
"I_BILLOFMATERIAL"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/