3843: IF (x_corr_dist_tab.exists(i)) THEN
3844:
3845: SELECT ap_invoice_distributions_s.nextval
3846: INTO x_corr_dist_tab(i).invoice_distribution_id 3847: FROM DUAL; 3848:
3849: x_corr_dist_tab(i).pa_quantity := x_corr_dist_tab(i).corrected_quantity;
3850:
3851: --Calculate the index of the max of the largest distribution for