Thanks Alok Agnihotri for testing and posting a new patch
patch is in rev 631218
I have also tested it extensively,it works fine.
Here is the updated patch for Creating a Sales Order.
Resolved the conflicts in previous patch,fixes the issues in SalesOrderTest.java file.
May I can test and then commit ?