SAP CRM product hierarchy和category的三个问题问答
Created by Wang, Jerry, last modified on Jan 07, 2017
All of these three questions are raised regarding the customizing below via tcode COMM_PRAPPLCAT:
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578695344197.png)
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578701426757.png)
Question1: Product search supports “search by category id”.
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578704089157.png)
However, we can assign different categories with same id on different product hierarchies. See example below:
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578707181637.png)
Question 1: the category id search will only touch categories assigned to a specific hierarchy, or will simply touch all categories with id “ZJERRY” regardless of their assigned hierarchies?
We can first check via test.
First I create two products both assigned with category id ZJERRY but with different hierarchies:
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578710360133.png)
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578713538629.png)
And then I search by ZJERRY, both products are found.
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578714837061.png)
Reason is: The category search implementation simply scans the following two tables connected via category guid, but not hierarchy guid.
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578721374277.png)
Question 2: In product creation, we need to specify a base category. Once F4 help is clicked, we see category search popup dialog with search automatically fired.
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578723450949.png)
Here only hierarchy R3PRODSTYP is used. Why is this very hierarchy?
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578732175429.png)
Answer: when category search is fired, three hiden search parameters are added automatically:
Application: 03
Product_type:01
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578735583301.png)
As a result, R3PRODSTYP from customizing is used.
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578742001733.png)
Question 3: I have assigned several categories for a given product which come from different hierarchy:
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578750906437.png)
In Opportunity WebUI, only category from R3PRODHIER is displayed. Why? Because this hierarchy is assigned to application “01 Sales” in customizing.
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578756620357.png)
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578762801221.png)
The table above represents the default mapping relationship defined in SAP help:
![](https://www.sapcenter.cn/images/article/cnblogs/202209/328578775044165.png)
More detail could be found from this github issue.要获取更多Jerry的原创文章,请关注公众号"汪子熙":
文章来自于网络,如果侵犯了您的权益,请联系站长删除!