Professional Documents
Culture Documents
Below script will help you assign a category to category set through API
INV_ITEM_CATEGORY_PUB.CREATE_VALID_CATEGORY
BEGIN
v_category_id := 13125;
v_category_set_id := 1;
-- Calling the api to assign category to a category set--
INV_ITEM_CATEGORY_PUB.CREATE_VALID_CATEGORY
(p_api_version => 1.0,
p_init_msg_list => FND_API.G_TRUE,
p_commit => FND_API.G_FALSE,
p_category_set_id => v_category_set_id,
p_category_id => v_category_id,
p_parent_category_id => v_parent_category_id,
x_return_status => v_return_status,
x_errorcode => v_errorcode,
x_msg_count => v_msg_count,
x_msg_data => v_msg_data );