Get all data that match to the start letter

笑着哭i 提交于 2019-12-08 12:51:06

问题


How to create a CDS that select all KUNNR from table KNA1 that Customer Number starts for example with A%.

I could use LIKE in the where clause but the RHS of the condition have to be static. It should depend on the input parameter from CDS.

Is it possible to do it with CDS?


回答1:


I see two options.

  1. You get rid of your CDS input parameter handling and move the logic to ABAP. Write your OPEN SQL select on your CDS with like statement.

  2. Use CDS Table function and AMDP by pushing the like statement down to HANA native. Just follow my post here.

Hope it helps.



来源:https://stackoverflow.com/questions/48266222/get-all-data-that-match-to-the-start-letter

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!