This seems to be a strange error.
Normally error occurs at Program ID., Gateway and all.
But from your message, I understand that the RFC check (Source system check/SM59) is successful.
Could you be kind enough to tell me exactly at which step is this error occurring and are you getting any other error messages/error codes at any stages...
BR
Prabhith