码迷,mamicode.com
首页 > 其他好文 > 详细

SAP CRM settype的重要性

时间:2020-01-30 17:21:00      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:sig   ict   mapping   不同   page   roo   directly   gui   ota   

Product settype acts as a very important role in CRM WebClient UI architecture.

技术图片

(1) The GenIL layer knows nothing about attributes modeled in settype. Instead, it only knows product BOL model attributes.

(2) The API knows nothing about attributes modeled in Genil model. Instead, it only knows attributes modeled in settype.

技术图片

In GenIL implementation, there is a util class CL_CRM_PRODIL_UTIL~GET_REQUEST_INFO which maps the name of requested BOL model node name into the name of settype. The mapping from BOL model name and settype are maintained in configuration table CRMC_PRIL_OBJ. The GenIL implementation will use this table to get settype GUID, and then get the name of corrresponding settype by GUID and pass the settype name to API.

技术图片

Let‘s review the end-to-end process:
Product overview page consists of assignment blocks.

技术图片

Each assignment block is technically modeled based on a GenIL model node. There is association modeled in GenIL Model which connects root node to this node used in assignment block view. The picture below shows the technical implementation of assignment block view "Categories".

技术图片

When the product overview page is opened, the data for each assignment block should be queried and displayed in WebClient UI. The GenIL model node name is passed from UI component discussed above to GenIL. GenIL then find the id of settype according to the following logic and pass the settype ID to API:

技术图片

The picture belows shows the GenIL passes the settype id to API:

技术图片

Set types are assigned to categories and not to products directly. By assigning set types to categories, and then in turn assigning the categories to products, you can make available the data you require to describe your products.
The mechanism is illustrated below:

技术图片

You can assign settypes to a category in GUI tcode COMM_HIERARCHY:

技术图片

or in WebClient UI:

技术图片

from sap help:
To prevent a set type from being assigned to a product more than once based on different categories, the following rules apply when working with categories and hierarchies:

  1. A set type may be assigned to more than one category within a hierarchy, but to only one hierarchy for each product type. Therefore even if two categories are in different hierarchies but have the same product type, it is not possible to assign the set type to both categories.
  2. A product can be assigned to more than one category as long as the categories belong to different hierarchies. A product can therefore only be assigned to one category in each hierarchy.
    翻译成中文就是:

(1) 1个settype,在整个系统里只能assign给一个product hierarchy的category。一旦assign之后,整个其他任何其他hierarchy的任何category,都不能再assign该settype.

(2) 1个product可以被assign给多个category,但是这些category必须来自不同的hierarchy.

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

SAP CRM settype的重要性

标签:sig   ict   mapping   不同   page   roo   directly   gui   ota   

原文地址:https://www.cnblogs.com/sap-jerry/p/12243087.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!