559: l_statement := 30;
560:
561: SELECT COUNT(*)
562: INTO x_change_allowed
563: FROM mtl_material_transactions_temp
564: WHERE (
565: ( organization_id = p_organization_id
566: AND cost_group_id = p_cost_group_id
567: )
580: l_statement := 40;
581:
582: SELECT COUNT(*)
583: INTO x_change_allowed
584: FROM mtl_material_transactions
585: WHERE costed_flag in ('N','E')
586: AND (
587: ( organization_id = p_organization_id
588: AND cost_group_id = p_cost_group_id