当前位置:网站首页>SAP 03-amdp CDs table function using 'with' clause
SAP 03-amdp CDs table function using 'with' clause
2022-04-23 09:31:00 【rogerix4】
1. Code
-
In this case CDS Table Function On the basis of , Demonstrate the use of WITH:SAP 02-AMDP Functions for CDS Table Functions
CLASS zamdp_demo_02 DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. interfaces: IF_AMDP_MARKER_HDB. class-methods: GET_SPFLI_US for table function zamdp_cds_tabfunc_01. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zamdp_demo_02 IMPLEMENTATION. method GET_SPFLI_US by database function for hdb language sqlscript options read-only using spfli sflight. return with sflight_tmp as ( select distinct carrid,connid from sflight where carrid = 'AA' and connid = '0017' ) select t2.MANDT, t1.CARRID, t1.CONNID, t2.COUNTRYFR, t2.CITYFROM, t2.AIRPFROM, t2.COUNTRYTO, t2.CITYTO, t2.AIRPTO, t2.FLTIME, t2.DEPTIME, t2.ARRTIME, t2.DISTANCE, t2.DISTID, t2.FLTYPE, t2.PERIOD from sflight_tmp as t1 left outer join spfli as t2 On t1.carrid = t2.carrid and t1.connid = t2.connid where t2.mandt = :ip_clnt --Use Table Function Parameter and t2.COUNTRYFR = :ip_COUNTRYFR; endmethod. ENDCLASS.

2. Result display
- In the original example , Results after operation

- In this case , Use WITH Clause ( The data is used for secondary screening , More accurate than the original range )

版权声明
本文为[rogerix4]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230623504249.html
边栏推荐
- 基于ThinkPHP5版本TRC20-资金归集解决方案
- 653. 两数之和 IV - 输入 BST
- Sql1 [geek challenge 2019]
- Applet error: should have URL attribute when using navigateto, redirectto or switchtab
- [geek challenge 2019] havefun1
- Thread scheduling (priority)
- Leetcode question bank 78 Subset (recursive C implementation)
- A must see wechat applet development guide 1 - basic knowledge
- JS DOM learn three ways to create elements
- Kernel PWN learning (4) -- double fetch & 0ctf2018 baby
猜你喜欢

Two methods of building Yum source warehouse locally

Go language learning notes - array | go language from scratch

First principle mind map

Leetcode-199 - right view of binary tree

Kernel PWN learning (3) -- ret2user & kernel ROP & qwb2018 core

小程序报错:Cannot read property 'currentTarget' of undefined

STM32 and FreeRTOS stack parsing

Kettle实验 转换案例

Kettle实验

npm ERR! network
随机推荐
npm ERR! network
How to render web pages
Pre parsing of JS
nn. Explanation of module class
OpenCV中的图像处理 —— 轮廓入门+轮廓特征
Node installation
[in-depth good article] detailed explanation of Flink SQL streaming batch integration technology (I)
【读书笔记】《Verilog数字系统设计教程》 第5章 条件语句、循环语句和块语句(附思考题答案)
如何实现根据照片获取地理位置及如何防御照片泄漏地理位置
亚马逊云科技入门资源中心,从0到1轻松上云
SAP 101K 411K 库存变化
108. Convert an ordered array into a binary search tree
Leetcode0587. Install fence
Production practice elk
npm报错 :operation not permitted, mkdir ‘C: \Program Files \node js \node_ cache _ cacache’
基于ThinkPHP5版本TRC20-资金归集解决方案
成功的DevOps Leader 应该清楚的3个挑战
501. Mode in binary search tree
JSON input of Chapter 14 of kettle paoding jieniu
JS scope, scope chain, global variables and local variables