When you generated a partner profile, the port definition might have been entered incorrectly. For your system to work properly, you need to modify the port definition.
Enter transaction code WE20.
Select Partner Type LS.
Select your receiving partner profile.
Select Outbound Parameters, then click Display. (On some systems, click the “+” icon beneath the Outbound Parameters box.)
Select message type HRMD_A.
Click Outbound Options, then modify the receiver port so it is the RFC port name you created (IDMGR).
From the Output Mode, select Transfer IDoc Immediately to send IDocs immediately after they are created.
From the IDoc Type section, select a basictype: