简体   繁体   English

如何让 ABAP 将“_”理解为来自 BODS 的全局变量值中的特殊字符?

[英]How to make ABAP understand “_” as a special character in a global variable value from BODS?

I have one requirement in BODS to execute ABAP dataflows with dynamic global variables.我在 BODS 中有一项要求是使用动态全局变量执行 ABAP 数据流。 The ABAP code is a custom one with dynamic where clause. ABAP 代码是带有动态where子句的自定义代码。 I am trying to send the global variable value like Field-name like "%underscroe%" .我正在尝试发送全局变量值,如Field-name like "%underscroe%" But instead of fetching records with only 'underscore', it is fetching all records from the table.但它不是仅使用“下划线”获取记录,而是从表中获取所有记录。

Do you have any solution for this issue?你对这个问题有什么解决办法吗?

Use ESCAPE clause for this.为此使用ESCAPE子句。 If you wanna search for underscore, set如果要搜索下划线,请设置

LIKE '%#_%' ESCAPE '#'.

I am not sure, if it works with BODS though.我不确定,但它是否适用于 BODS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM