@AbapCatalog.sqlViewName : 'CQPRODUCT'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label : 'Consumption view for Quick Create'
@VDM.viewType: #CONSUMPTION
@ObjectModel: {
semanticKey: ['Product'],
createEnabled,
updateEnabled,
deleteEnabled
}
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MASTER
@UI.headerInfo:{
typeName: 'Product Master',
typeNamePlural: 'Products',
imageUrl: 'ProductImageURL',
title: { value: 'ProductDescription'} ,
description: { value: 'Product' }
}
@Search.searchable: true
@ClientHandling.algorithm: #SESSION_VARIABLE
define view C_QuickCreateProduct
as select from I_Product as Product
//association [0..*] to C_QuickCreateProductUoM as _UnitOfMeasure on $projection.Product = _UnitOfMeasure.Product
association [0..1] to I_UnitOfMeasure as _UnitOfMeasureValueHelp on $projection.BaseUnit = _UnitOfMeasureValueHelp.UnitOfMeasure
association [0..1] to I_ProductVH as _Product on $projection.Product = _Product.Product
{
// @ObjectModel.readOnly:true
// @UI.hidden: true
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold : 0.8
@Search.ranking: #HIGH
@UI.fieldGroup:[{
qualifier: 'QuickView',
groupLabel:'Quick View ',
position: 10,
importance: #HIGH,
label: 'Product'
}]
//Product.ProductForEdit,
key Product.Product,
// @Search.defaultSearchElement: true
// @Search.fuzzinessThreshold : 0.8
// @Search.ranking: #MEDIUM
//
// @UI.selectionField.position : 20
// Product.ProductDescription,
// @UI.fieldGroup:[{
// qualifier: 'QuickCreate',
// groupLabel:'Quick Create',
// position: 10,
// importance: #HIGH,
// label: 'Product'
//
// }]
// @ObjectModel: {
// foreignKey.association : '_Product',
// mandatory: true
// }
//@UI.hidden: true
//Product.QuickCreateProductID,
@UI.fieldGroup:[{
qualifier: 'QuickView',
groupLabel:'Quick View ',
position: 20,
importance: #HIGH,
label: 'Product Type'
}]
Product.ProductType,
@UI.fieldGroup:[{
qualifier: 'QuickView',
position: 30,
importance: #HIGH,
label:'Product Category'
}]
Product.ArticleCategory,
@UI.fieldGroup:[{
qualifier: 'QuickView',
position: 40,
importance: #HIGH,
label:'Product Group '
}]
Product.ProductGroup,
@ObjectModel.readOnly: true
@Semantics.imageUrl: true
@ObjectModel.virtualElement
@ObjectModel.virtualElementCalculatedBy : 'ABAP:CL_MD_PRODUCT_ROOT_CALC_EXIT1'
cast ( '' as productimageurl ) as ProductImageURL,
@UI.fieldGroup:[{
qualifier: 'QuickView',
position: 50,
importance: #HIGH,
label:'Base Unit'
}]
@ObjectModel: {
foreignKey.association : '_UnitOfMeasureValueHelp'
}
//@ObjectModel.readOnly:true
Product.BaseUnit,
_Product,
_UnitOfMeasureValueHelp
}
Depth:
1
2
3
4
5
All
Reload
C_QuickCreateProduct view