@AbapCatalog.sqlViewName: 'IDELIVWOREFQC'
@VDM.viewType: #BASIC
@ClientHandling.type: #CLIENT_DEPENDENT
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@ObjectModel: {
compositionRoot: true,
semanticKey: ['OutboundDelivery'],
createEnabled: true,
deleteEnabled: true,
updateEnabled: true,
usageType: { serviceQuality: #B, sizeCategory: #L, dataClass: #TRANSACTIONAL }
}
@EndUserText.label: 'Quick Create Delivery w/o reference'
define view I_DelivWthoutRefQuickCreate as select from I_DeliveryDocument as DeliveryDocument
association[0..*] to I_DelivItmWthoutRefQuickCrte as _DeliveryItemQuickCreate
on $projection.OutboundDelivery = _DeliveryItemQuickCreate.OutboundDelivery
association[0..1] to I_DistributionChannel as _DistributionChannel
on $projection.distributionchannel = _DistributionChannel.DistributionChannel
association[0..1] to I_Division as _Division
on $projection.division = _Division.Division
association[0..1] to I_Plant as _Plant on $projection.plant = _Plant.Plant
association[0..1] to I_StorageLocation as _StorageLocation
on $projection.plant = _StorageLocation.Plant
and $projection.storagelocation = _StorageLocation.StorageLocation
// needed for distribution channel and division, plant and storageLocation
association[0..*] to I_DeliveryDocumentItem as _DeliveryDocumentItem
on $projection.OutboundDelivery = _DeliveryDocumentItem.DeliveryDocument
{
key DeliveryDocument.DeliveryDocument as OutboundDelivery,
@ObjectModel.mandatory: true
DeliveryDocument.ShippingPoint,
@ObjectModel.mandatory: true
DeliveryDocument.DeliveryDocumentType,
@ObjectModel.mandatory: true
DeliveryDocument.SalesOrganization,
@ObjectModel.mandatory: true
_DeliveryDocumentItem.Division,
// cast( ' ' as spart ) as Division,
@ObjectModel.mandatory: true
_DeliveryDocumentItem.DistributionChannel,
// cast( ' ' as vtweg ) as DistributionChannel,
@ObjectModel.mandatory: true
DeliveryDocument.ShipToParty,
@ObjectModel.mandatory: true
DeliveryDocument.PlannedGoodsIssueDate,
_DeliveryDocumentItem.Plant,
_DeliveryDocumentItem.StorageLocation,
//Associations
@ObjectModel.association.type: [ #TO_COMPOSITION_CHILD ]
_DeliveryItemQuickCreate,
_DeliveryDocumentType,
_SalesOrganization,
_Division,
_DistributionChannel,
_DeliveryDocumentItem,
_ShippingPoint,
_ShipToParty,
_Plant,
_StorageLocation
}
group by DeliveryDocument.DeliveryDocument,
DeliveryDocument.ShippingPoint,
DeliveryDocument.DeliveryDocumentType,
DeliveryDocument.SalesOrganization,
_DeliveryDocumentItem.Division,
_DeliveryDocumentItem.DistributionChannel,
DeliveryDocument.ShipToParty,
DeliveryDocument.PlannedGoodsIssueDate,
_DeliveryDocumentItem.Plant,
_DeliveryDocumentItem.StorageLocation
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DELIVERYDOCUMENT",
"I_DELIVERYDOCUMENTITEM"
],
"ASSOCIATED":
[
"I_CUSTOMER",
"I_DELIVERYDOCUMENTITEM",
"I_DELIVERYDOCUMENTTYPE",
"I_DELIVITMWTHOUTREFQUICKCRTE",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_PLANT",
"I_SALESORGANIZATION",
"I_SHIPPINGPOINT",
"I_STORAGELOCATION"
],
"BASE":
[
"I_DELIVERYDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/