If SOAMANAGER not exists

Some old system hasn’t got SOAMANAGER for configuring/creating logical port or service. We can use below t-codes for same operation.

LPCONFIG
WSCONFIG
WSADMIN

distribution_policy not exist

Depending on SQL Server version some columns are change. In sap_tf_sysdatabases functions reference to distribution_policy column in sys.tables. With program MSSPROCS (run with se38) you can change stored procedure and functions which are using by SAP.