来自视图参数的 CDS LIKE 过滤器 [英] CDS LIKE filter from view parameter

查看:25
本文介绍了来自视图参数的 CDS LIKE 过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建一个 CDS,从表 KNA1 中选择所有 KUNNRCustomer NumberA%.

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

我可以在 where 子句中使用 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 来实现?

Is it possible to do it with CDS?

推荐答案

我看到两个选项.

  1. 您摆脱了 CDS 输入参数处理并将逻辑移至 ABAP.使用 like 语句在 CDS 上编写 OPEN SQL 选择.

  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.

希望有帮助.

这篇关于来自视图参数的 CDS LIKE 过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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