获取与起始字母匹配的所有数据 [英] Get all data that match to the start letter

查看:95
本文介绍了获取与起始字母匹配的所有数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建从表 KNA1 中选择所有客户编号的所有 KUNNR 的CDS 例如以 A%开始。

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

我可以使用 Like ,但条件的 RHS 必须是静态的。它应取决于CDS的输入参数

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.

是否可以用 CDS 做到?

推荐答案

我看到两个选项。


  1. 您将摆脱CDS输入参数处理,并将逻辑移至ABAP。用like语句将OPEN SQL select写到CDS上。

  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.

使用 CDS表功能 AMDP ,将 like 语句下推至HANA本机。只需在此处发布即可。

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

希望它会有所帮助。

这篇关于获取与起始字母匹配的所有数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆