315: if(nvl(v_hierarchy_node_id,0) = 0 ) then -- Asset Not Linked to Hierarchy
316: return true;
317: end if;
318:
319: FA_CUA_ASSET_APIS.g_book_type_code := v_book_type_code;
320: FA_CUA_ASSET_APIS.g_parent_node_id := v_hierarchy_node_id;
321: FA_CUA_ASSET_APIS.g_asset_id:= x_asset_id;
322: FA_CUA_ASSET_APIS.g_derivation_type := 'DISTRIBUTION';
323: FA_CUA_ASSET_APIS.g_err_code := '0';
316: return true;
317: end if;
318:
319: FA_CUA_ASSET_APIS.g_book_type_code := v_book_type_code;
320: FA_CUA_ASSET_APIS.g_parent_node_id := v_hierarchy_node_id;
321: FA_CUA_ASSET_APIS.g_asset_id:= x_asset_id;
322: FA_CUA_ASSET_APIS.g_derivation_type := 'DISTRIBUTION';
323: FA_CUA_ASSET_APIS.g_err_code := '0';
324:
317: end if;
318:
319: FA_CUA_ASSET_APIS.g_book_type_code := v_book_type_code;
320: FA_CUA_ASSET_APIS.g_parent_node_id := v_hierarchy_node_id;
321: FA_CUA_ASSET_APIS.g_asset_id:= x_asset_id;
322: FA_CUA_ASSET_APIS.g_derivation_type := 'DISTRIBUTION';
323: FA_CUA_ASSET_APIS.g_err_code := '0';
324:
325: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
318:
319: FA_CUA_ASSET_APIS.g_book_type_code := v_book_type_code;
320: FA_CUA_ASSET_APIS.g_parent_node_id := v_hierarchy_node_id;
321: FA_CUA_ASSET_APIS.g_asset_id:= x_asset_id;
322: FA_CUA_ASSET_APIS.g_derivation_type := 'DISTRIBUTION';
323: FA_CUA_ASSET_APIS.g_err_code := '0';
324:
325: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
326:
319: FA_CUA_ASSET_APIS.g_book_type_code := v_book_type_code;
320: FA_CUA_ASSET_APIS.g_parent_node_id := v_hierarchy_node_id;
321: FA_CUA_ASSET_APIS.g_asset_id:= x_asset_id;
322: FA_CUA_ASSET_APIS.g_derivation_type := 'DISTRIBUTION';
323: FA_CUA_ASSET_APIS.g_err_code := '0';
324:
325: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
326:
327: x_dist_set_id := FA_CUA_ASSET_APIS.g_distribution_set_id_out;
321: FA_CUA_ASSET_APIS.g_asset_id:= x_asset_id;
322: FA_CUA_ASSET_APIS.g_derivation_type := 'DISTRIBUTION';
323: FA_CUA_ASSET_APIS.g_err_code := '0';
324:
325: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
326:
327: x_dist_set_id := FA_CUA_ASSET_APIS.g_distribution_set_id_out;
328: if (x_mode = 'SHOWMSG') and (FA_CUA_ASSET_APIS.g_distribution_overide_allowed = 'N') then
329: return false;
323: FA_CUA_ASSET_APIS.g_err_code := '0';
324:
325: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
326:
327: x_dist_set_id := FA_CUA_ASSET_APIS.g_distribution_set_id_out;
328: if (x_mode = 'SHOWMSG') and (FA_CUA_ASSET_APIS.g_distribution_overide_allowed = 'N') then
329: return false;
330: end if;
331:
324:
325: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
326:
327: x_dist_set_id := FA_CUA_ASSET_APIS.g_distribution_set_id_out;
328: if (x_mode = 'SHOWMSG') and (FA_CUA_ASSET_APIS.g_distribution_overide_allowed = 'N') then
329: return false;
330: end if;
331:
332: if (FA_CUA_ASSET_APIS.g_distribution_overide_allowed = 'N') and ( x_mode = 'SHOWERR') then
328: if (x_mode = 'SHOWMSG') and (FA_CUA_ASSET_APIS.g_distribution_overide_allowed = 'N') then
329: return false;
330: end if;
331:
332: if (FA_CUA_ASSET_APIS.g_distribution_overide_allowed = 'N') and ( x_mode = 'SHOWERR') then
333:
334: select count(*) into h_dist_count
335: from fa_distribution_history
336: where asset_id = x_Asset_id