Regarding RFC destination
I need to call a remote enabled APO function module from R/3. In the call i need to specify the RFC destination. The problem is:
The development R/3 system is connected to APO development system only, R/3 testing system to APO testing system only and R/3 production system to APO production system only. I want to write code in such a way that the RFC destination is identified automatically, ie, when it is run the program in R/3 dev system it picks APO dev system and so on.
Can this be achieved through some function module or using some tables. I tried RFCDES table. But it was not helpful. I want to avoid using the if...else check.
Thanks in advance,