Defining a Partner Profile and Port 
Prerequisites
You have successfully generated an IDoc interface.
Generating an IDocProcedure
Defining a partner profile
The Partner profile screen is then displayed.
This name must reference an existing object for each partner type. It must also be identical to the partner number in the control record of the IDoc.

Logical systems are maintained with the transaction SALE .
The Partner profiles screen appears. Inbound parameter.
Defining a port
You must define a sender port so that the SAPforms interface and the R/3 System can communicate. This information must also appear later in the control record of the IDoc.
The Ports in IDoc Processing screen is then displayed.
This name is essentially irrelevant. However, it must be identical to the port name in the control record of the IDoc.
Select IDoc record types SAP Release 4.x.
Result
The partner profile and port are now defined.