It can be done with more than four digits, if I understand your statement.
Here's how it works.
314938
-134893
------
180045
Lets choose the 4. Now add the other digits together, 1+8+0+0+5=14 Since the answer is greater than 9, add those digits together, 1+4=5. Last step, subtract 5 from 9 which equals 4, the number we chose.
Let's choose 8 instead. Add the other digits, 1+0+0+4+5=10, and 1+0=1 and 9-1=8. Worked again.
I haven't tested it but this should work with very large number, 10 or 15 digits. Just keep adding the digits each time until you get to a single digit.
One minor exception. If the total of the digits is 9 the number chosen was 9 not 0.