The fastest approach is to change the port settings in WE21 instead of the port name in all the outgoing partner agreements.
Otherwise, after defining a new port in WE21, you may replace it by taking the following abap as example.
Simple ABAP - Replace Port in the EDI Outbound Profile - Code Gallery - SCN Wiki
KR
Andrea