开发者社区> jerrywangsap> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

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:

本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
how is component.js of extension project loaded
Created by Jerry Wang on Jun 13, 2015
33 0
when component is created twice - still no hint finally
when component is created twice - still no hint finally
35 0
Private vs. Public Cloud: Which one is right for your business?
As more and more companies migrate their data and operations to a cloud-based infrastructure, experts predict that widespread adoption is just on the horizon.
1617 0
Spring Loaded is a JVM agent for reloading class file changes
org.springframework.boot spring-boot-maven-plugin org.
1260 0
ORA-31623: a job is not attached to this session via the specified handle
    在使用Oracel Datapump API时碰到ORA-31623(a job is not attached to this session via the specified handle)错误,从故障描述来看提示 job并没有成功附加到当前session指定的handle。
1047 0
+关注
文章
问答
来源圈子
更多
+ 订阅
文章排行榜
最热
最新
相关电子书
更多
Building Data Products on
立即下载
So-You-Want-To-Market-Your-Security-Product
立即下载
Scaling Through Simplicity: How a 300 million user chat app reduced data engineering efforts by 70%
立即下载