Most often abs is used for drainage pipes (toilets, sinks, etc.) so it doesn't matter if the pipe leaches chemicals into the water being drained. However, there is abs pipe available for potable water so it would probably be safe. To know if it is look for a laboratory seal or mark stating that it is safe for potable water. Most people just use pvc because that's generally what is used for water supply lines in new home construction so its easy to get, and we know it's safe.