使用ABAP代码创建新的product category

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://jerry.blog.csdn.net/article/details/100768914

Created by Wang, Jerry on Sep 21, 2016

CALL FUNCTION 'COM_PRODCAT_API_CREATE_CAT'
EXPORTING
iv_category_id = lv_category_id
iv_hierarchy_guid = iv_hierarchy_guid
iv_parent_guid = iv_root_cat_guid
iv_product_type = lv_product_type "initial
it_categoryt = lt_categoryt "initial
iv_logsys = iv_logsys
iv_non_assignable = off
IMPORTING
ev_category_guid = lv_category_guid

然后保存:

CALL FUNCTION 'COM_PRODUCT_CATEGORY_SAVE_ALL'
EXPORTING
iv_update_task = ' '
iv_update_pme = ' '
iv_hierarchy_guid = lv_hierarchy_guid
EXCEPTIONS
internal_error = 1
OTHERS = 2.
```要获取更多Jerry的原创文章,请关注公众号"汪子熙":
<img src="https://user-images.githubusercontent.com/5669954/61616089-2a87e180-ac9a-11e9-861d-c29c2cf897af.png">

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

扫码关注云+社区

领取腾讯云代金券