Hi,
Can you please check ur rfc destination with PI gateway host and service details.
And make sure that u have to maintain programid in InboundRA and dont use thsis program ID in JCA Resource adapter.
and maintain local as true.
Please let me know if you face any issues.
Cheers,
Cnu