Advertisement
Jaehoon

EXT201_3.5.5

Feb 11th, 2020
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 2.74 KB | None | 0 0
  1. @EndUserText.label: 'Travel projection view - Processor'
  2. @AccessControl.authorizationCheck: #CHECK
  3.  
  4. @UI: {
  5.  headerInfo: { typeName: 'Travel', typeNamePlural: 'Travels', title: { type: #STANDARD, value: 'TravelID' } } }
  6.  
  7. @Search.searchable: true
  8.  
  9. define root view entity ZC_TRAVEL_M_XXX as projection on ZI_TRAVEL_M_XXX {
  10.  @UI.facet: [ { id:              'Travel',
  11.                 purpose:         #STANDARD,
  12.                 type:            #IDENTIFICATION_REFERENCE,
  13.                 label:           'Travel',
  14.                 position:        10 } ]
  15.  
  16.  @UI: {
  17.      lineItem:       [ { position: 10, importance: #HIGH } ],
  18.      identification: [ { position: 10, label: 'Travel ID [1,...,99999999]' } ] }
  19.  @Search.defaultSearchElement: true
  20.  key travel_id          as TravelID,
  21.  
  22.  @UI: {
  23.      lineItem:       [ { position: 20, importance: #HIGH } ],
  24.      identification: [ { position: 20 } ],
  25.      selectionField: [ { position: 20 } ] }
  26.  @Consumption.valueHelpDefinition: [{ entity : {name: '/DMO/I_Agency', element: 'AgencyID'  } }]
  27.  
  28.  @ObjectModel.text.element: ['AgencyName'] ----meaning?
  29.  @Search.defaultSearchElement: true
  30.  agency_id          as AgencyID, _Agency.Name       as AgencyName,
  31.  
  32.  @UI: {
  33.      lineItem:       [ { position: 30, importance: #HIGH } ],
  34.      identification: [ { position: 30 } ],
  35.      selectionField: [ { position: 30 } ] }
  36.  @Consumption.valueHelpDefinition: [{ entity : {name: '/DMO/I_Customer', element: 'CustomerID'  } }]
  37.  
  38.  @ObjectModel.text.element: ['CustomerName']
  39.  @Search.defaultSearchElement: true
  40.  customer_id        as CustomerID,
  41.  
  42.  @UI.hidden: true
  43.  _Customer.LastName as CustomerName,
  44.  
  45.  @UI: {
  46.      lineItem:       [ { position: 40, importance: #MEDIUM } ],
  47.      identification: [ { position: 40 } ] }
  48.  begin_date         as BeginDate,
  49.  
  50.  @UI: {
  51.      lineItem:       [ { position: 41, importance: #MEDIUM } ],
  52.      identification: [ { position: 41 } ] }
  53.  end_date           as EndDate,
  54.  
  55.  @UI: {
  56.      lineItem:       [ { position: 50, importance: #MEDIUM } ],
  57.      identification: [ { position: 50, label: 'Total Price' } ] }
  58.  @Semantics.amount.currencyCode: 'CurrencyCode'
  59.  total_price        as TotalPrice,
  60.  
  61.  @Consumption.valueHelpDefinition: [{entity: {name: 'I_Currency', element: 'Currency' }}]
  62.  currency_code      as CurrencyCode,
  63.  
  64.  @UI: {
  65.        lineItem:       [ { position: 60, importance: #HIGH },
  66.                          { type: #FOR_ACTION, dataAction: 'acceptTravel', label: 'Accept Travel' } ],
  67.      identification: [ { position: 60, label: 'Status [O(Open)|A(Accepted)|X(Canceled)]' } ]  }
  68.  overall_status     as TravelStatus,
  69.  
  70.  @UI.identification: [ { position: 70, label: 'Remarks' } ]
  71.  description as Description,
  72.  
  73.  @UI.hidden: true
  74.  last_changed_at    as LastChangedAt
  75.  
  76.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement