3730: IF (x_corr_dist_tab.exists(i)) THEN
3731:
3732: SELECT ap_invoice_distributions_s.nextval
3733: INTO x_corr_dist_tab(i).invoice_distribution_id 3734: FROM DUAL; 3735:
3736: x_corr_dist_tab(i).pa_quantity := x_corr_dist_tab(i).corrected_quantity;
3737:
3738: --Calculate the index of the max of the largest distribution for