zl程序教程

您现在的位置是:首页 >  其它

当前栏目

how to enable customer product ID assignment block

to ID How Block Customer product enable assignment
2023-09-14 09:03:04 时间

Created by Jerry Wang, last modified on Mar 15, 2016

In product overview page, you can maintain the relationship ( technically: Inter-linkage ) between Product ID and Customer ID in "Customer Product IDs" assignment block.

 

clipboard1

 

 

In order to make that assignment block visible, it is necessary to add relationship type PRDCPNS into the product category.

 

clipboard2

 

 

 

However, sometimes you will find the necessary relationship type PRDCPNS does not appear in the possible relationship value list.

The reason is, it is not allowed to assign the same relationship to different categories belonging to different hierarchies but with same product type.

How to find other product categories which is already assigned with PRDCPNS relationship type

The duplicate assignment check is implemented in FM COM_PRCAT_IL_REL_ASSIGN_CHECK:

clipboard3

 

set a breakpoint on line 38, 

clipboard4

 

the guid of category assigned already with relationship type is stored in variable et_prcat_il_rel:

clipboard5

 

You can first find category ID and the hierarchy guid which it is assigned in the table below:

clipboard6

 

Then get hierarchy ID:

clipboard7

 

You can first find category ID and the hierarchy guid which it is assigned in the table below:

clipboard8

 

Then get hierarchy ID:

clipboard9

 

Finally the conflict product category is found:

clipboard10