Advertisement
Jaehoon

EXT202_5.2.6

Feb 11th, 2020
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 2.30 KB | None | 0 0
  1. @EndUserText.label: 'Read product data via RFC'
  2. @ObjectModel.query.implementedBy: 'ABAP:ZCL_PRODUCT_VIA_RFC_XXX'
  3.  
  4. @UI: {
  5.   headerInfo: {
  6.   typeName: 'Product',
  7.   typeNamePlural: 'Products'
  8.   }
  9. }
  10.  
  11. define root custom entity zce_product_xxx
  12. {
  13.  
  14.       @UI.facet     : [
  15.         {
  16.           id        :       'Product',
  17.           purpose   :  #STANDARD,
  18.           type      :     #IDENTIFICATION_REFERENCE,
  19.           label     :    'Product',
  20.           position  : 10 }
  21.       ]
  22.       // DDL source code for custom entity for BAPI_EPM_PRODUCT_HEADER
  23.  
  24.       @UI           : {
  25.       lineItem      : [{position: 10, importance: #HIGH}],
  26.       identification: [{position: 10}],
  27.       selectionField: [{position: 10}]
  28.       }
  29.   key ProductId     : abap.char( 10 );
  30.       TypeCode      : abap.char( 2 );
  31.       @UI           : {
  32.       lineItem      : [{position: 20, importance: #HIGH}],
  33.       identification: [{position: 20}],
  34.       selectionField: [{position: 20}]
  35.       }
  36.       Category      : abap.char( 40 );
  37.       @UI           : {
  38.       lineItem      : [{position: 30, importance: #HIGH}],
  39.       identification: [{position: 30}]
  40.       }
  41.       Name          : abap.char( 255 );
  42.       @UI           : {
  43.       identification: [{position: 40}]
  44.       }
  45.       Description   : abap.char( 255 );
  46.       SupplierId    : abap.char( 10 );
  47.       SupplierName  : abap.char( 80 );
  48.       TaxTarifCode  : abap.int1;
  49.       @Semantics.unitOfMeasure: true
  50.       MeasureUnit   : abap.unit( 3 );
  51.       @Semantics.quantity.unitOfMeasure: 'WeightUnit'
  52.       WeightMeasure : abap.quan( 13, 3 );
  53.       @Semantics.unitOfMeasure: true
  54.       WeightUnit    : abap.unit( 3 );
  55.       @UI           : {
  56.       lineItem      : [{position: 50, importance: #HIGH}],
  57.       identification: [{position: 50}]
  58.       }
  59.       Price         : abap.dec( 23, 4 );
  60.       @Semantics.currencyCode: true
  61.       CurrencyCode  : abap.cuky( 5 );
  62.       @Semantics.quantity.unitOfMeasure: 'DimUnit'
  63.       Width         : abap.quan( 13, 3 );
  64.       @Semantics.quantity.unitOfMeasure: 'DimUnit'
  65.       Depth         : abap.quan( 13, 3 );
  66.       @Semantics.quantity.unitOfMeasure: 'DimUnit'
  67.       Height        : abap.quan( 13, 3 );
  68.       @Semantics.unitOfMeasure: true
  69.       DimUnit       : abap.unit( 3 );
  70.       ProductPicUrl : abap.char( 255 );
  71.  
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement