How to replace beam with supporting wall
I wouldn’t remove the posts. The posts have footings that support the loads from the beam.
If you remove the posts and build a wall, you’ll need to install a footing under the new wall.
I’d just build a non-structural infill wall under the beam.