使用ABAP程式碼創建新的product category
- 2019 年 10 月 4 日
- 筆記
版權聲明:本文為部落客原創文章,遵循 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">