索引变体产品时出现问题

2020-09-22 12:45发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)您好,我有一个包含一些其他产品的...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


您好,我有一个包含一些其他产品的新产品目录,我只想在搜索中显示基本产品。 我添加了此查询索引,但我已经看到了所有变体:

" SELECT DISTINCT tbl.pk ,tbl.code FROM({{SELECT DISTINCT {p: PK} AS pk,{p:code} AS代码来自{Product AS p左联接CustomerReview AS cr ON {cr:product} = {p:PK}},其中{p:varianttype}为NULL AND({p:modifiedtime} > =?lastIndexTime或{cr:modifiedtime}> =?lastIndexTime)}}联合{{选择DISTINCT {p:PK} AS pk,{p:code} AS代码来自{VariantProduct AS p JOIN产品AS bp1 ON {p: baseProduct} = {bp1:PK}左加入CustomerReview AS cr on {cr:product} = {bp1:PK}} {p:varianttype}为NULL并且({bp1:modifiedtime}> =?lastIndexTime或{cr:modifiedtime }> =?lastIndexTime)}}联合{{选择DISTINCT {p:PK} AS pk,{p:code} AS代码来自{VariantProduct AS p JOIN VariantProduct AS bp1 ON {p:baseProduct} = {bp1:PK} JOIN 产品AS bp2 ON {bp1:baseProduct} = {bp2:PK}左加入CustomerReview AS cr ON {cr:product} = {bp2:PK}} WHERE {p:varianttype}为NULL AND({bp2:modifiedtime}> = ?lastIndexTime或{cr:modifiedtime}> =?lastIndexTime) }}联盟{{选择{p:PK} AS pk,{p:code} AS代码来自{Product AS p}在{p:code} IN位置({{选择DISTINCT {sl:productCode}来自{StockLevel AS sl} {sl:modifiedtime}> =?lastIndexTime}})}}))tbl按tbl.code排序"

替代文字

如何避免这种情况?

谢谢

(229.2 kB)
5条回答
何必丶何苦呢
2020-09-22 13:34

你好Elisa,

如果您只希望对基本产品进行索引,则可以尝试使用以下索引器查询:
从{product!}中选择{pk}!
这将仅对没有子类型和变体的产品进行索引。

致谢,
PawełWrzask

一周热门 更多>