Is there any problem building a wall under floor joists at mid span?
There should be no problem adding a partition wall under trusses or floor joists. The only connection you will need is some nails or screws holding the upper plate of your wall to the  joists. This will simply hold your wall up and plumb. There are no structural or load considerations in this simple wall addition.