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:

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

相关文章
|
10月前
|
内存技术
Obtain the data code of Taobao JD1688alibaba lazada shop product details page
1、 Data types of e-commerce APIs The types of data provided by e-commerce APIs are diverse and can generally be divided into the following categories: Product data: Product ID, Product Name, Product Price, Inventory, etc. Transaction data: order number, payment time, recipient, etc. Store data
Obtain the data code of Taobao JD1688alibaba lazada shop product details page
PAT (Advanced Level) Practice - 1119 Pre- and Post-order Traversals(30 分)
PAT (Advanced Level) Practice - 1119 Pre- and Post-order Traversals(30 分)
106 0
PAT (Advanced Level) Practice - 1119 Pre- and Post-order Traversals(30 分)
We cannot activate inspection type for article master in transaction code MM41?
We cannot activate inspection type for article master in transaction code MM41?
We cannot activate inspection type for article master in transaction code MM41?
SAP IDoc Post不成功,报错 - A company code cannot be determined for LI 0000100061 –
SAP IDoc Post不成功,报错 - A company code cannot be determined for LI 0000100061 –
SAP IDoc Post不成功,报错 - A company code cannot be determined for LI 0000100061 –
Language issue for downloaded product category
Language issue for downloaded product category
76 0
Language issue for downloaded product category
the title and note has maintained the same text type
the title and note has maintained the same text type
81 0
the title and note has maintained the same text type
SAP Fiori 应用 My Appointment - Belonging to me, Search by team, Search by group
SAP Fiori 应用 My Appointment - Belonging to me, Search by team, Search by group
How to render S4 Code List extension field into CRM WebUI product search view
This question is asked by Wade. Suppose I have created one extension field in S4 with type CodeList which contains all possible queue type supported by JDK. This extension field must be exposed to CRM Product Search WebUI. POC is done in X3C/504:
How to render S4 Code List extension field into CRM WebUI product search view
How to put S4 extension field to CRM WebUI search view in the design time
How to put S4 extension field to CRM WebUI search view in the design time
How to put S4 extension field to CRM WebUI search view in the design time