zoukankan      html  css  js  c++  java
  • ABAP CDS ON HANA-(1)CDSビュー作成

    Basic CDS View Creation

    Open HANA Studio. Goto ABAP perspective. Open the project, Navigate to the package. Right click on the package & select New->Other ABAP Repository Object.

    1

    Expand Code Data Services & select DDL Source and finally select NEXT button.

    2

    Provide CDS view name & description. Select FINISH button.

    3

    The view editor opens up. Here we have to provide the details.

    4


    Provide SQL VIEW NAME, provide a meaningful end user text label, provide view type as BASIC.  

    On the define view statement, provide the select form as “SFLIGHT”, mention the field names marking key fields. Activate and execute the view.

    5


    @AbapCatalog.sqlViewName: ‘ZSFLIGHTVIEW’
    @AbapCatalog.compiler.compareFilter: true
    @AccessControl.authorizationCheck: #NOT_REQUIRED
    @EndUserText.label: ‘Flight Information’
    @VDM.viewType: #BASIC
    define view Zflight_View as select from sflight{
                         key sflight.carrid as AirlineCode,
                         key sflight.connid as ConnectionNumber,
                         key sflight.fldate as FlightDate,
                                sflight.price as Airfare,
                                sflight.currency as FareCurrency,
                                sflight.planetype as PlaneCategory,
                                sflight.seatsmax as MaxAvailableSeats,
                                sflight.seatsocc as OccupiedSeats 
    }
    

      


    Here is the CDS view output.

    6

    Once the DATA Definition is activated,  ddl sql view is created.

    7

    8

  • 相关阅读:
    使用 Vim 搭建 JavaScript 开发环境
    SpaceVim 语言模块 erlang
    SpaceVim 语言模块 lua
    SpaceVim 语言模块 python
    SpaceVim 语言模块 elixir
    SpaceVim 语言模块 dart
    SpaceVim 语言模块 elm
    如何配置 SpaceVim
    彻底理解浏览器缓存机制
    react-创建react元素
  • 原文地址:https://www.cnblogs.com/yjyongil/p/10496235.html
Copyright © 2011-2022 走看看