@AbapCatalog.sqlViewName : 'IDELIVWREFQC'
@VDM.viewType: #BASIC
@ClientHandling.type: #CLIENT_DEPENDENT
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@ObjectModel: {
compositionRoot: true ,
semanticKey: ['DeliveryDocument'],
createEnabled: true ,
deleteEnabled: true ,
updateEnabled: true ,
usageType: { serviceQuality: #B, sizeCategory: #L, dataClass: #TRANSACTIONAL }
}
@EndUserText.label : 'Quick Create Deliv with reference TP'
define view I_DelivWthRefQuickCreate as select from I_DeliveryDocument as DeliveryDocument
// needed for distribution channel and division
association [0..*] to I_DeliveryDocumentItem as _DeliveryDocumentItem
on $projection.OutboundDelivery = _DeliveryDocumentItem.DeliveryDocument
{
key DeliveryDocument.DeliveryDocument as OutboundDelivery,
@ObjectModel.mandatory: true
cast ('' as vgbel) as ReferenceSDDocument,
@ObjectModel.mandatory: true
@EndUserText: { label: 'Filter by Shipping Point',
quickInfo: 'Filter Schedule Lines by Shipping Point' }
DeliveryDocument.ShippingPoint,
@EndUserText: { label: 'Filter by Date',
quickInfo: 'Filter Schedule Lines by Date' }
cast ($session.system_date as datum) as DeliveryDate,
//Quick View
@UI.textArrangement: #TEXT_FIRST
DeliveryDocument.DeliveryDocumentType,
DeliveryDocument.SalesOrganization,
_DeliveryDocumentItem.DistributionChannel,
_DeliveryDocumentItem.Division,
DeliveryDocument.ShipToParty,
@EndUserText: { label: 'Planned GI Date',
quickInfo: 'Planned GI Date' }
DeliveryDocument.PlannedGoodsIssueDate,
_DeliveryDocumentItem.ReferenceSDDocument as ReferenceDocument,
//Associations
_ShippingPoint,
_DeliveryDocumentType,
_SalesOrganization,
_DeliveryDocumentItem._DistributionChannel as _DistributionChannel,
_DeliveryDocumentItem._Division as _Division,
_ShipToParty,
_DeliveryDocumentItem._ReferenceSDDocument as _ReferenceSDDocument
} group by
//multiplicity of items >1..1 document crashes in quick view
_DeliveryDocumentItem.DistributionChannel,
_DeliveryDocumentItem.Division,
_DeliveryDocumentItem.ReferenceSDDocument,
DeliveryDocument.DeliveryDocument,
DeliveryDocument.ShippingPoint,
DeliveryDocument.DeliveryDocumentType,
DeliveryDocument.SalesOrganization,
DeliveryDocument.ShipToParty,
DeliveryDocument.PlannedGoodsIssueDate
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_DELIVERYDOCUMENT",
"I_DELIVERYDOCUMENTITEM"
],
"ASSOCIATED":
[
"I_CUSTOMER",
"I_DELIVERYDOCUMENTITEM",
"I_DELIVERYDOCUMENTTYPE",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_SALESDOCUMENT",
"I_SALESORGANIZATION",
"I_SHIPPINGPOINT"
],
"BASE":
[
"I_DELIVERYDOCUMENT",
"I_DELIVERYDOCUMENTITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
I_DelivWthRefQuickCreate view