|
|
发表于 2012/7/12 09:09:55
|
显示全部楼层
you can use api or interface to batch update ,for api such as
DECLARE
l_item_rec inv_item_grp.item_rec_type;
l_error_tbl inv_item_grp.error_tbl_type;
x_item_rec inv_item_grp.item_rec_type;
v_err_found PLS_INTEGER := 0;
l_return_status VARCHAR2(40);
BEGIN
l_item_rec.inventory_item_id := r_items.inventory_item_id;
l_item_rec.organization_id := r_items.organization_id;
l_item_rec.buyer_id := p_to_buyer_id;
l_item_rec.planner_code := p_to_planner_code;
inv_item_grp.update_item(p_commit => fnd_api.g_true,
p_lock_rows => fnd_api.g_true,
p_validation_level => fnd_api.g_valid_level_full,
p_item_rec => l_item_rec,
x_item_rec => x_item_rec,
x_return_status => l_return_status,
x_error_tbl => l_error_tbl);
/* check return status ... */
END; |
|