item long description import

 



create table ITEM_description_X as select segment1, description ,long_description  from MTL_SYSTEM_ITEMS_INTERFACE where 1=3




select * from     ITEM_description_X for update




 ----3 insert interface 
Declare


  cursor new_item_cur is
select  segment1,description,long_description
from ITEM_description_X
 where     1=1     
 




;


  i_item        ITEM_description_X.segment1%type;
  i_description ITEM_description_X.DESCRIPTION%type; 
  
  i_long_des    ITEM_description_X.long_DESCRIPTION%type; 




BEGIN
  open new_item_cur;
  loop
    fetch new_item_cur
      into i_item,
           i_description ,i_long_des ;
    Exit When new_item_cur%Notfound;   
    
    INSERT INTO mtl_system_items_interface
      (organization_id,
       process_flag,
       set_process_id,
       transaction_type,
       segment1,
       description, long_description,
       creation_date)
    VALUES
      (439,
       1,
       1,
       'UPDATE',
       i_item,
       i_description, i_long_des,
       sysdate);
  
  end loop;
  close new_item_cur;   
  
    commit;
END;

在测试环境中导入的时候,虽然选择多语言导入,结果 MTL_SYSTEM_ITEMS_TL表中也只有一种语言的描述。

解决方案:>>>

方式1:(官方提示)

I.       以基础语言US作为语言环境,先创建物料英文US描述和长描述,提交标准接口请求

II.    接着,以ZHS作为语言环境,更新物料简体中文ZHS描述和长描述,提交标准接口请求

 

方式2:(数据量大,两种以上语言)

I.       以基础语言US作为语言环境,先创建物料英文US描述和长描述,提交标准接口请求

II.    直接后台刷新ZHS物料描述和长描述

 

update mtl_system_items_tl msit

   set msit.source_lang = msit.language,

       msit.description = 'please input zhs description',

       msit.long_description = 'please input zhs long description'

 where     1 = 1

and msit.language = 'ZHS'

       and msit.organization_id = :p_org_id

   and msit.inventory_item_id = :p_item_id;




参考文档: http://www.cnblogs.com/quanweiru/p/4133461.html
请使用浏览器的分享功能分享到微信等