Search Fiori UI my contact no data after the addition of Dr. Strange problem

After maintaining the Account on My task UI, and then point Contact F4 value help:

We found on GM6, as long as the Riga "Dr" in the search field, to search out contact, as shown below. However replaced such as "Florianna Adler" on it.

Last night we tangled for a long time, wanted to know why there is this strange behavior.

After debug morning found the reason:

At first we suspected added Dr did not come out after the search results, because no query to the DB data. This morning proven, not found. Contact The open sql is the dynamically generated in the following ways:

This is mainly done four table inner join:

Then OPEN SQL dynamic execution methods in the following years, hit 40 data.

The reason is to hit 40 OPEN SQL is where conditions are mc_name1 and contact scanning account of mc_name1, mc_name2 these three fields.

Thus, as the figure of the first and third rows of such data it is also hit, because they only have three column comprising a column value of "DR":

After the DB search done, the result set do filter.
40 Tiao entry stepping through the result set, for each entry, perform three scan, scan conditions are defined in lt_search_f, each entry only through all three scans, will Finally, back to the UI.


Scan specific logic: check this three red field contains an entry in each round of scanning the specified key word. If not, the entry row is deleted from the results of focus, and then a next process.


Therefore, without the search results came out after Dr reasons:

Contact F4 search仍然将Dr作为一个free text传入后台,在后台从DB取回来数据做filter之后,如果结果集的三个column里没有包含DR这个字符串的话,就会从结果集里过滤掉。只有name1 & name2里面形如Andrew,Dragon的contact才有机会呗search出来。

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

发布了6568 篇原创文章 · 获赞 629 · 访问量 106万+

Guess you like

Origin blog.csdn.net/i042416/article/details/104231988