Language issue for downloaded product category
When you try to edit some downloaded product categories, you may meet with this error message:
The root cause is for example ERP supports language A and B, and CRM only supports A.
After you perform customizing download, description in language both A and B will be downloaded to CRM. And description in B looks like below in CRM, not valid!
Solution 1
Remove description B in ERP, and then do customizing download again.
Solution 2
If you are working on CRM dev system, execute the following ABAP code to remove category description with invalid language:
method REMOVE_INVALID_LANGUAGE.
DATA: lt_cate_text TYPE STANDARD TABLE OF COMM_CATEGORYT,
lt_delete LIKE lt_cate_text,
LT_SEL type SEL_OBJT.
data(ls_sel) = value SEL_WBTYPE( sign = 'I' option = 'EQ' ).
DATA(LV) = '1234567890ABCEDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.
DATA(lv_length) = strlen( lv ).
DO lv_length TIMES.
data(lv_offset) = sy-index - 1.
ls_sel-low = lv+lv_offset(1).
APPEND ls_sel TO lt_sel.
ENDDO.
SELECT * INTO TABLE lt_cate_text FROM COMM_CATEGORYT where langu not in lt_sel.
* LOOP AT lt_cate_text ASSIGNING FIELD-SYMBOL(<cat>).
* CALL METHOD cl_com_product_basic=>t002_read_single
* EXPORTING
* iv_spras = <cat>-langu
* EXCEPTIONS
* not_found = 1
* no_desc = 2.
*
* IF sy-subrc = 1.
* APPEND <cat> TO lt_cate_text.
* ENDIF.
* ENDLOOP.
WRITE: 'total invalid language text deleted:' , lines( lt_cate_text ).
If iv_prod_mode = abap_true.
DELETE COMM_CATEGORYT FROM TABLE lt_cate_text.
COMMIT WORK AND WAIT.
WRITE:/ 'delete successful' COLOR COL_POSITIVE.
ENDIF.
endmethod.
After that you can edit downloaded category as usual:
本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。
关注公众号
低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
-
上一篇
错误消息Number not in interval XXX when downloading
I have created one Sales customer via tcode VD01 in ERP: And I have defined a request in tcode R3AR2 to try to download it to CRM via request download: After download is finished, I saw following error message in tcode SMW01: Error message: Number not in interval XXX - XXX Why middleware complains this very interval 0000300000 - 0000399999? Where does it come from?When the customer is downloaded into ERP from CRM, the business partner will be created with a proper number. The number range is mai...
-
下一篇
SAP CRM Relationship API设计原理
Unlike settype, relationship does not have a dedicated read function module maintained in its metadata table. Instead, the generic read function module COM_IL_DB_READ is used. Below is a simple explanation about each parameter of FM COM_IL_DB_READ, using read on relationship PRDCPN for example. IV_RELTYPE PRDCPN - relationship name IV_ATTR_TYPE COMT_IL_PRDCPN_ATTR_TYPE - contains relationship specific business data, in this example, the customer product id is stored in field PRID_VENDOR IT_LINK_...
相关文章
文章评论
共有0条评论来说两句吧...
文章二维码
点击排行
推荐阅读
最新文章
- CentOS8编译安装MySQL8.0.19
- Docker安装Oracle12C,快速搭建Oracle学习环境
- Windows10,CentOS7,CentOS8安装Nodejs环境
- Hadoop3单机部署,实现最简伪集群
- CentOS7,CentOS8安装Elasticsearch6.8.6
- SpringBoot2整合Redis,开启缓存,提高访问速度
- SpringBoot2整合MyBatis,连接MySql数据库做增删改查操作
- CentOS7,8上快速安装Gitea,搭建Git服务器
- SpringBoot2全家桶,快速入门学习开发网站教程
- Dcoker安装(在线仓库),最新的服务器搭配容器使用

微信收款码
支付宝收款码