Skip to Content
avatar image
Former Member

ABAP 语法中用中文作为模糊查询的问题请教

在对供应商名称LFA1~NAME1字段用中文进行模糊查询,比如输入:,但是供应商名称中不含u201C欣u201D字的也会出来,这是为什么呢?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 14, 2009 at 03:56 AM

    我测了下,没有问题啊,把你的源代码贴出来吧

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      REPORT ZTESTLFA1 .

      TABLES: LFA1.

      SELECT-OPTIONS:S_NAME1 FOR LFA1-NAME1.

      SELECT *

      FROM LFA1 AS A

      WHERE A~NAME1 IN S_NAME1.

      WRITE: / LFA1-NAME1.

      ENDSELECT.

      我做了个这样的测试,没有问题啊

  • avatar image
    Former Member
    Jul 14, 2009 at 06:51 AM

    在OPEN SQL中, 模糊查询采用%欣%的形式查询,

    如果使用range table的话,可以用 来作查询条件

    Add comment
    10|10000 characters needed characters exceeded