118: -- Get the sequence as the existing maximum value + 1
119: -- Else
120: -- Get the next value from the database sequence
121: -- 122: IF (fnd_global.user_id = 1) THEN 123: OPEN cur_max_plus_one;
124: FETCH cur_max_plus_one INTO s_n_next;
125: CLOSE cur_max_plus_one;
126: ELSE