有些CRM settype用事务码COMM_ATTRSET打不开的原因

This question is asked by Dr. Lin.

Issue

For example, settype COM_COMMERCIAL could be opened via tcode COMM_ATTRSET:

有些CRM settype用事务码COMM_ATTRSET打不开的原因

However COMM_PRFREEATTR could not be opened:

有些CRM settype用事务码COMM_ATTRSET打不开的原因

The error message is raised in line 48:

有些CRM settype用事务码COMM_ATTRSET打不开的原因
有些CRM settype用事务码COMM_ATTRSET打不开的原因

Compare the variable value for success case COM_COMMERCIAL:

有些CRM settype用事务码COMM_ATTRSET打不开的原因
有些CRM settype用事务码COMM_ATTRSET打不开的原因

Root cause is, the correct settype and persistence table name should be COMM_PRFREEATTR, unfortunately, when you enter tcode COMM_ATTRSET, the last character R of name is truncated:

有些CRM settype用事务码COMM_ATTRSET打不开的原因

Workaround

有些CRM settype用事务码COMM_ATTRSET打不开的原因

Manually add the missing R in debugger:

有些CRM settype用事务码COMM_ATTRSET打不开的原因
有些CRM settype用事务码COMM_ATTRSET打不开的原因
有些CRM settype用事务码COMM_ATTRSET打不开的原因

After that the settype could be opened in transaction code.

有些CRM settype用事务码COMM_ATTRSET打不开的原因

The set type was not created using the Maintain Set Types and Attributes transaction in the product master (COMM_ATTRSET), or it is a standard SAP set type that was created manually (not generated).
Make your changes using the transaction originally used to create
the set type. Standard SAP set types that were created manually cannot be displayed using a set type transaction as the COMC_SETTYP_ATTR
entries required to do this do not exist.
The following settypes cannot be displayed in transaction
COMM_ATTRSET. The following settype haven't been created by the
generation tool of transaction COMM_ATTRSET but they are manually
created. At that time the generation tool development was under way.
This settypes have no entry in COMC_SETTYP_ATTR. So we don't allow to
display them in COMM_ATTRSET:
COMM_PR_CONFIG, CRMM_PR_REFOBJ, COMM_PR_MAT, CRMM_PR_TAX,
CRMM_PR_SALESG, CRMM_PR_SALESA, COMM_PR_SRV, COMM_PR_UNIT,
COMM_PR_SHTEXT, COMM_PR_LGTEXT, CRMM_PR_SALESH, CRMM_PR_BTR,
CRMM_PR_SRVRR, CRMM_PR_SRVDUR, COMM_PR_GTIN, CRM_CAT_SAL, CRM_CAT_PUR,
COMM_PR_COND, COMM_PROD_VAR, COMM_PR_CM, COMM_PR_STATUS.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
有些CRM settype用事务码COMM_ATTRSET打不开的原因

上一篇:c-发送具有std :: vector成员的结构时出现分段错误


下一篇:MPI_Bcast c STL向量