Finding RFC destinations
I am calling RFC functional module and I am passing the destination by Hardcoding . How can we pass the destinations dynamically .
For example i am pasing the destination like
CALL FUNCTION 'Z_PROMOTION_ON_ARTNR_ME_FIND' DESTINATION 'D01CLNT202'
In above case destination is 'D01CLNT202' this destination for Developement system whenever the code moved to qualaity i have to pass the quality destination system and then production means i have to pass production destination system.
How can i pass the destination dynamically . Is there any FM or method ?