视图参数中的CDS LIKE过滤器

编程入门 行业动态 更新时间:2024-10-26 02:29:17
本文介绍了视图参数中的CDS LIKE过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何创建从表KNA1以A%开头的表KNA1中选择所有KUNNR的CDS.

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?

推荐答案

我看到两个选项.

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

  • 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过滤器

    本文发布于:2023-11-15 05:50:54,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1591711.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:视图   过滤器   参数   CDS

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!