C_QuickCreateProduct

DDL: C_QUICKCREATEPRODUCT SQL: CQPRODUCT Type: view CONSUMPTION Package: VDM_MD_PRODUCT

Consumption view for Quick Create

C_QuickCreateProduct is a Consumption CDS View that provides data about "Consumption view for Quick Create" in SAP S/4HANA. It reads from 1 data source (I_Product) and exposes 8 fields with key field Product. It has 2 associations to related views. Part of development package VDM_MD_PRODUCT.

Data Sources (1)

SourceAliasJoin Type
I_Product Product from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _UnitOfMeasureValueHelp $projection.BaseUnit = _UnitOfMeasureValueHelp.UnitOfMeasure
[0..1] I_ProductVH _Product $projection.Product = _Product.Product

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CQPRODUCT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Consumption view for Quick Create view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
UI.headerInfo.typeName Product Master view
UI.headerInfo.typeNamePlural Products view
UI.headerInfo.imageUrl ProductImageURL view
UI.headerInfo.title.value ProductDescription view
UI.headerInfo.description.value Product view
Search.searchable true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY Product I_Product Product
ProductType I_Product ProductType
ArticleCategory I_Product ArticleCategory
ProductGroup I_Product ProductGroup
ProductImageURL
BaseUnit I_Product BaseUnit
_Product _Product
_UnitOfMeasureValueHelp _UnitOfMeasureValueHelp
@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

}