ABAP 740新的OPEN SQL增強特性
The following open SQL statement looks a little weird, however it could really works in 740.
(1) The field name of my structure ty_my_sflight is different from field defined in sflight, so in SQL statement I use the format AS to move the content from DB to the corresponding fields of my internal table.
(2) I want to calculate the percent about how many seat are occupied and put the result into my field my_seatrate. Now I could push the calculation to DB layer instead of calculating it in ABAP side.
(3) The logic to determine the flight price in the example shows that we could define some application logic in open SQL statement.
(4) Since we are using new SQL enhanced syntax in 740, it is required that all variables defined in the application code must be escaped with flag “@” when they are being used in the SQL, as is shown in line 28 and 33. The original data displayed in SE16:
The content of internal table lt_flight is listed below. We observed that the price for the 2013-2-13 and 2013-3-13 is reduced correctly, also the seat occupation percent.
By the way, here below is a slide which talks about the optimization on two ERP transaction in HANA. There are several kinds of optimization categories and one of them also uses the similar syntax described in this blog:
The performance before HANA optimization:
The performance after optimization in HANA:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2712206/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ABAP 740裡的新語法 - LET表示式
- ABAP OPEN SQL裡OPEN CURSOR和SELECT的比較SQL
- Java 16 新特性:instanceof增強Java
- C# 9 新特性 —— 增強的 foreachC#
- C# 9 新特性 —— 增強的模式匹配C#模式
- ABAP 7.55 新特性 (一)
- ABAP的OPEN SQL和Hybris Commerce的Flexible Search簡介SQLFlex
- LightDB23.1新特性支援Oracle hint增強DB2Oracle
- 利用ABAP 740的新關鍵字REDUCE完成一個實際工作任務
- ABAP 740的新語法 - 使用BO association的方式進行內表連線操作
- 在 ABAP 層執行 Open SQL 的幕後操作 - 武俠版SQL
- 一個小技巧,讓您的ABAP OPEN SQL具有自描述效果SQL
- ABAP-MB56欄位增強
- 使用 ABAP Open SQL 的 Select AS 別名,提高程式碼可讀性SQL
- 深度解讀 MongoDB 最全面的增強版本 4.4 新特性MongoDB
- Java高階特性增強-鎖Java
- 如何對ABAP SE80 workbench做增強
- 如何手動透過增強的方式,給 SAP ABAP 資料庫表增添新的欄位資料庫
- 23C新特性SQL防火牆 (SQL Firewall)SQL防火牆
- SQL Server 2008中Analysis Services的新特性——深入SQL Server 2008SQLServer
- 一步步建立ABAP post exit增強
- 23c 新特性之SQL_transpilerSQL
- SQL?Server新特性SequenceNumber用法介紹YTZBSQLServer
- MySQL 8 新特性之自增主鍵的持久化MySql持久化
- 【10g SQL新特性】q-quote使用SQL
- IBM Power 740 小型機 p740IBM
- [20181107]18c新特性取消執行的sql.txtSQL
- SAP ABAP SQL的execution plan和cacheSQL
- Oracle 19c 新特性:ADG的自動DML重定向增強讀寫分離--ADG_REDIRECT_DMLOracle
- Oracle 20c 新特性:SQL 巨集支援(SQL Macro)Scalar 和 Table 模式OracleSQLMac模式
- C# 11 的這個新特性,我願稱之最強!C#
- 如何增強 ABAP 系統,允許開發人員給 ABAP 物件設定標籤,方便快速檢索物件
- 史上最快、最強大的 Gradle 5.0 釋出,新特性全解!Gradle
- 23c 新特性之實時SQL計劃管理SQL
- power 740 p740 連線遠端管理模組
- 740. Delete and Earndelete
- 新特性
- Swift 4.1 的新特性Swift