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">