If you are doing RFC>XI>Non-SAP, You have to create Sender RFC Adapter and have the PROGRAM ID in the Program ID field. In Tr. Code SM59 of R/3, You have to create RFC Destination of type "T" and the program ID you specified here should be same as the Program ID in Sender RF...