Gene Ontology Term: succinate-semialdehyde dehydrogenase [NAD(P)+] activity