I need to write a Function which can generate Next Sequence_Code for only those ID\'s which are having Status \'A\'.
Note: If Table is already having Some Sequence_Co